• 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: Jerry Krinock <email@hidden>
  • Date: Wed, 18 Apr 2012 17:04:40 -0700

On 2012 Apr 18, at 13:14, vinayak pai wrote:

> I have a NSMenu with dynamically added NSMenuItems. The NSMenu is not refreshing properly while it's kept open.

I do not believe there is any way to refresh a menu while it is open.  The method in which you do your dynamism, -menuNeedsUpdate, is only guaranteed to be invoked when the user clicks the menu.  Although I've seen it invoked at other times, this seems to be some kind of performance optimization.

You must redesign your app to not require refreshing a menu while it is open.


_______________________________________________

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: Graham Cox <email@hidden>
References: 
 >Updating NSMenu while it's open (From: vinayak pai <email@hidden>)

  • Prev by Date: Re: Core Data and ARC crasher and workaround
  • Next by Date: Re: Updating NSMenu while it's open
  • Previous by thread: Updating NSMenu while it's open
  • Next by thread: Re: Updating NSMenu while it's open
  • Index(es):
    • Date
    • Thread