Re: Newbie Question: Controls not redrawing on changes
Re: Newbie Question: Controls not redrawing on changes
- Subject: Re: Newbie Question: Controls not redrawing on changes
- From: Christopher Kempke <email@hidden>
- Date: Sat, 3 May 2008 16:08:57 -0700
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 (email@hidden)
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:
This email sent to email@hidden