Re: NSArrayController and table column bindings retain/dealloc woes
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