• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSWindow - makeKeyAndOrderFront problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSWindow - makeKeyAndOrderFront problem
      • From: Klaus Backert <email@hidden>
    • Re: NSWindow - makeKeyAndOrderFront problem
      • From: Andreas Mayer <email@hidden>
References: 
 >NSWindow - makeKeyAndOrderFront problem (From: Alexander Bokovikov <email@hidden>)
 >Re: NSWindow - makeKeyAndOrderFront problem (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: NSWindow - makeKeyAndOrderFront problem
  • Next by Date: Re: NSWindow - makeKeyAndOrderFront problem - solved
  • Previous by thread: Re: NSWindow - makeKeyAndOrderFront problem
  • Next by thread: Re: NSWindow - makeKeyAndOrderFront problem
  • Index(es):
    • Date
    • Thread