Re: Memory Management to NSError
Re: Memory Management to NSError
- Subject: Re: Memory Management to NSError
- From: Sherm Pendley <email@hidden>
- Date: Tue, 6 Jan 2009 05:41:47 -0500
On Jan 5, 2009, at 9:16 PM, Dong Feng wrote:
How shall we handle the NSError object returned directly or indirectly
(through out parameter)? Shall it be released after use? I checked
the example code in Apple document but never see a returned NSError
object get released.
Since it's not specifically documented otherwise, the standard memory
management rules apply - if you don't create an object with one of the
methods that imply ownership, you must not release it.
sherm--
_______________________________________________
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