Re: [[object autorelease] release]
Re: [[object autorelease] release]
- Subject: Re: [[object autorelease] release]
- From: Rosyna <email@hidden>
- Date: Tue, 2 Oct 2001 05:20:27 -0700
I think the original thing here was
NSString* myString=[NSString stringWithString:@"Hi Mom!"]; // @"Hi
Mom!" puts weird data into the variable.
[myString use];
[myString release];
In this case, there is no problem with that. And in the other case,
it'd check to see if that second object was freed as well. So I am
probably not understanding your objection to this.
Ack, at 10/2/01, Ondra Cada said:
>>>>>> Rosyna (R) wrote at Tue, 2 Oct 2001 05:07:44 -0700:
R> Its a huge speed hit to see if the object in the autorelease pool has
R> been released already?
That would be (almost) no speed hit at all.
Alas, what it *completely* impossible is checking whether another object did
not take the same (freed) address meantime.
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insane People