Non-NSObject object and garbage collection
Non-NSObject object and garbage collection
- Subject: Non-NSObject object and garbage collection
- From: "Oleg Krupnov" <email@hidden>
- Date: Mon, 11 Aug 2008 14:56:44 +0300
My application relies fully on garbage collection as the memory
management method.
Now I want to use a Quartz object which is not derived from NSObject.
Will it cause a memory leak if I treat the Quartz object in the same
way as I do to all my NSObject descendants, i.e. no retains and rely
only on garbage collection?
My understanding has been that the garbage collection functionality is
implemented somewhere under the hood of NSObject and that's (one of
the reasons) why all my objects should derive from NSObject. I hope I
am wrong and Quartz objects can be used just as well. :)
Thanks!
_______________________________________________
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