• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Update an NSMenu / NSMenuItem while it's being displayed on key down?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Update an NSMenu / NSMenuItem while it's being displayed on key down? (From: aaron smith <email@hidden>)

  • Prev by Date: Update an NSMenu / NSMenuItem while it's being displayed on key down?
  • Next by Date: Re: Editing in a tableview without selecting
  • Previous by thread: Update an NSMenu / NSMenuItem while it's being displayed on key down?
  • Next by thread: Create an NSCharacterSet constant
  • Index(es):
    • Date
    • Thread