Search field in menu, like Help menu has
Search field in menu, like Help menu has
- Subject: Search field in menu, like Help menu has
- From: Jerry Krinock <email@hidden>
- Date: Sun, 09 Jun 2013 22:14:05 -0700
My OS X app programmatically creates a menu which is displayed in its
(1) Dock Menu
(2) Status Item
(3) a menu which use can pop up anywhere via a global keyboard shortcut, which invokes -[NSMenu popUpMenuPositioningItem:atLocation:inView:]
I would like to add a search field at the top of this menu, like the search field in the Help menu of any Cocoa app. At least in instance (3).
In Apple's document "Application Menu and Pop-up List Programming Topics" [1], it is stated that "A view in a menu item can receive all mouse events as normal, but keyboard events are not supported." But a search field certainly supports keyboard events!
So how might Apple be doing that?
Thanks,
Jerry Krinock
_______________________________________________
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