Re: retainCount
Re: retainCount
- Subject: Re: retainCount
- From: Rosyna <email@hidden>
- Date: Fri, 5 Oct 2001 15:21:16 -0700
Then I'd have to ask, is it safe to retain an alloc'd instance?
NSString* bob=[[NSString alloc] initWithString:@"Bob 0wnz you"];
[[bob retain] release];
NSString* sue=[NSString stringWithString:@"Sue gave Bob a rug-burn."];
[[[[sue retain] autorelease] retain] release];
Ack, at 10/5/01, Henri Lamiraux said:
You should never have to worry about that (and there is no way to
know that anyway as far as I can tell). If you want to keep an
object around retain it. If you are done with it release (or
autorelease it).
On Friday, October 5, 2001, at 02:48 PM, Rosyna wrote:
Does an object set to autorelease have a retain count? If it does,
how can i tell if the object is to be autoreleased?
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insane People