FROM : Kyle Sluder
DATE : Sun May 04 05:47:43 2008
On Sat, May 3, 2008 at 7:08 PM, Christopher Kempke
<<email_removed>> wrote:
> Thanks for the tip, but no go. It actually makes the behavior worse: now
> the modal dialog is still drawn, but never becomes active (the title bar
> never gets dark, and the previously visible (document) window never
> deactivates, although the dialog is drawn on top), and the default button
> doesn't even turn blue.
Take a look at -[NSPanel setWorksWhenModal:]. You should be using an
NSPanel, not an NSWindow, and must send it this message before doing
-[NSApplication runModalForWindow:]. Read this document, entitled
"How Modal Windows Work," for more information.
http://developer.apple.com/documentation/Cocoa/Conceptual/WinPanel/Concepts/UsingModalWindows.html#//apple_ref/doc/uid/20000223
--Kyle Sluder
DATE : Sun May 04 05:47:43 2008
On Sat, May 3, 2008 at 7:08 PM, Christopher Kempke
<<email_removed>> wrote:
> Thanks for the tip, but no go. It actually makes the behavior worse: now
> the modal dialog is still drawn, but never becomes active (the title bar
> never gets dark, and the previously visible (document) window never
> deactivates, although the dialog is drawn on top), and the default button
> doesn't even turn blue.
Take a look at -[NSPanel setWorksWhenModal:]. You should be using an
NSPanel, not an NSWindow, and must send it this message before doing
-[NSApplication runModalForWindow:]. Read this document, entitled
"How Modal Windows Work," for more information.
http://developer.apple.com/documentation/Cocoa/Conceptual/WinPanel/Concepts/UsingModalWindows.html#//apple_ref/doc/uid/20000223
--Kyle Sluder
| Related mails | Author | Date |
|---|---|---|
| Christopher Kempke | May 3, 23:42 | |
| Nathan Kinsinger | May 4, 00:10 | |
| Michael Ash | May 4, 00:25 | |
| Christopher Kempke | May 4, 01:08 | |
| Kyle Sluder | May 4, 05:47 | |
| Christopher Kempke | May 4, 11:19 | |
| Mike Abdullah | May 4, 12:07 |






Cocoa mail archive

