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.
--Christopher Kempke
On May 3, 2008, at 3:10 PM, Nathan Kinsinger wrote:
On May 3, 2008, at 3:42 PM, Christopher Kempke wrote:
Then I draw the window with:
[iWindow makeKeyAndOrderFront:nil];
And run it as a modal dialog with:
[NSApp runModalForWindow:iWindow];
The docs for runModalForWindow: explicitly say not to send
makeKeyAndOrderFront: to the window. I'm guessing that the window is
in the normal run loop and not the modal run loop.
makeKeyAndOrderFront: will show the window and make it key.
--Nathan
_______________________________________________
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]