• 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: NSArrayController and table column bindings retain/dealloc woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController and table column bindings retain/dealloc woes


  • Subject: Re: NSArrayController and table column bindings retain/dealloc woes
  • From: "Shawn Erickson" <email@hidden>
  • Date: Thu, 20 Nov 2008 13:35:47 -0800

On Thu, Nov 20, 2008 at 1:11 PM, Keith Blount <email@hidden> wrote:
> Thanks for the reply. I did consider that but from what I had read I only thought that was a fix for the retain cycles created when file's own is an NSWindowController. I already manuallet setContent: and setContent:nil on my NSArrayController, does that not have the same effect? I'll certainly try it, anyway.

It should work you just can't do the setContent:nil in your dealloc
method since that will never get called because of the retain cycle
that exists. You have to do it in a pathway unrelated to dealloc, for
example on window close, etc. Once you setContent:nil the retain cycle
should be broken.

-Shawn
_______________________________________________

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

References: 
 >Re: NSArrayController and table column bindings retain/dealloc woes (From: "Shawn Erickson" <email@hidden>)
 >Re: NSArrayController and table column bindings retain/dealloc woes (From: Keith Blount <email@hidden>)

  • Prev by Date: Re: Autorelease Question
  • Next by Date: Re: NSImageView and releasing it's images...
  • Previous by thread: Re: NSArrayController and table column bindings retain/dealloc woes
  • Next by thread: Re: Cocoa-dev Digest, Vol 5, Issue 1956
  • Index(es):
    • Date
    • Thread