• 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: Application failing on copyWithZone:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Application failing on copyWithZone:
      • From: Andrew Merenbach <email@hidden>
    • Re: Application failing on copyWithZone:
      • From: Kevin Hoctor <email@hidden>
References: 
 >Application failing on copyWithZone: (From: Kevin Hoctor <email@hidden>)
 >Re: Application failing on copyWithZone: (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: Bundle vs. Framework for plugins
  • Next by Date: Re: Application failing on copyWithZone:
  • Previous by thread: Re: Application failing on copyWithZone:
  • Next by thread: Re: Application failing on copyWithZone:
  • Index(es):
    • Date
    • Thread