How to add a mouse-up action in your own subclass of Morph
Last updated at 10:47 pm UTC on 25 July 2013
Situation: You have created your own subclass of Morph or a subclass of it and want to add a mouse-up action.
- Override handlesMouseDown:.
- Just return true. (You may want to inspect the incoming event first or pass responsibility on to some other event related object; see Morph>handlesMouseDown:) This signals that your morph has its own implementation of #mouseDown
- Override #mouseDown to do what you want.
Also see Morph mouse up action (Smalltalk expression)