2017-10-18 3:00 GMT-02:00 Alexandre Torres Porres porres@gmail.com:
hi, is there even a way to destroy/delete an object with dynamic
patching?
iemguts' [canvasdelete] (it also adds a message to the canvas class; so you don't need to use the actual object, just ordinary dynamic patching messages)
On 10/18/2017 07:10 AM, Alexandre Torres Porres wrote:
oh... it has to be a vanilla way - I can't afford to have a dependency on this
then you're basically out of luck. there is a reason, why a library like iemguts has an object like [canvasdelete]: you cannot do this otherwise.
fmdars IOhannes
PS: but to be honest, there is a hacky way to delete an object, by mimicking mouse events to select the region where the desired object (and all other objects that overlap with it) resides and then mimicking a keyboard event that "cuts" the object. this is highly brittle (as opposed to the [canvasdelete] method which i consider *very* stable)
gfamrds IOhannes