Re: Update an NSMenu / NSMenuItem while it's being displayed on key down?
Re: Update an NSMenu / NSMenuItem while it's being displayed on key down?
- Subject: Re: Update an NSMenu / NSMenuItem while it's being displayed on key down?
- From: Kyle Sluder <email@hidden>
- Date: Sun, 1 Nov 2009 20:21:36 -0800
On Sun, Nov 1, 2009 at 7:31 PM, aaron smith
<email@hidden> wrote:
> What's the best way to go about updating an NSMenu that's currently being
> shown. For example, I have a button that triggers an NSMenu popup call and I
> want to detect the option key press and update some of the items in the
> menu.
For this specific case, use menu alternates.
In general, NSEvent has the information you want in the form of a
modifiers-changed event.
--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