Re: NSWindow - makeKeyAndOrderFront problem
Re: NSWindow - makeKeyAndOrderFront problem
- Subject: Re: NSWindow - makeKeyAndOrderFront problem
- From: Alexander Bokovikov <email@hidden>
- Date: Sun, 28 Feb 2010 19:46:25 +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];
It looks like I've understood why it is not working. Here is the
message description:
his action method moves the receiver to the front of the screen list,
within its level, and makes it the key window; that is, it shows the
window.
What is "within its level"? What is the level? Does it mean that this
message brings a window to front within the same application/process
only? If yes, then how to do the same when the process (application is
not the active (hasn't keyboard input)?
For example, in my case I have Finder's window and my app's window.
Finder's window is active. I drop a file into my app's window. And the
question is how to "switch the global system focus" to my app? Then I
believe I'll see my app's window in active state, as it's the only
window in the application at that moment.
Any ideas?
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