[Cuis] mouseButton2Up:localPosition:
Dan Norton
dnorton at mindspring.com
Sun May 3 16:48:47 CDT 2015
On 1 May 2015 at 15:55, Juan Vuletich wrote:
[snip]
>
> Your alternative
> > #xmouseButton2Activity is perfectly fine too.
> >
>
> This gets "right to the point." Is this sent from
> MouseClickState>handleEvent:from: ?.
>
> I hope I got all this right.
>
> - Dan
>
>
> If you want to see where stuff is called from, add 'self halt' at
> that point. Doing this in Morphic
> code sometimes is risky, as it might result in an infinite sequence
> of debuggers opening. Doing
> 'thisContext printStack: 10' is safer.
>
Actually, 'self halt' was OK in the case of my #mouseButton2Activity method. The identity of
the sender is Morph which sends it on button 2 *down* not 'up' as I had assumed. I had
hoped to learn how using #mouseButton2Activity makes correct location of a pop-up easy yet
#mouseButton2Up:localPosition: not so easy but that is TBD.
- Dan
More information about the Cuis
mailing list