Re: Retain cycle in NIB ?
Re: Retain cycle in NIB ?
- Subject: Re: Retain cycle in NIB ?
- From: Robert Cerny <email@hidden>
- Date: Mon, 26 Sep 2005 20:32:13 +0200
Hi,
do you have "released when closed" checked in the nib?
HTH
R.
On 14.9.2005, at 23:46, Eric Morand wrote:
Hi List !
I have a nib file whose owner is an NSObject subclass. What is
strange is that this subclass instances are nerver dealloc'd
(dealloc is never called on them).
My nib file only contains the File's Owner (one instance of my
NSObject subclass) and an NSObjectController instance whose content
outlet is set to the File's Owner.
What is strange is that when U unplug the object controller content
outlet, my subclass is dealloc'd successfully !
I suppose there is a retain cycle here (the File's Owner retain the
object controller and the object controller retain the File"'s
Owner) but I don't know what to do to fix it. I've found some
threads about this in the archives but they all deal with
NSWindowController (and my File's Owner is NOT an
NSWindowController sublass) and solutions given don't work in my case.
Can anyone explain me what's happening here ?
Thanks,
Eric.
_______________________________________________
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
_______________________________________________
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