Sensor vs. Hand (was: Re: Squeak-3.7: Title-Bar Buttons)
Andreas Raab
andreas.raab at gmx.de
Sun Feb 22 16:15:05 UTC 2004
HandMorph>>shiftPressed
^lastMouseEvent shiftPressed
- A.
----- Original Message -----
From: "Trygve Reenskaug" <trygver at ifi.uio.no>
To: "The general-purpose Squeak developers list"
<squeak-dev at lists.squeakfoundation.org>
Sent: Sunday, February 22, 2004 4:40 PM
Subject: Re: Sensor vs. Hand (was: Re: Squeak-3.7: Title-Bar Buttons)
Andreas,
This may be good advice, except that ActiveHand (HandMorph) does not
understand shiftPressed. I'm running 'Squeak3.6'.
regards
--Trygve
At 21.02.2004 19:13, you wrote:
>thanks for the advice I will change everything for my book.
>
>Stef
>
>On 21 févr. 04, at 18:52, Andreas Raab wrote:
>
>>
>>The bottom line of this is: If you are programming for Morphic, NEVER,
NEVER
>>use Sensor. DO NOT EVER USE IT! Refer to the hand instead. Changing
>>TransferMorph>>step to say:
>>
>>step
>> self shouldCopy: ActiveHand shiftPressed.
>>
>>entirely eliminates that problem (regardless of any error handler). Again,
>>if you write code for Morphic DO NOT REFER TO SENSOR! It will just #^@!
>>things up.
>>
>>Cheers,
>> - Andreas
--
Trygve Reenskaug mailto: trygver at ifi.uio.no
Morgedalsvn. 5A http://heim.ifi.uio.no/~trygver
N-0378 Oslo Tel: (+47) 22 49 57 27
Norway
More information about the Squeak-dev
mailing list
|