Nib memory management under Garbage Collection
Nib memory management under Garbage Collection
- Subject: Nib memory management under Garbage Collection
- From: Rob Keniger <email@hidden>
- Date: Fri, 16 Jan 2009 11:03:59 +1000
After reading the previous thread on memory management of Nib objects,
I am unsure how it applies to memory-managed apps. The Garbage
Collection programming guide says that if you don't want the collector
to collect top-level Nib objects, you must maintain a strong reference
to them in your File's Owner, such as an Outlet.
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?
--
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