[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
creating a copy of an object
From: |
Rick Riolo |
Subject: |
creating a copy of an object |
Date: |
Wed, 4 Feb 1998 08:34:37 -0500 (EST) |
What's the latest ideas about the best way to create a copy
of an object (without having to write one's own copy method)?
I have used:
id newBug = [[self getZone] copyIVars: self];
Are there better ways, or reasons not to use the above approach?
When would the above fail (i.e., give surprising results)?
Thanks.
- r
Rick Riolo address@hidden
Program for Study of Complex Systems (PSCS)
4068 Randall Lab
University of Michigan Ann Arbor MI 48109-1120
Phone: 313 763 3323 Fax: 313 763 9267
http://www.pscs.umich.edu/PEOPLE/rlr-home.html
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
==================================
- creating a copy of an object,
Rick Riolo <=