Re: retainCount
Re: retainCount
- Subject: Re: retainCount
- From: Henri Lamiraux <email@hidden>
- Date: Fri, 5 Oct 2001 16:03:13 -0700
So just release it. If the caller wants to retain the object (and it
knows the function will release the object) the caller should just
retain the object before calling the function. But I would really avoid
implementing a function this way. It is bad practice to have a piece of
code releasing objects it did not create. Bad idea.
On Friday, October 5, 2001, at 03:31 PM, Rosyna wrote:
I pass this function an object, I want the function to release the
object regardless of the state of the object.
Henri Lamiraux
Engineering Manager
User Interface Tools Group
Apple