Re: NSArrayController and retainCount
Re: NSArrayController and retainCount
- Subject: Re: NSArrayController and retainCount
- From: Steve Moore <email@hidden>
- Date: Thu, 4 Nov 2004 21:16:43 -0700
On Nov 4, 2004, at 6:46 PM, Scott Stevenson wrote:
On Nov 4, 2004, at 2:44 PM, Steve Moore wrote:
Thanks for the link, though unfortunately I do not have a subclass of
NSWindowController. Nevertheless, I'll see if the workaround is
applicable.
I can't recall right now, but I think an NSDocument subclass might
have the same issue.
AND
I'm not sure that would do it. I believe it's binding (not KVO) that
is responsible for the retains. So you'd have to unbind. Make sure to
take a look at the discussion linked from that page I sent you. It has
more details.
Bingo. Yep, Allan Odgaard outlined the retain cycle problem with the
NSDocument as well as the NSWindowController. Tomorrow AM I'll insert
the NSObjectController into my MyDocument and follow that workaround.
What do they say about every problem can be solved by inserting another
level of indirection? :)
Many thanks, Scott.
Later,
Steve.
_______________________________________________
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