Autorelease accessors, was Re: NSEnumerator retaining objects?
Autorelease accessors, was Re: NSEnumerator retaining objects?
- Subject: Autorelease accessors, was Re: NSEnumerator retaining objects?
- From: "Mike R. Manzano" <email@hidden>
- Date: Wed, 9 Mar 2005 09:37:23 -0800
Is this an autorelease accessor?
- (NSString*) getSomething
{
return [ NSString stringWithString:@"blah blah blah" ] ;
}
or
- (NSString*) getSomethingElse
{
return [ [ [ aClass alloc ] init ] autorelease ] ;
}
If so, I thought these were preferred ways of doing things?
Mike
alephx01 (at) mac (dot) com
On Mar 9, 2005, at 6:38 AM, Marco Scheurer wrote:
This is IMHO a perfect example of the problems incurred by the
"autorelease accessors" school of thought.
_______________________________________________
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