Sorry, it is: selectedText.
Doru
On 6 Sep 2011, at 20:42, Alexandre Bergel wrote:
I think you meant 'prez text' and not
'prez selection'.
I found another strange behavior, likely to be a bug.
Try:
-=-=-=-=-=-=
| browser |
browser := GLMFinder new.
browser text
act: [:prez :v | prez text inspect ] on: $i entitled: 'Inspect'.
browser openOn: 'hello world'
-=-=-=-=-=-=
If you type something and press cmd-i then you open an inspector on what you have typed.
Now, do a cut and paste in the textpane, and press cmd-i. You have an inspector on
'hello world', no matter what you have cut&pasted.
Is this a bug?
Cheers,
Alexandre
On 6 Sep 2011, at 15:32, Tudor Girba wrote:
Hi,
On Sep 6, 2011, at 20:14, Alexandre Bergel <alexandre.bergel(a)me.com> wrote:
> Hi!
>
> I am experiencing a situation which is either unintuitive or reflects a bug.
> Consider the following script
> -=-=-=-=-=-=-=-=-=
> | browser |
> browser := GLMFinder new.
> browser text
> act: [:prez :v | v inspect ] on: $i entitled: 'Inspect'.
> browser openOn: 'hello world'
> -=-=-=-=-=-=-=-=-=
>
> If start to type in it, and trigger the action, an inspector on the string 'hello
world' is open, no matter what I typed.
>
> Is there anything obvious that I do not see?
Yes :)
v will be populated with the entity, not the selection.
You should use "prez selection".
Cheers,
Doru
>
> Cheers,
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel
http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev(a)iam.unibe.ch
>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev