• 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: NSTableView retain count problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView retain count problem


  • Subject: Re: NSTableView retain count problem
  • From: Jens Alfke <email@hidden>
  • Date: Sat, 21 Nov 2009 16:42:37 -0800

On Nov 21, 2009, at 3:49 PM, Shane wrote:

> So I looked at 'records' and the retain count
> is always 0, yet 'records' in my other method 'createDictionary' which
> populates the table is always 1.

There's no such thing as an object with retain count 0; the object would have been dealloc'ed the instant its retain count dropped below 1, and after that  any use of a pointer to it will crash.

What you're seeing is an object pointer with a value of nil. (Messaging nil always returns 0 / false / nil.) So you need to look at why your instance variable 'count' has a nil value at that point. Try setting breakpoints.

—Jens_______________________________________________

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

  • Follow-Ups:
    • Re: NSTableView retain count problem
      • From: Shane <email@hidden>
References: 
 >NSTableView retain count problem (From: Shane <email@hidden>)

  • Prev by Date: NSTableView retain count problem
  • Next by Date: Re: Best approach to write an uninstaller for osx
  • Previous by thread: NSTableView retain count problem
  • Next by thread: Re: NSTableView retain count problem
  • Index(es):
    • Date
    • Thread