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: Fri, 16 Jan 2009 12:35:35 +1000
On 16/01/2009, at 11:45 AM, mmalc Crawford wrote:
That's fine, but what happens when the Owner goes away? Is it still
responsible for setting top-level Nib objects to nil before its -
finalize method is called or will the collector clean up the Nib
objects automatically?
<http://developer.apple.com/documentation/Cocoa/Conceptual/GarbageCollection/Articles/gcEssentials.html
>
Well, yes, I've read that document several times already, and as far
as I can tell the Nib objects should just get cleaned up automatically
as their root (the File's Owner) is no longer hanging around. I was
just a bit confused by this page in the Memory Management guide:
http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/MemMgmtNibObjects.html
"The File’s Owner of a nib file is typically responsible for releasing
the top-level objects in a nib file as well as any non-object
resources created by the objects in the nib."
--
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