• 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: Weird NSToolbar glitch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird NSToolbar glitch


  • Subject: Re: Weird NSToolbar glitch
  • From: Bryan Matteson <email@hidden>
  • Date: Thu, 1 Oct 2009 14:40:45 -0500

OK, it's solved now. Turns out NSToolbar does not like being on two windows at the same, in any way, and setting one window's toolbar to nil and adding the toolbar to a new window still causes those weird drawing errors as well.
The solution, if anyone finds themselves grappling with this, is to simply create a new toolbar every time. Seems awfully wasteful to me, but I don't think they were designed to be used across multiple windows. And if you find you have to remove all the items from a toolbar, your best bet is probably to just replace it with a new empty toolbar. Without looking at the code, nobody will be able to tell that's what you did.


Anyways, thanks for all the advice.

-B
_______________________________________________

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: Weird NSToolbar glitch
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Provisioning Question
  • Next by Date: Re: Provisioning Question
  • Previous by thread: Re: Provisioning Question
  • Next by thread: Re: Weird NSToolbar glitch
  • Index(es):
    • Date
    • Thread