• 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 the main menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updating the main menu


  • Subject: Re: Updating the main menu
  • From: Stéphane Sudre <email@hidden>
  • Date: Mon, 10 Nov 2003 21:32:15 +0100

Suggestion: put all the items and disable some of them when they are not needed.

Otherwise, maybe something like this:

[NSMenu setMenuChangedMessagesEnabled:NO]; // Panther only

// Do your modification

[NSMenu setMenuChangedMessagesEnabled:YES]; // Panther only

will speed things.

On lundi, novembre 10, 2003, at 08:02 PM, Eric Wang wrote:

I need to add and remove items from the main menu of my application
depending on whether or not a certain window is key. Calling
-insertItem:atIndex: and -removeItem: on the main menu works for the most
part, however there seems to be a delay before the menu bar actually
updates.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Updating the main menu
      • From: Eric Wang <email@hidden>
References: 
 >Updating the main menu (From: Eric Wang <email@hidden>)

  • Prev by Date: Re: DataSource class of NSTableView - weird
  • Next by Date: Cocoa Examples Using Sockets?
  • Previous by thread: Re: Updating the main menu
  • Next by thread: Re: Updating the main menu
  • Index(es):
    • Date
    • Thread