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

Re: Search field in menu, like Help menu has


  • Subject: Re: Search field in menu, like Help menu has
  • From: Jerry Krinock <email@hidden>
  • Date: Mon, 24 Jun 2013 11:49:05 -0700

On 2013 Jun 10, at 09:59, Kyle Sluder <email@hidden> wrote:

> The same way they do the Spotlight “menu”: a borderless window that looks like a menu.

Thank you, Kyle.  That seems to be the only sensible explanation.

> Sadly, I don't know if there's a way to hook into the menu manager to get the same results in your app.\

Oh, I should have said: This is a "free-standing" menu that I pop open by using -[NSMenu popUpMenuPositioningItem:atLocation:inView:].  Not in the main menu.

* * *

I played with attaching my existing menu to the bottom of a borderless window, thinking I could put a search field at the top.  I still want to use a *real* NSMenu, because I need other menu behavior, submenus in particular which would be a major project to re-implement.

But after using it for a few minutes, I realized that, because a *real* menu is modal until dismissed, the search field would not be able to get keystrokes.

What I decided to do instead is to simply add a "Search" item to the menu.  I think this will be a better user experience copying Apple's current fake "Help" menu anyhow.  It took me a while to figure that thing out when it was first introduced, and I think that most casual users probably still find it to be a bit of a head-scratcher when they learn (or re-remember) that it searches menu item titles.

Jerry



_______________________________________________

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


References: 
 >Search field in menu, like Help menu has (From: Jerry Krinock <email@hidden>)
 >Re: Search field in menu, like Help menu has (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: How to determine the Http Method type being implemented for web service API
  • Next by Date: Re: How to determine the Http Method type being implemented for web service API
  • Previous by thread: Re: Search field in menu, like Help menu has
  • Next by thread: Concurrent MOCs
  • Index(es):
    • Date
    • Thread