• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: retainCount
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >retainCount (From: Rosyna <email@hidden>)

  • Prev by Date: Re: IB, exclamation points, and targets
  • Next by Date: Re: retainCount
  • Previous by thread: retainCount
  • Next by thread: Re: retainCount
  • Index(es):
    • Date
    • Thread