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 (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40mugginsoft.com > > This email sent to jonat...@mugginsoft.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com