How can I create a copy of an object at runtime?
Can I destroy a copy?
Thanks.
Hi Blake,
Your question gets into the semantics of a 'copy' vs a 'sibling', but...
short answer: http://squeakland.org/pipermail/squeakland/2005-August/002707.html (and there's a 'sketch erase' tile, also in the 'miscellaneous' category of tiles, although I don't think I've ever used it.
longer answer: do a squeakland site-specific google search, appending your keywords as follows: site:squeakland.org/pipermail/squeakland sibling
--Randy
-----Original Message----- From: squeakland-bounces@squeakland.org [mailto:squeakland- bounces@squeakland.org] On Behalf Of Blake Sent: Friday, March 03, 2006 4:18 AM To: squeakland@squeakland.org Subject: [Squeakland] Copy an object programmatically.
How can I create a copy of an object at runtime?
Can I destroy a copy?
Thanks. _______________________________________________ Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
Also consider that you can put objects into a playfield both by hand and by program and clear the playfield.
I usually put my seed object into a separate little playfield before doing this.
One way to look at this is that the playfields act as variables for single objects and sets of objects. (If you put 0 at center of a playfield and drop in a player, then you have a very nice visible representation of a vector -- and there is a vector arithmetic trait that you can turn on, etc.)
Cheers,
Alan
03:56 AM 3/3/2006, Randy Heiland wrote:
Hi Blake,
Your question gets into the semantics of a 'copy' vs a 'sibling', but...
short answer: http://squeakland.org/pipermail/squeakland/2005-August/002707.html (and there's a 'sketch erase' tile, also in the 'miscellaneous' category of tiles, although I don't think I've ever used it.
longer answer: do a squeakland site-specific google search, appending your keywords as follows: site:squeakland.org/pipermail/squeakland sibling
--Randy
-----Original Message----- From: squeakland-bounces@squeakland.org [mailto:squeakland- bounces@squeakland.org] On Behalf Of Blake Sent: Friday, March 03, 2006 4:18 AM To: squeakland@squeakland.org Subject: [Squeakland] Copy an object programmatically.
How can I create a copy of an object at runtime?
Can I destroy a copy?
Thanks. _______________________________________________ Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
squeakland@lists.squeakfoundation.org