• 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: 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.

  • Follow-Ups:
    • Re: Updating the main menu
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: Updating the main menu
      • From: Brian Christensen <email@hidden>
References: 
 >Re: Updating the main menu (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: NSArrayController selection bug?
  • Next by Date: Re: NSView subclass bindings? NSTextView?
  • Previous by thread: Re: Updating the main menu
  • Next by thread: Re: Updating the main menu
  • Index(es):
    • Date
    • Thread