Re: NSWindow - makeKeyAndOrderFront problem
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