Re: even after the longish diatribes on copying....
Re: even after the longish diatribes on copying....
- Subject: Re: even after the longish diatribes on copying....
- From: Marcel Weiher <email@hidden>
- Date: Mon, 14 Jun 2004 16:18:57 +0100
On 14 Jun 2004, at 15:08, Brent Gulanowski wrote:
On Jun 14, 2004, at 9:50 AM, Theodore Petrosky wrote:
I guess I could just create a method that allocs
another Person and then uses the setter methods to
populate the variables. But I thought I would use a
'copy'.
The orthodox approach is to create an archive of the object in
question.
Where did you get that idea? The orhtodox (and documented) approach is
to implement a -copy that will do what you want it to do.
Your custom objects must adopt the NSCoding protocol.
How about NSCopying instead?
Cheers,
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
1d480c25f397c4786386135f8e8938e4
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.