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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
