Re: Updating the main menu
Re: Updating the main menu
- Subject: Re: Updating the main menu
- From: Eric Wang <email@hidden>
- Date: Mon, 10 Nov 2003 19:01:14 -0500
on 11/10/03 3:32 PM, Stiphane Sudre at email@hidden wrote:
>
Otherwise, maybe something like this:
>
>
[NSMenu setMenuChangedMessagesEnabled:NO]; // Panther only
>
>
// Do your modification
>
>
[NSMenu setMenuChangedMessagesEnabled:YES]; // Panther only
>
>
will speed things.
Thanks for your response. I tried that method, but unfortunately, the delay
in updating the main menu still exists. The behavior I'm looking for seems
to be possible within Cocoa. For example, switching between applications
rapidly by repeatedly pressing command-tab causes the menu bar to update
instantaneously. However, I can't seem to get that behavior by calling
-[NSApplication setMainMenu:], which I'm guessing is what Cocoa apps call to
update the main menu when they become the active application.
In any case, I've been pouring over the Carbon documentation, and there are
some promising functions in the Menu Manager reference such as SetMenuBar()
and DrawMenuBar(). I'm not too experienced with Carbon, so if anyone knows
I'm going in the wrong direction with this, please let me know.
Eric Wang
_______________________________________________
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.