[squeak-dev] (UndefinedObject doesNotUnderstand: #selectionRects) when selecting a Font via ctrl+k

Marcel Taeumel marcel.taeumel at hpi.de
Tue Apr 26 09:46:01 UTC 2022


Hi Nicolas --

Hmm... [CMD]+[K] ("set font...") and [CMD]+[SHIFT]+[K] ("set style...") are two different shortcuts. On your machine, "ctrl+k" seems to deliver the uppercase K and/or #shiftPressed. Hmm....

Anyway, I can reproduce the issue in the "set style..." dialog. I will take a look at it. Also thanks for your thoughts in this issue.

Best,
Marcel
Am 25.04.2022 23:43:45 schrieb Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com>:
Shouldn't every un-protected paragraph inst.var. access be replaced with self paragraph?


Le lun. 25 avr. 2022 à 23:40, Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com [mailto:nicolas.cellier.aka.nice at gmail.com]> a écrit :

On MacOS, in a workspace, cmd+k invokes a FontChooser that works well, but ctrl+k invokes a simpler list chooser dialog Moprh that works less well.

If I select another font in this dialog, I got the MNU from within: TextMorphForEditView>>handleInteraction:fromEvent:, because paragraph is (temporarily) set to nil

Note that once the Debugger opens, the paragraph inst.var. is reset to a NewParagraph.
Also note that oldParagrah temporary is a NewParagraph which kind of funny.

When I inspect paragraph inst.var.ref., I see half are protected the ifNotNil: check, half not... The kind of state mutations leaving traps on the track.

Nicolas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220426/efd0eed6/attachment.html>


More information about the Squeak-dev mailing list