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.
On Thu, Sep 17, 2015 at 1:16 AM, Ichiseki <is076@outlook.com> 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
Perfect ! ! Txs -- View this message in context: http://forum.world.st/Deleting-an-instance-tp4850614p4850625.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
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 <is076@outlook.com> 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.
participants (3)
-
Alexandre Bergel -
Ben Coman -
Ichiseki