On Jul 8, 2010, at 9:34 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.
I think you will find it sufficiently difficult to fully implement the behaviors you want using a regular menu, that it would really be better to use a custom view for the entire thing. I know it seems like a menu could get you almost all the way there, but that last 20% is going to be really painful. -eric _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com