On Sat, May 3, 2008 at 7:08 PM, Christopher Kempke <[EMAIL PROTECTED]> 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 _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]