• 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: Dynamic Menu Bars
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic Menu Bars


  • Subject: Re: Dynamic Menu Bars
  • From: Uli Kusterer <email@hidden>
  • Date: Fri, 10 Aug 2007 10:35:19 +0200

On 10.08.2007, at 10:00, Andre Schnoor wrote:
2) Alternatively, I started modifying menu bar items in-place, preserving the first one (which I am unable to create from scratch). This however causes hefty flicker and sometimes the menu bar even doesn't show any item at all (blank!). The items however, are still there and working. Hu? Looks like the drawing of the menu sometimes happens while modification is still in process. Pushing the setMainMenu: call to the main thread didn't help. Also tried itemChanged: and update messages, but with limited success. Is there a recommended solution to avoid this "hidden menu" artefact?

This should work, but not from a non-main thread. The kind of artefacts you mention are exactly the glitches one gets when doing GUI stuff from a secondary thread. Are you sure you've moved all of your menu code into the main thread? What about other GUI code?


Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

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: Dynamic Menu Bars
      • From: Andre Schnoor <email@hidden>
References: 
 >Dynamic Menu Bars (From: Andre Schnoor <email@hidden>)

  • Prev by Date: Dynamic Menu Bars
  • Next by Date: Re: NSTableView and keyPath
  • Previous by thread: Dynamic Menu Bars
  • Next by thread: Re: Dynamic Menu Bars
  • Index(es):
    • Date
    • Thread