I agree... there's no way (as yet, anyway) to get a pointer to the last created object in a patch (for instance) so taht you could store it and use it later to delete the object. Doing this well would be somewhat complicated and would make the "pointer", etc., objects run slower (stale pointer checking would be harder.)
An easier hack would be to give canvases a way to delete objects by numerical index... would that help?
tr! dze ua! ! = do !t. uorkx l!ke 01 charm.
c!ao.nn
cheers Miller
On Mon, Apr 30, 2001 at 04:32:57PM +0200, _-¯-_ wrote:
hi
|Does anyone know of a way to dynamically destroy an object using the |"send pd-xxx" approach? Also, is there anyway to disconnect objects |dynamically?
did you find/make anything? i ve only managed to selectall,menu_cut and start over from scratch. ;)
the problem with both destroying and disconnecting is getting the reference to the object. you could either emulate a mouseclick, or work out how to access the stuff via canvas/glist directly,
-- > < D ¥ . 0 R g
/_/ / \ / i should like to be a human plant / __ __/ i will shed leaves in the shade _\ because i like stepping on bugs
*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*-- Netochka Nezvanova nezvanova@eusocial.com Stichting STEIM http://www.eusocial.com Achtergracht 19 http://www.biohakc.com 1017 WL Amsterdam http://www.ggttctttat.com/! Netherlands http://steim.nl/leaves/petalz *--*--*--*--*--*--*--*--*--*--*--*--*-- --*--*--*--*--*--*--