• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: resetting ivars safely
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >resetting ivars safely (From: Daniel Child <email@hidden>)
 >Re: resetting ivars safely (From: Chris Suter <email@hidden>)

  • Prev by Date: Re: popupbutton cell in an NSTableView displaying No Value
  • Next by Date: Re: NSBrowser background color
  • Previous by thread: Re: resetting ivars safely
  • Next by thread: Re: resetting ivars safely
  • Index(es):
    • Date
    • Thread