Re: retainCount
Re: retainCount
- Subject: Re: retainCount
- From: Rosyna <email@hidden>
- Date: Fri, 5 Oct 2001 15:39:13 -0700
Thats just it, in this case it's not outside the scopes responsibility.
Ack, at 10/5/01, Finlay Dobbie said:
On Friday, October 5, 2001, at 11:31 pm, Rosyna wrote:
Well, lets say I reuse this function about 100 times. I pass this
function an object, I want the function to release the object
regardless of the state of the object.
No, you don't. It should retain the object while it needs it to
stick around, and release it when it doesn't need it any more --
nothing more, nothing less. It should *NEVER* have to worry about
the object's state -- that's outside its scope of responsibility.
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insane People