Re: resetting ivars safely
Re: resetting ivars safely
- Subject: Re: resetting ivars safely
- From: Chris Suter <email@hidden>
- Date: Thu, 13 Sep 2007 13:01:03 +1000
On 13/09/2007, at 8:27 AM, Chris Suter wrote:
I wouldn't read too much into the fact that the retain count is
reported as 1 since the objective C implementation doesn't store
the retain count with the object. It stores the retain count in a
global hash if it's more than 1. The absence of the object in the
hash means it will cause it to report 1 but that could be because
your object has been deallocated. I'd turn on zombies and see what
happens. It's possible that the problem lies with your singleton
having been over-released.
I just realised that what I said about the retain count isn't
strictly true in this instance since we're talking about
NSMutableArray which will be using CoreFoundation. For
CoreFoundation, the retain count is stored with the object provided
it's less than 0x8000.
- Chris
_______________________________________________
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