• 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
Search field in menu, like Help menu has
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Search field in menu, like Help menu has
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Suggested maximum size of NSCachesDirectory on iOS
  • Next by Date: Re: Suggested maximum size of NSCachesDirectory on iOS
  • Previous by thread: Re: Suggested maximum size of NSCachesDirectory on iOS
  • Next by thread: Re: Search field in menu, like Help menu has
  • Index(es):
    • Date
    • Thread