• 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: NSMutableArray becomes NSString?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableArray becomes NSString?


  • Subject: Re: NSMutableArray becomes NSString?
  • From: "Philip Q" <email@hidden>
  • Date: Sat, 14 Apr 2007 14:25:57 +1200

On 14/04/07, David Phillip Oster <email@hidden> wrote:
Mostly recently I've seen this with an NSTableView with a custom
cell.  Since NSTableView's copying of your NSCell subclass happens
"under the hood", this bug is mysterious and hard to track down until
you've seen it.


But in NSTableView's defence, the documentation for when inheriting from a superclass that implements NSCopying does say:

"... if your class inherits NSCopying behavior and has declared
additional instance variables, you need to implement copyWithZone:,
too."
<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/ImplementCopy.html>

-Phil
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Prev by Date: Re: NSMutableArray becomes NSString?
  • Next by Date: NSXMLDocument and XSLT
  • Previous by thread: Re: NSMutableArray becomes NSString?
  • Next by thread: super constructor encapsulation
  • Index(es):
    • Date
    • Thread