• 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: Programmatically highlighting an NSMenuItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically highlighting an NSMenuItem


  • Subject: Re: Programmatically highlighting an NSMenuItem
  • From: augusto callejas <email@hidden>
  • Date: Thu, 8 Jul 2010 09:34:45 -0700

i'm trying to replicate the functionality of spotlight using an embedded NSSearchField inside an NSMenu.
when a search is performed, i add NSMenuItems to the NSMenu.  when you perform a search in spotlight,
the first search result is highlighted and you can immediately use the up/down arrows to traverse the
results.  i'd like to do the same by highlighting the first result in my NSMenu (which is an NSMenuItem).
since spotlight has the same behavior, then it seems like an experience a user is familiar with.

augusto.

On Jul 7, 2010, at 6:29 PM, Graham Cox wrote:

>
> On 08/07/2010, at 11:00 AM, Kyle Sluder wrote:
>
>> Does NSMenuItemCell match the appearance of menus on 10.5?
>
>
> No. I noticed this in the docs just after posting: "Note: NSMenuItemCell is no longer used to draw menus. Using it will not affect the appearance of your menus."
>
> Maybe the OP ought to tell us why he needs this, sounds like one of those 'don't do it that way' cases.
>
> --Graham
>
>

_______________________________________________

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: Programmatically highlighting an NSMenuItem
      • From: Eric Schlegel <email@hidden>
References: 
 >Programmatically highlighting an NSMenuItem (was: Building a Spotlight-like custom NSMenu with an embedded NSSearchField) (From: augusto callejas <email@hidden>)
 >Re: Programmatically highlighting an NSMenuItem (From: Graham Cox <email@hidden>)
 >Re: Programmatically highlighting an NSMenuItem (From: Kyle Sluder <email@hidden>)
 >Re: Programmatically highlighting an NSMenuItem (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Sanity Check
  • Next by Date: Re: Programmatically highlighting an NSMenuItem
  • Previous by thread: Re: Programmatically highlighting an NSMenuItem
  • Next by thread: Re: Programmatically highlighting an NSMenuItem
  • Index(es):
    • Date
    • Thread