Oh...

I have noticed if we do this:
PluggableTextMorph>>selectionInterval: sel
        Transcript show: 'selectionInterval: ', sel printString;cr.
        selectionInterval := sel

Is it not enough to send an announcement?

Alexandre



On Nov 11, 2013, at 5:41 PM, Benjamin <[email protected]> 
wrote:

> It is actually an issue.
> 
> The problem comes from the fact the morph does not notify its model when its 
> selection changed.
> 
> 
> Ben
> 
> On 11 Nov 2013, at 21:18, Alexandre Bergel <[email protected]> wrote:
> 
>> Hi Ben,
>> 
>> We have doubt about the getSelection of TextModel.
>> 
>> Execute the following in a Workspace:
>> 
>>      model := TextModel new.
>>      model openWithSpec.
>> 
>> In the window, insert some text, and select something. Evaluate the 
>> following:
>>      model getSelection 
>> 
>> It always returns  (1 to: 0) for us. 
>> 
>> Do you confirm?
>> https://pharo.fogbugz.com/f/cases/12144/TextModel-getSelection
>> 
>> Cheers,
>> Johan Fabry & Alexandre
>> -- 
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>> 
>> 
>> 
> 

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




Reply via email to