Hi
Pharo browser’s show a little triangular orange triangle in the top right
corner when code is edited by the user but not yet Accepted.
Is there a mechanism for doing the same, e.g. in an editable SpTextPresenter?
I’ve looked around related Spec2 Classes but unable to find a method
Hi,
No, this is not possible.
Main reason is because that little triangle is a very bad way to show something
is "dirty", but also because Spec itself does not has the concept of "dirty".
If you want such mechanism you need to implement it yourself (you can listen
when content changes and
Hi Esteban
Thankyou for responding.
You say it’s a very bad way to show something is “dirty” yet Pharo continues to
use it in the System Browser and elsewhere. Also from my researching It was
used in Spec but has been deprecated in Spec2.
I think It is also used in VisualWorks and
Agrees with Robert
> Den 3. mar. 2022 kl. 16.59 skrev Robert Briggs via Pharo-users
> :
>
>
> Hi Esteban
>
> Thankyou for responding.
>
> You say it’s a very bad way to show something is “dirty” yet Pharo continues
> to use it in the System Browser and elsewhere. Also from my
Re-hi :)
Not because something was used before is good :)
As I said, spec does not handles the concept of "dirty". Also, it does not has
the concept of "accept" (accept what? what is dirty? within what context?).
Knowing that is something that depends on your application.
Editors, for example
Hi Guys,
I'm reading a text file which is supposed to be ASCII encoded. This file
contains a list of filepaths and was created by a Python program.
Well, it turns-out that file names on Windows can contain illegal UTF-8
characters. This causes ZnUTF8Encoder to signal 'Illegal leading byte