Deleting an instance

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Deleting an instance

Ichiseki
I have the following question.
I have created several instances of StringMorph.
However those instances are not "available" to be handled by the halo.
When I do a right click, the World menu informs me that those instance exist.
Moreover, if I do StringMorph allInstances and printit, the array shows those instances.
But I want to destroy them, delete them.
Because even after closing the image they are still there.
txs!
Ichiro

 
Reply | Threaded
Open this post in threaded view
|

Re: Deleting an instance

abergel
Hi Ichiro,

You can do something like:


Inspect all the instances of the string morph, click on the one you wish to delete, and send the message #delete to it.

Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Sep 16, 2015, at 2:16 PM, Ichiseki <[hidden email]> wrote:

I have the following question.
I have created several instances of StringMorph.
However those instances are not "available" to be handled by the halo.
When I do a right click, the World menu informs me that those instance
exist.
Moreover, if I do StringMorph allInstances and printit, the array shows
those instances.
But I want to destroy them, delete them.
Because even after closing the image they are still there.
txs!
Ichiro





--
View this message in context: http://forum.world.st/Deleting-an-instance-tp4850614.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.


Reply | Threaded
Open this post in threaded view
|

Re: Deleting an instance

Ben Coman
In reply to this post by Ichiseki
On Thu, Sep 17, 2015 at 1:16 AM, Ichiseki <[hidden email]> wrote:

> I have the following question.
> I have created several instances of StringMorph.
> However those instances are not "available" to be handled by the halo.
> When I do a right click, the World menu informs me that those instance
> exist.
> Moreover, if I do StringMorph allInstances and printit, the array shows
> those instances.
> But I want to destroy them, delete them.
> Because even after closing the image they are still there.
> txs!
> Ichiro

I presume by "World menu" you mean the list of morphs that appears
when you click on the background.  While looking at this list you can
bring up the halos on an item, then select "target" ivar and send the
#delete message to it.

Alternatively, inspect StringMorph allInstances, then select the
[Morph] tab to see its contents.  Scroll down the list to find the
some you want, then switch back to [Raw] tab and do "self delete"

(this is on Pharo 4.0)
cheers -ben

Reply | Threaded
Open this post in threaded view
|

Re: Deleting an instance

Ichiseki
Perfect ! !
Txs