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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]