Re: Question about NSTreeController/NSOutlineView instance cleanup
Re: Question about NSTreeController/NSOutlineView instance cleanup
- Subject: Re: Question about NSTreeController/NSOutlineView instance cleanup
- From: Quincey Morris <email@hidden>
- Date: Thu, 10 Apr 2008 20:48:58 -0700
On Apr 10, 2008, at 19:46, Markus Spoettl wrote:
I thought I don't have to retain treeContent since I automatically
do that with alloc-init, right?
That's right.
Perhaps the controller is not getting released when it should. Do you
have an instance variable for the controller too? If so, how is that
retained/released? You could probably avoid the error by sending a
"setContent:nil" message to the controller in the document's dealloc,
but that would just be papering over the problem.
Or perhaps the objects in treeContent are all getting overreleased.
That could cause the error messages you're seeing.
_______________________________________________
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