• 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: Updating NSMenu while it's open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updating NSMenu while it's open


  • Subject: Re: Updating NSMenu while it's open
  • From: Dave DeLong <email@hidden>
  • Date: Wed, 18 Apr 2012 19:46:58 -0700

On Apr 18, 2012, at 7:43 PM, Andy Lee wrote:

> On Apr 18, 2012, at 9:47 PM, Graham Cox wrote:
>> On 19/04/2012, at 10:04 AM, Jerry Krinock wrote:
>>
>>> [...]
>>> You must redesign your app to not require refreshing a menu while it is open.
>>
>>
>> Not true - the system's WiFi menu updates while it is open.
>
> Another example is the File menu in some apps such as Safari, TextEdit, and BBEdit. Some menu items change when you hold down the Option key.
>
> --Andy

That's slightly different.  That's run by NSMenuItem's "alternate" mechanism.  It sounds like what the OP was asking for was dynamically adding and removing NSMenuItems while the menu is open.

Dave
_______________________________________________

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

  • Follow-Ups:
    • Re: Updating NSMenu while it's open
      • From: Andy Lee <email@hidden>
    • Re: Updating NSMenu while it's open
      • From: Uli Kusterer <email@hidden>
References: 
 >Updating NSMenu while it's open (From: vinayak pai <email@hidden>)
 >Re: Updating NSMenu while it's open (From: Jerry Krinock <email@hidden>)
 >Re: Updating NSMenu while it's open (From: Graham Cox <email@hidden>)
 >Re: Updating NSMenu while it's open (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: Updating NSMenu while it's open
  • Next by Date: Cocoa equivalent for SetWindowProperty in Carbon
  • Previous by thread: Re: Updating NSMenu while it's open
  • Next by thread: Re: Updating NSMenu while it's open
  • Index(es):
    • Date
    • Thread