Re: NSWindow - makeKeyAndOrderFront problem - solved
Re: NSWindow - makeKeyAndOrderFront problem - solved
- Subject: Re: NSWindow - makeKeyAndOrderFront problem - solved
- From: Alexander Bokovikov <email@hidden>
- Date: Sun, 28 Feb 2010 19:59:28 +0500
On 28.02.2010, at 17:48, email@hidden wrote:
Try scheduling it for the next iteration of the run loop.
[mainWindow performSelector:@selector(makeKeyAndOrderFront:)
withObject:nil afterDelay:0.0];
Really the problem was not in the scheduling but just in the scope of
the message - it works only within the same process. Therefore what we
need to do is to activate the process itself. To do it we must use
activateIgnoringOtherApps: message of the NSApplication class. In my
case this is the only what is required, as I have only one window,
when I drop a file into 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