Re: FlagsChanged while NSMenu is displayed
Re: FlagsChanged while NSMenu is displayed
- Subject: Re: FlagsChanged while NSMenu is displayed
- From: email@hidden
- Date: Sat, 25 Jan 2014 03:15:35 +0900
Hi Kyle
Yes. I'm familiar with the genius simple alternate items setup.
I actually want to emulate the Finder Go menu here and have a hidden item.
No key equivalent for the item itself.
Thanks
Sent from my iPhone
> On 2014/01/25, at 3:06, Kyle Sluder <email@hidden> wrote:
>
>> On Fri, Jan 24, 2014, at 10:04 AM, Kyle Sluder wrote:
>> On Fri, Jan 24, 2014, at 10:01 AM, email@hidden
>> wrote:
>>> I wanted to show a hidden menu item in the Window menu when the option
>>> key is pressed.
>>> Similar to the way the Finder's Go menu behaves with the user Library
>>> menu item.
>>
>> This is done with alternate menu items. See -[NSMenu setAlternate:]. No
>> FlagsChanged event handling is necessary.
>
> Let me rephrase. This is _usually_ done with alternate menu items, in
> which case the alternate replaces the original item. Finder's case is
> uncommon―are you sure you want to emulate it, or do you want the more
> typical behavior?
>
> --Kyle Sluder
_______________________________________________
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