NSToolbarItems - deallocating view-based items
NSToolbarItems - deallocating view-based items
- Subject: NSToolbarItems - deallocating view-based items
- From: Steve Cronin <email@hidden>
- Date: Mon, 09 Feb 2009 21:13:00 -0600
Folks;
I have a mix of view and image based toolbar items.
The views are all IBOutlets defined in IB.
Everything is working well - events are handled and items
arevalidated, everything is dandy.
Except when the user customizes the toolbar.
The image based items can be added and removed 'till the cows come home
BUT the view based items - not so much...
They can be added and then they can be removed.
But once they are removed they cannot be re-added unless the
application is quit and restarted.
Attempting to re-add a view-based toolbar item that has been removed
causes a message like the following:
" -[NSSearchField retain]: message sent to deallocated instance
0x19b83490 "
Sooo what is the correct way to handle this?
I guess I'm puzzled by the IBOutlet aspect..
_______________________________________________
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