Re: retainCount
Re: retainCount
- Subject: Re: retainCount
- From: "R. Tony Goold" <email@hidden>
- Date: Fri, 5 Oct 2001 18:06:24 -0400
An object has the same autorelease count it would have had if it hadn't
been autoreleased. AFAIK, autoreleasing doesn't alter an object at all, it
just calls [NSAutoreleasePool addObject:self]. It's the pool that gets
modified, adding the object to its list of objects to be autoreleased, and
then the object is sent a release message (by the pool) once the pool is
released.
Unless NSAutoreleasePool gets some sort of hasObject:(id)object method, I
don't think there's any way of knowing.
Cheers,
Tony
On Friday, October 5, 2001, at 05:48 , 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
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev