Re: NSTableView retain count problem
Re: NSTableView retain count problem
- Subject: Re: NSTableView retain count problem
- From: Greg Guerin <email@hidden>
- Date: Sun, 22 Nov 2009 11:41:27 -0700
Shane wrote:
Yeah, I've already done that. But I'm still seeing that self has two
different addresses when I print it out in either createDictionary, or
numberOfRowsInTableView. So the problem hasn't gone away.
There are two self's, I.e. two different instances. The name 'self'
isn't a single variable. It represents the object that's responding
to the message, and executing the method.
My guess is that one instance is created in the nib, and the other is
created in code you wrote.
Use the debugger. Set a breakpoint on the init methods and look at
how it reaches that point.
-- GG
_______________________________________________
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