On 28.02.2010, at 17:48, jonat...@mugginsoft.com 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 (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