• 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: NSCopying is manual labor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCopying is manual labor


  • Subject: Re: NSCopying is manual labor
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Thu, 31 Mar 2005 00:19:03 +0200

At 5:54 Uhr -0500 30.03.2005, Adam wrote:
I am just beginning to read about NSCopying, but from what I understand I have to implement a copyWithZone method in my model class , init a new object, and by hand copy all 20 instance variables from the current object into the new object. Then since two of my instance variables are themselves model objects I need to repeat this process over again for each class. This is a lot of work. Is there something I am missing that can just copy an entire object and its contents in its current state, or am I on the right track to do it manually like this?

Have you checked out Accessorizer? I think it will auto-generate a copyWithZone: method.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: NSCopying is manual labor
      • From: Ricky Sharp <email@hidden>
References: 
 >NSCopying is manual labor (From: Adam <email@hidden>)

  • Prev by Date: Re: adding NSView from other application
  • Next by Date: Re: adding NSView from other application
  • Previous by thread: Re: NSCopying is manual labor
  • Next by thread: Re: NSCopying is manual labor
  • Index(es):
    • Date
    • Thread