Re: Am I overreleasing something?
Re: Am I overreleasing something?
- Subject: Re: Am I overreleasing something?
- From: "Theodore H. Smith" <email@hidden>
- Date: Fri, 10 Jun 2005 18:03:47 +0100
On 10 Jun 2005, at 17:53, Ondra Cada wrote:
On 10.6.2005, at 16:44, Glen Simmons wrote:
I suppose the other way is to avoid using autorelease, entirely,
and use release whereever possible. At least that way I'll get my
errors as soon as possible.
Well, there's no way to avoid using autorelease entirely.
There is, of course. You can use Cocoa-Java. Shudder :)
... autorelease is a very useful tool and you would be really
limiting yourself if you tried to do without it.
Definitely.
I didn't quite mean it to that extreme, that would be silly. I meant
more like this within my own code:
Obj = [[MyClass alloc] init];
[Obj doStuff];
[Obj release];
When it comes to being used implicitly, via globals eg, NSString
stringWithCString: or other stuff, I'm happy to use it.
_______________________________________________
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