Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Retain cycle in NIB ?



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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.