Re: Programmatically highlighting an NSMenuItem
Re: Programmatically highlighting an NSMenuItem
- Subject: Re: Programmatically highlighting an NSMenuItem
- From: augusto callejas <email@hidden>
- Date: Thu, 8 Jul 2010 09:57:44 -0700
yes i know its not a real menu, but given it mostly behaves like one,
i was trying to use existing functionality without having to rewrite the menu-ing system.
thanks,
augusto.
On Jul 8, 2010, at 9:38 AM, Graham Cox wrote:
>
> On 09/07/2010, at 2:30 AM, Augusto Callejas wrote:
>
>> 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.
>
>
> It looks to me as if Spotlight isn't a menu at all, it's just putting up a window that looks a bit like one (not that there's much of a distinction anyway, NSMenus are windows internally).
>
> Maybe just do the whole thing in a custom view?
>
> --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