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 (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 arch...@mail-archive.com

Reply via email to