Re: Weird NSToolbar glitch
Re: Weird NSToolbar glitch
- Subject: Re: Weird NSToolbar glitch
- From: Bryan Matteson <email@hidden>
- Date: Wed, 30 Sep 2009 18:10:10 -0500
It's not much info to go on... perhaps NSToolbar objects to the Spice
Girls or Gloria Estafan? =)
What have you tried (.com)?
;) Yea I'm sorry I guess it's not much to go on, that's how I feel
though.
Basically I have a NIB file controlled by NSViewController that
contains a view and a toolbar. From the picture you see that I'm using
tabs, basically each tab has a view and a toolbar, and clicking each
tab sets a different view and toolbar.
The tabs work exactly like Safari's bookmark tabs. The problem arises
when I drag a tab off the bar and it creates a new window controller /
window instance and adds itself as a tab there. I'm setting the same
view controller from the old tab to the new tab, and calling
setToolbar on the new window. That's when the glitch happens.
OK
I seem to have found a solution. That's the way it works though, you
beat your head against the wall all day and just when you're
frustrated enough to ask for help, you figure it out.
It seems to work if I create a new view controller instance from the
NIB. Why is it that I can't just swap a toolbar from one window to the
other? The other window has been properly destroyed (I think, I'm
using GC).
_______________________________________________
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