I see there are mousedown_ and mousedragged_ methods already in the CanvasView, but I cannot get them to fire a notification. Tried to subclass with custom mousedown_ method to print a message. But it doesn’t show. What is needed to get those methods to run?
Can you send me the script?
When I was about to make a snippet for you, I figured that one needs to add the .nsViewClass
to the monkeypatched class. I tried all kinds of .NSView
.NSObject
, ._nsObject
, .getNSObject
and stuff before. Now it works
1 Like