Re: Application failing on copyWithZone:
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