Should objects returned by indirection be autoreleased
Should objects returned by indirection be autoreleased
- Subject: Should objects returned by indirection be autoreleased
- From: Eric <email@hidden>
- Date: Thu, 11 May 2006 17:15:08 -0700
For example, this NSFormatter method:
- (BOOL)getObjectValue:(id *)anObject forString:(NSString *)string
errorDescription:(NSString **)error
Should the two indirectly returned objects (anObject and error) be
autoreleased? In other word, if I get an object from any method other than
alloc, etc., no matter how it's returned, it should be autoreleased,
correct?
Thanks,
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden