Re: Updating the main menu
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.