Retain cycle in NIB ?
Retain cycle in NIB ?
- Subject: Retain cycle in NIB ?
- From: Eric Morand <email@hidden>
- Date: Wed, 14 Sep 2005 23:46:49 +0200
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