• 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: 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


  • Follow-Ups:
    • Re: NSTableView retain count problem
      • From: Shane <email@hidden>
  • Prev by Date: How to distribute an app: Installer or original file
  • Next by Date: Re: Best approach to write an uninstaller for osx
  • Previous by thread: Re: NSTableView retain count problem
  • Next by thread: Re: NSTableView retain count problem
  • Index(es):
    • Date
    • Thread