• 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
NSToolbarItems - deallocating view-based items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSToolbarItems - deallocating view-based items
      • From: Peter Ammon <email@hidden>
  • Prev by Date: Re: NSCollectionView: Different-sized items? Docs?
  • Next by Date: Re: NSScrollView: is setting the document view size supported?
  • Previous by thread: [MEET] BYU CocoaHeads 2/12/09
  • Next by thread: Re: NSToolbarItems - deallocating view-based items
  • Index(es):
    • Date
    • Thread