On Oct 7, 2010, at 12:37 AM, eveningnick eveningnick wrote: > Hello > I have some application active (for example, finder) and its window is > a keyWindow that receives keyboard events > After i click on a "free from windows" part of a desktop with right > mouse button, i have a popup menu dropped down, and somehow this menu > now gets keyboard events (for example, when i press up, and down keys, > the menu cursor moves up and down). The Finder application is still > active, and i presume its window is still key window. But desktop menu > - it is a different process, a different application and a different > window. How come it receives keyDowns and how come Finder doesn't > receive them anymore, unless i click on Finder's window with left > mouse button? > What is the mechanism that is used and what is the route the key > events go till they reach that menu? I was trying to find out this > info in event programming guide, but without any luck :( > Do i correctly understand that popup menu is an ordinary cocoa window, > which is only made topmost by calling > [setLevel:NSPopupMenuWindowLevel]?
No, that is not completely correct. How the popup menu works is a private implementation detail. I understand that you want to have two windows with the key look at the same time. This is not something that is supported in AppKit at this time. Please file a radar. -raleigh > 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/ledet%40apple.com > > This email sent to le...@apple.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