[Squeakland] make sibling from script

Randy Heiland heiland at indiana.edu
Mon Aug 8 12:20:36 PDT 2005


Scott,  

 

Extending this further, I'd then like to be able to place the newly created
sibling at a specified location in the container/playfield.  Since it's so
close to Squeakfest, you can wait and educate me in person if you want.  I
did see there was also an "include at cursor" tile on the Playfield which
I'm assuming would be used to do this placement, but not sure how I might
use it successfully.

 

--Randy

 

  _____  

From: Scott Wallace [mailto:scott.wallace at squeakland.org] 
Sent: Friday, August 05, 2005 4:05 PM
To: Randy Heiland
Cc: 'squeakland.org mailing list'
Subject: Re: [Squeakland] make sibling from script

 

Hi, Randy,

 

Yes, it's called "copy", and it can be found in the "miscellaneous"
category.

 

When you execute "Car's copy", you'll end up with a sibling of Car.

 

However, if you don't *place* it somewhere, you won't see it.  The standard
idiom for placing an object somewhere via script is to tell the *container*
in which you place it to "include" it.

 

Look in the "collections" category of the container's viewer for various
ways to "include" an object

 

Here's a typical usage pattern:

 



 

Cheers,

 

  -- Scott

 

 

At 10:18 AM -0500 8/5/05, Randy Heiland wrote:

Is there a tile to create a sibling of an obj?  Given that a search on
'sibling' only turned up 1 tile, I'm guessing not.  But it'd sure be nice!
:)

--Randy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://squeakland.org/pipermail/squeakland/attachments/20050808/0bd435c9/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 6090 bytes
Desc: not available
Url : http://squeakland.org/pipermail/squeakland/attachments/20050808/0bd435c9/attachment.jpg


More information about the Squeakland mailing list