pen:(NSMenu*)menu
> {
> if (![NSApp isActive]) {
> [NSApp activateIgnoringOtherApps:YES];
> }
> }
>
> It's better now and the menu stays after a slight flickering... It highlights
> the title for a sec and unhighlights it. How to get rid of fli
i have to click it again to show up.
>
> What is the best practice to implement it anyway?
>
> Thanks,
>
> Nava
>
> On Jul 8, 2010, at 11:25 PM, augusto callejas wrote:
>
>> when you click again on your status menu, try making your app the active app:
>>
when you click again on your status menu, try making your app the active app:
[NSApp activateIgnoringOtherApps:YES];
augusto.
On Jul 8, 2010, at 12:26 PM, Nava Carmon wrote:
> Can somebody answer this please?
>
> On Jul 8, 2010, at 8:41 AM, Nava Carmon wrote:
>
>> Hi,
>>
>> I added a custom
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
hi-
i have an NSMenu that has another NSMenu as a submenu (via an NSMenuItem).
in a certain situation, when the submenu is visible, i want to close that
submenu, but without closing the main NSMenu.
the documentation for [NSMenu cancelTracking] says it dismisses the menu, but
when i call that on
hi-
i have an NSSearchField embedded in an NSMenu and when i have another
NSMenuItem highlighted,
and i navigate the menu using the up and down arrows, those characters are
being added to my
NSSearchField (i.e. 0x30, 0x31, etc), but i'd rather not have those characters
added to the string text
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.___
hi-
i've built the beginning of my own custom NSMenu with an embedded NSSearchField.
i was wondering if the following behavior is possible:
in spotlight, when you enter a search term, you start getting results and the
first term
is highlighted:
http://www.genielogic.com/page7/files/spotlightmen
>> NSMenuDidEndTrackingNotification): the NSMenuItem will be retained until its
>> action fires. However, this does not work in Leopard and earlier.
>>
>> -Peter
>>
>> On Jun 25, 2010, at 3:41 PM, augusto callejas wrote:
>>
>>> peter-
>>&g
need to take care of that
somewhere else?
thanks,
augusto.
On Jun 25, 2010, at 3:26 PM, Peter Ammon wrote:
>
> On Jun 25, 2010, at 2:58 PM, augusto callejas wrote:
>
>> hi-
>>
>> i'm constructing an NSMenu with a delegate to handle menuDidClose.
>> that me
hi-
i'm constructing an NSMenu with a delegate to handle menuDidClose.
that menu has an NSMenuItem that had an action to handle when its selected.
when i select the menu item from the menu, it calls menuDidClose, and then
the action of the NSMenuItem. i would expect the other order, but the
docu
hi-
i have an NSMenu attached to a NSStatusBarItem and its being displayed properly,
except for a single NSMenuItem in that menu, which contains as a view with a
single
search field:
NSMenuItem* firstItem = [[NSMenuItem allocWithZone:[NSMenu menuZone]]
initWithTitle:@"Test" action:NULL keyE
hi-
i'm adding an NSSearchField to an NSMenu by creating an NSMenuItem
and calling setView with the search field as the argument. i'm able to display
the search field properly, but it doesn't gain focus (no blinking cursor in the
search field) either when the NSMenu is displayed or when i click o
hi-
i'm trying to find a cocoa example of a contextual menu plugin,
but searching the apple developer site only comes up with an
example based on carbon:
http://developer.apple.com/Samplecode/SampleCMPlugIn/index.html
since the finder under snow leopard is going to be pure cocoa,
i assume any c
15 matches
Mail list logo