Re: NSArrayController and retainCount
Re: NSArrayController and retainCount
- Subject: Re: NSArrayController and retainCount
- From: Scott Stevenson <email@hidden>
- Date: Thu, 4 Nov 2004 17:46:44 -0800
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.
I'm hoping, if your workaround is not workable in this situation, that
I am not going to have to go through all these objects and do a
removeObserver... on them. That would be a drag.
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.
A rather simple question: if I release the window that contains all
these objects with binding connections to my controller will all those
"removeObserver..." calls be made by the various controls as they get
deallocated
The problem is that the parent and children are retaining each other,
so neither is deallocated without intervention.
- Scott
--
http://treehouseideas.com/
http://theobroma.treehouseideas.com/ [blog]
_______________________________________________
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