Re: NSWindow - makeKeyAndOrderFront problem
Re: NSWindow - makeKeyAndOrderFront problem
- Subject: Re: NSWindow - makeKeyAndOrderFront problem
- From: Klaus Backert <email@hidden>
- Date: Sun, 28 Feb 2010 16:57:57 +0100
On 28 Feb 2010, at 15:46, Alexander Bokovikov wrote:
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)?
Window levels are defined in the NSWindow Class Reference. See in the
"Constants" section: NSNormalWindowLevel, NSFloatingWindowLevel,
NSSubmenuWindowLevel, etc.
"These constants specify the window’s level. The stacking of levels
takes precedence over the stacking of windows within each level. That
is, even the bottom window in a level will obscure the top window of
the next level down. Levels are listed in order from lowest to
highest. These constants are mapped (using #define statements) to
corresponding elements in the Window Level Keys in Core Graphics."
See also the chapter "Window Layers and Levels" in the "Window
Programming Guide for Cocoa".
Regards
Klaus
_______________________________________________
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