• 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: "email@hidden" <email@hidden>
  • Date: Sun, 28 Feb 2010 12:48:13 +0000

On 28 Feb 2010, at 12:37, Alexander Bokovikov wrote:

> Hi, All,
>
> Perhaps it's my misunderstanding, but I can't activate window title when I apply
>
> [mainWindow makeKeyAndOrderFront:nil]
>
> to main app window in the "performDragOperation" drag&drop handler. The content is dropped into the window, and window goes to the top of screen, but its title bar remains to be inactive. I need yet click it to activate it.
>
> What is strange, the same message produces required result at some another place of code, where a popup window is closed, and this method is called to activate the same main app window.
>
> Any help would be appreciated!
>

Try scheduling it for the next iteration of the run loop.

[mainWindow performSelector:@selector(makeKeyAndOrderFront:) withObject:nil afterDelay:0.0];

Regards

Jonathan Mitchell

Developer
http://www.mugginsoft.com
> 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

_______________________________________________

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 - solved
      • From: Alexander Bokovikov <email@hidden>
    • Re: NSWindow - makeKeyAndOrderFront problem
      • From: Alexander Bokovikov <email@hidden>
    • Re: NSWindow - makeKeyAndOrderFront problem
      • From: Alexander Bokovikov <email@hidden>
References: 
 >NSWindow - makeKeyAndOrderFront problem (From: Alexander Bokovikov <email@hidden>)

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