Do I "own" objects returned to me by reference?
Do I "own" objects returned to me by reference?
- Subject: Do I "own" objects returned to me by reference?
- From: Jerry Krinock <email@hidden>
- Date: Fri, 05 May 2006 18:57:16 -0700
- Thread-topic: Do I "own" objects returned to me by reference?
For example, in NSScanner we have:
- (BOOL)scanString:(NSString *)string intoString:(NSString **)stringValue ;
Should I -release stringValue when I am done with it, or has it been
autoreleased?
Is there a memory-management convention for objects returned by reference
like this?
Jerry
_______________________________________________
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