• 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: Kevin Hoctor <email@hidden>
  • Date: Sun, 18 Jun 2006 23:58:37 -0500

Hi Andrew,

On Jun 18, 2006, at 6:50 PM, Andrew Merenbach wrote:

- (id)copyWithZone:(NSZone *)zone {
	id copy = [[[self class] allocWithZone:zone] init];
	[copy setThisAttribute:[self getThisAttribute]];
	[copy setThatAttribute:[self getThatAttribute]];

	return copy;
}

This did work and I did figure out what I was doing wrong (nice recursive loop).


Another question: is AccountDocument an NSDocument subclass, or is it just a custom class of yours? (If it's actually an NSDocument subclass, you wouldn't want to be serializing that, but instead would want to encode a custom class with your data in it.)

AccountDocument is a custom class for my data. I've read that I shouldn't serialize NSDocument, but I'm not exactly sure of the reasons.
It's up and running again. Thank you for your help!


Peace,
Kevin
http://kevinhoctor.blogspot.com

_______________________________________________
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


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

  • Prev by Date: Re: Application failing on copyWithZone:
  • Next by Date: Re: Application failing on copyWithZone:
  • Previous by thread: Re: Application failing on copyWithZone:
  • Next by thread: [ANN] Cocoa Mentoring and Tutoring
  • Index(es):
    • Date
    • Thread