Re: Weird NSToolbar glitch
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