Re: NSTableView retain count problem
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