• 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: even after the longish diatribes on copying....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >even after the longish diatribes on copying.... (From: Theodore Petrosky <email@hidden>)
 >Re: even after the longish diatribes on copying.... (From: Brent Gulanowski <email@hidden>)

  • Prev by Date: Re: even after the longish diatribes on copying....
  • Next by Date: Panther is flipping my text
  • Previous by thread: Re: even after the longish diatribes on copying....
  • Next by thread: Re: even after the longish diatribes on copying....
  • Index(es):
    • Date
    • Thread