Re: Problem with TextMorph
by Raymond Asselin other posts by this author
May 2 2001 1:30AM messages near this date
Identifying hardware Hand
|
Helio (prepacked) port?
Le Mardi 1 mai 2001, à 03:22, Andrew P. Black a écrit :
> Raymond, I have some questions for you. (Is this what they all
> "teledebugging"?)
>
> > Using TextMorph and entering a diacritic character like 'Ã' caused a
> > walkBack
>
> This works fine on my Mac, but some of the keyboard stuff seems to be
> platform specific. What platform are you using? Do you get the same
> problem in a clean image (i.e., one into which you have not loaded the
> Accufont stiff, or anything else.
>
> What character did you type? Was it one of
>
> $Ã (character value 142)
> $Ã (character value 143)
> $Ã (character value 144)
> $Ã (character value 145)
>
> It looks as though the keycode stored in your event is the correct code
> -256. Note that 144-256 = -112. If you select the stack frame (in the
> top window of your debugger) for SmallInteger(Integer)>>asCharacter you
> will see (in the middle pane) the code for that method, In the bottom
> panes are the instance variables and temporaries in scope at that
> point. self will be, I think -112.
>
> The keycodes should always be in the range 0-255, so something may be
> rotten in your VM. Looks like something is being converted to a signed
> 8-bit int when it should be an unsigned 8-bit int.
>
> This could perhaps be a bad C compiler, or a bad option to the
> compiler. What's weird is that it only shows up in a textMorph. Or
> does it? What happens if you type the same character in a Workspace?
>
> Andrew
>
>
> > ==================
> > Image version: Squeak3.1alpha
> > latest update: #'Squeak3.1alpha' of 7 March 2001 update 3960
> > Current Change Set: Unnamed12
> >
> > VM version:
> > for:
> >
> > Receiver: #($> $ $ $
> > $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $! $" $# $$
> > $% $& $' $( $) $* $+ $, $- $. $/ $0 $1 $2 $3 $4 $5 $6 $7 $8
> > $9 $: $; $< $= $> $? $@ $A $B $C $D $E $F $G $H $I $J $K $L $M $N $O
> > $P $Q $R $S $T $U $V $W $X $Y $Z $[ $\ $] $^ $_ $` $a $b $c $d $e $f
> > $g $h $i $j $k $l $m $n $o $p $q $r $s $t $u $v $w $x $y
> > $z ${ $| $} $~ $ $§ $? $à $ü $ì $ä $⺠$Ë $ñ $î $S $â $ë $?
> > $Z $? $? $' $' $" $" $* $- $- $ó $Ã
$s $ $¶ $? $z $ç $ $° $¢ $£ $?
> > $⢠$| $à $® $© $⢠$´ $¨ $- $à $à $â $± $2 $3 $Â¥ $µ $â $â $â $1 $â«
> > $ª $? $? $? $ø $¿ $¡ $¬ $â $Æ $â $â $« $» $⦠$ $à $à $à $Å $Å $? $
â
> > $â $â $â $â $÷ $* $ÿ $Ÿ $â $⬠$â¹ $Y $? $ï¬ $â¡ $· $â $â $â° $Ã
$Ã $Ã $Ã
> > $à $à $à $à $à $à $à $? $à $à $à $à $ı $Ë $Ë $¯ $Ë $Ë $Ë $¸ $y $? $Ë)
> >
> > Instance variables:
> >
> > Method (temp) variables:
> > index: -113
> >
> > Stack:
> > Array(Object)>>error:
> > Array(Object)>>errorSubscriptBounds:
> > Array(Object)>>at:
> > Character class>>value:
> > SmallInteger(Integer)>>asCharacter
> > KeyboardEvent>>keyCharacter
> > TextMorph>>handleKeystroke:
> > KeyboardEvent>>sentTo:
> > TextMorph(Morph)>>handleEvent:
> > TextMorph(Morph)>>handleFocusEvent:
> > [] in HandMorph>>sendFocusEvent:to:clear:
> > PasteUpMorph>>becomeActiveDuring:
>
Hi Andrew,
you find the problem. In fact I use almost only MacOS 10,
and two SqueakVM: a CarbonSqueakVM = 'Squeak 3.0Alpha11MT', and a
CocoaSqueakVM from Marcel Weiher. The problem is linked to the
CocoaSqueakVM, I will try to reload a new copy to see if the problem
persist.
Thank you very much for your Help.
|