Re: Trouble with performSelector afterDelay
Re: Trouble with performSelector afterDelay
- Subject: Re: Trouble with performSelector afterDelay
- From: Ken Thomases <email@hidden>
- Date: Mon, 14 Jul 2008 17:40:56 -0500
On Jul 14, 2008, at 5:25 PM, James Trankelson wrote:
The funny thing about my Worker class is that it's a singleton,
implementing the following method:
- (unsigned)retainCount
{
return UINT_MAX; //Never release
}
Are there other ways objects can get released if not by retainCount?
The implementation of NSObject's -retain, -release, and -retainCount
are private. However, I've always thought that -retainCount was a
means for outsiders to query what's going on -- it does not _control_
what happens, it just _reveals_ something about what happens. That's
my guess, anyway.
So, I would not expect that overriding -retainCount would be a means
to "neutralize" -release. And, from what you're seeing, indeed it is
not.
Cheers,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden