Re: NSMutableArray becomes NSString?
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