Re: Application failing on copyWithZone:
Re: Application failing on copyWithZone:
- Subject: Re: Application failing on copyWithZone:
- From: "Michael Ash" <email@hidden>
- Date: Mon, 19 Jun 2006 00:48:48 -0400
On 6/18/06, Andrew Merenbach <email@hidden> wrote:
(Already sent to Kevin, but I forgot to CC.)
Hi, Kevin. Sorry if this is a stupid question (and it probably is),
but have you implemented -copyWithZone: in your AccountDocument
class? You'll need it for NSCoding to work properly with it, since
it's not a class that's serializable by default.
This is not the case. NSCoding is the only thing you need to implement
for serialization. NSView, for example, conforms to NSCoding but not
NSCopying. The two are very different concepts and Cocoa does not have
either one depend on the other.
To the original poster, see the "Breaking on Exceptions" section of
http://www.cocoadev.com/index.pl?DebuggingTechniques to find out
what's trying to copy your object, so you can make it stop.
Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden