Re: Nib memory management under Garbage Collection
Re: Nib memory management under Garbage Collection
- Subject: Re: Nib memory management under Garbage Collection
- From: Rob Keniger <email@hidden>
- Date: Sun, 25 Jan 2009 13:22:54 +1000
On 16/01/2009, at 2:26 PM, mmalc Crawford wrote:
"Since the collector follows strong references from root objects,
and treats as garbage all objects that cannot be reached from a root
object, you must ensure that there are strong references to all top-
level objects in a nib file (including for example, stand-alone
controllers)—otherwise they will be collected. You can create a
strong reference simply by adding an outlet to the File's Owner and
connecting it to a top-level object. (In practice this is rarely
likely to be an issue.)"
Nib Files: <http://developer.apple.com/documentation/Cocoa/Conceptual/GarbageCollection/Articles/gcEssentials.html
>
Just following up on this thread for the archives, there is a
definitive guide for Nib Memory Management under GC and non-GC on this
page:
http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/LoadingResources/CocoaNibs/chapter_3_section_4.html#/
/apple_ref/doc/uid/10000051i-CH4-SW6
--
Rob Keniger
_______________________________________________
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