Re: How to catch modal window appearance?
Re: How to catch modal window appearance?
- Subject: Re: How to catch modal window appearance?
- From: Alexander Bokovikov <email@hidden>
- Date: Tue, 30 Mar 2010 11:12:15 +0600
On 30.03.2010, at 2:27, Lee Ann Rucker wrote:
Well, if you're using runModalForWindow: and relying on it to show
the window, it goes away before the method returns, so there is no
point in the code after show and before hide.
I understand it of course. I told about the window controller class
code, not about the calling procedure code.
But you can always do makeKeyAndOrderFront: explicitly:
[myWindow makeKeyAndOrderFront:self];
// Stuff I need to do
[NSApp runModalForWindow:myWindow].
Now I understand it. Initially I believed that there is an appropriate
notification to do it.
Thanks.
_______________________________________________
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