Hi,
I am playing with spec hit some issues with TextModel>>setSelection:
First, unlike any other method in TextModel, setSelection: only has an effect if you call it after sending openWithSpec to the model.
This is because it sets the selection directly on the morph widget.
Second if you set the selection and widget hasn't got the focus it won't have any visual effect.
This is because it uses PluggableTextMorph>>selectionInterval: which just updates the interval without doing any visual update.
So shall we classify these as bugs?
Cheers,
Andrei