• 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
Re: Retains and bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retains and bindings


  • Subject: Re: Retains and bindings
  • From: Gwynne <email@hidden>
  • Date: Thu, 21 Oct 2004 23:54:03 -0400

On Oct 21, 2004, at 11:41 PM, Scott Stevenson wrote:
I'm sure this has graduated to a FAQ by now, but of course the archive search is no good. I'm loading a perfectly normal nib with bindings, and I want to figure out how to release everything correctly. I save the top-level objects and release them all (twice!), the window (panel, actually) is set to release on close, and so on. The NSObjectController still ends up with a retain count of 62 (yes, the object is still valid at that point; it's not garbage data). What do I have to be releasing and how in order to get the objects, including the owner, to deallocate?
See:

Bindings and File's Owner
http://theobroma.treehouseideas.com/document.page/18

Unfortunately, that's not a helpful link; my file's owner is not a NSWindowController or subclass thereof. It's a basic NSObject subclass.

-- Gwynne, key to the Code that runs us all
Email: email@hidden
Web: http://musicimage.plasticchicken.com/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Retains and bindings (From: Gwynne <email@hidden>)
 >Re: Retains and bindings (From: Scott Stevenson <email@hidden>)

  • Prev by Date: Re: Retains and bindings
  • Next by Date: Re: Fuzzy string searching. String distance algorithm based on a tree technique?
  • Previous by thread: Re: Retains and bindings
  • Next by thread: Re: Retains and bindings
  • Index(es):
    • Date
    • Thread