• 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: Arggg...overrelease in table view cell, but where?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Arggg...overrelease in table view cell, but where?


  • Subject: Re: Arggg...overrelease in table view cell, but where?
  • From: j o a r <email@hidden>
  • Date: Thu, 11 Dec 2008 13:14:19 -0800


On Dec 11, 2008, at 4:06 PM, Benjamin Stiglitz wrote:

NSCells use NSCopyObject to do their copies, which ends up setting the values of cellObject and gridController in your copies, but not retaining them. You need to nil them out before setting the values in your properties. This is a long-standing misbehavior of NSCell that probably won’t be changing anytime soon.


This is indeed a problem. The documentation covers it, for the most part, but it could still be improved:

<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/ImplementCopy.html >
<http://developer.apple.com/documentation/Cocoa/Conceptual/ControlCell/Tasks/SubclassingNSCell.html >


j o a r


_______________________________________________

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: 
 >Arggg...overrelease in table view cell, but where? (From: Randall Meadows <email@hidden>)
 >Re: Arggg...overrelease in table view cell, but where? (From: Benjamin Stiglitz <email@hidden>)

  • Prev by Date: Re: Arggg...overrelease in table view cell, but where?
  • Next by Date: Re: Arggg...overrelease in table view cell, but where?
  • Previous by thread: Re: Arggg...overrelease in table view cell, but where?
  • Next by thread: Re: Arggg...overrelease in table view cell, but where?
  • Index(es):
    • Date
    • Thread