• 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 - solved
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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
  • Previous by thread: Re: NSWindow - makeKeyAndOrderFront problem
  • Next by thread: Re: NSWindow - makeKeyAndOrderFront problem
  • Index(es):
    • Date
    • Thread