From mike.vidal at gmail.com Sun Nov 15 22:50:21 2009 From: mike.vidal at gmail.com (Mike Vidal) Date: Sun, 15 Nov 2009 15:50:21 -0600 Subject: [sbe-discussion] how to stop the bouncing atoms Message-ID: <2d494cf50911151350t79b6c6c9tbe902d2aee7b7de2@mail.gmail.com> After doing BouncingAtomsMorph new openInWorld how can I make this morph go away? From mike.vidal at gmail.com Sun Nov 15 22:52:19 2009 From: mike.vidal at gmail.com (Mike Vidal) Date: Sun, 15 Nov 2009 15:52:19 -0600 Subject: [sbe-discussion] Re: how to stop the bouncing atoms In-Reply-To: <2d494cf50911151350t79b6c6c9tbe902d2aee7b7de2@mail.gmail.com> References: <2d494cf50911151350t79b6c6c9tbe902d2aee7b7de2@mail.gmail.com> Message-ID: <2d494cf50911151352u71f225c1me429494805e7453d@mail.gmail.com> with code is what I meant. How do I stop the bouncing atoms in code? On Sun, Nov 15, 2009 at 3:50 PM, Mike Vidal wrote: > After doing BouncingAtomsMorph new openInWorld how can I make this > morph go away? > From oscar at iam.unibe.ch Sun Nov 15 22:57:59 2009 From: oscar at iam.unibe.ch (Oscar Nierstrasz) Date: Sun, 15 Nov 2009 22:57:59 +0100 Subject: [sbe-discussion] Re: how to stop the bouncing atoms In-Reply-To: <2d494cf50911151350t79b6c6c9tbe902d2aee7b7de2@mail.gmail.com> References: <2d494cf50911151350t79b6c6c9tbe902d2aee7b7de2@mail.gmail.com> Message-ID: Haha! Good question. You can blue-click on the morph to bring up the halos and click on the delete halo, or you could just evaluate: BouncingAtomsMorph allInstancesDo: [:each | each delete] Cheers, - on On Nov 15, 2009, at 10:50 PM, Mike Vidal wrote: > After doing BouncingAtomsMorph new openInWorld how can I make this > morph go away? > _______________________________________________ > Sbe-discussion mailing list > Sbe-discussion at iam.unibe.ch > https://www.iam.unibe.ch/mailman/listinfo/sbe-discussion From denker at acm.org Sun Nov 15 22:59:41 2009 From: denker at acm.org (Marcus Denker) Date: Sun, 15 Nov 2009 22:59:41 +0100 Subject: [sbe-discussion] Re: how to stop the bouncing atoms In-Reply-To: <2d494cf50911151352u71f225c1me429494805e7453d@mail.gmail.com> References: <2d494cf50911151350t79b6c6c9tbe902d2aee7b7de2@mail.gmail.com> <2d494cf50911151352u71f225c1me429494805e7453d@mail.gmail.com> Message-ID: <17667352-D748-4FFC-BCEE-8889D6CA3E49@acm.org> On Nov 15, 2009, at 10:52 PM, Mike Vidal wrote: > with code is what I meant. > > How do I stop the bouncing atoms in code? You somehow need to get a reference to it. As you didn't assign the morph when creating it, you don't have that ref. But, you can get it. By asking the BouncingAtomsMorph class for all it's instances and than sending them #delete. BouncingAtomsMorph allInstances do: [:each | each delete]. Marcus -- Marcus Denker -- denker at acm.org http://www.marcusdenker.de