Re: Programmatically highlighting an NSMenuItem

2010-07-08 Thread vincent habchi
Le 8 juil. 2010 à 18:57, augusto callejas a écrit : > 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. As far as I know, you cannot use menu to do what you seek to achieve. You woul

Re: Programmatically highlighting an NSMenuItem

2010-07-08 Thread Eric Schlegel
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

Re: Programmatically highlighting an NSMenuItem

2010-07-08 Thread Kyle Sluder
On Thu, Jul 8, 2010 at 9:57 AM, augusto callejas wrote: > 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. Given that you're going to want to do a significant amount of custom work,

Re: Programmatically highlighting an NSMenuItem

2010-07-08 Thread augusto callejas
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 tryin

Re: Programmatically highlighting an NSMenuItem

2010-07-08 Thread Graham Cox
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

Re: Programmatically highlighting an NSMenuItem

2010-07-08 Thread augusto callejas
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

Re: Programmatically highlighting an NSMenuItem

2010-07-07 Thread Graham Cox
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

Re: Programmatically highlighting an NSMenuItem

2010-07-07 Thread Kyle Sluder
On Wed, Jul 7, 2010 at 5:29 PM, Graham Cox wrote: > NSMenuItemCell inherits -setHighlighted: from NSCell Does NSMenuItemCell match the appearance of menus on 10.5? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not pos

Re: Programmatically highlighting an NSMenuItem

2010-07-07 Thread Graham Cox
On 08/07/2010, at 3:47 AM, augusto callejas wrote: > hi- > > i'd like to simplify my question from earlier: > > how do i programmatically highlight an NSMenuItem inside an NSMenu? > i only see "isHighlighted" method in NSMenuItem, but no method for setting > the currently highlighted menu item

Programmatically highlighting an NSMenuItem (was: Building a Spotlight-like custom NSMenu with an embedded NSSearchField)

2010-07-07 Thread augusto callejas
hi- i'd like to simplify my question from earlier: how do i programmatically highlight an NSMenuItem inside an NSMenu? i only see "isHighlighted" method in NSMenuItem, but no method for setting the currently highlighted menu item. thanks, augusto.___