[Pharo-users] Re: Detecting keystrokes in Spec2 input fields

2022-03-12 Thread Robert Briggs via Pharo-users
! Esteban On Mar 12 2022, at 2:20 pm, Robert Briggs via Pharo-users wrote: Hi Kasper Problem solved. I’ve done some more experimenting and it seems that registerEvents needs to be sent to make whenTextChangedDo: active. Makes sense but haven’t seen it documented anywhere.

[Pharo-users] Re: Detecting keystrokes in Spec2 input fields

2022-03-12 Thread Robert Briggs via Pharo-users
Best, Kasper On 12 Mar 2022, at 11.26, Robert Briggs via Pharo-users wrote: Hi Is there a simple way to detect when a use makes a keystroke in for example a Spec 2 Text Input Presenter? I’ve been going through all the relevant classes and methods, even into Morphic, but so far

[Pharo-users] Detecting keystrokes in Spec2 input fields

2022-03-12 Thread Robert Briggs via Pharo-users
Hi Is there a simple way to detect when a use makes a keystroke in for example a Spec 2 Text Input Presenter? I’ve been going through all the relevant classes and methods, even into Morphic, but so far I have not found a way to do it. I want to be able to identify when unaccepted

[Pharo-users] Re: The orange 'content modified' indicator

2022-03-03 Thread Robert Briggs via Pharo-users
mplement it yourself (you can listen when content changes and add/remove a style, for example). Esteban On Mar 3 2022, at 3:28 pm, Robert Briggs via Pharo-users wrote: Hi Pharo browser’s show a little triangular orange triangle in the top right corner when code is edited by

[Pharo-users] The orange 'content modified' indicator

2022-03-03 Thread Robert Briggs via Pharo-users
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

[Pharo-users] Re: ByteString asDate

2022-03-02 Thread Robert Briggs via Pharo-users
message, i really don't know. you need a kind of validator. sorry, if i'm not much help. On Wed, Mar 2, 2022 at 7:35 AM Robert Briggs via Pharo-users wrote: Thanks Bernardo That construct works as required, however I’m not sure what the semantic difference is to my original. I

[Pharo-users] Re: ByteString asDate

2022-03-02 Thread Robert Briggs via Pharo-users
asDate try to send the #on:do: message to a block. try this ^ [ (Date readFrom: self pattern: ‘dd/mm/’). true ] on: DateError do: [ false]. On Tue, Mar 1, 2022 at 11:52 AM Robert Briggs via Pharo-users wrote: I may be being stupid but the current Date Class does

[Pharo-users] ByteString asDate

2022-03-01 Thread Robert Briggs via Pharo-users
I may be being stupid but the current Date Class does not appear to protect itself against a ByteString that is not in valid date format, e.g. by raising an Error. e.g. the code  ‘ABC’ asDate opens the Debugger on #isLetter was sent to nil because it appears to expect more letters after $C

[Pharo-users] Re: What am I doing wrong with Spec2 in Pharo 9?

2022-02-10 Thread Robert Briggs via Pharo-users
the table instance in the double click and pass that to the class side, or implement the openAttributeEditorOn: on the instance side to give access self on the instance side. Best, Kasper On 10 Feb 2022, at 12.27, Robert Briggs via Pharo-users wrote: I have a subclass

[Pharo-users] Re: Ghost subclass

2022-01-10 Thread Robert Briggs via Pharo-users
there is anything left to do? Regards R From: Robert Briggs via Pharo-users Reply to: Any question about pharo is welcome Date: Monday, 10 January 2022 at 10:21 To: Any question about pharo is welcome Cc: Robert Briggs Subject: [Pharo-users] Re: Ghost subclass A thought occurred to me. I use

[Pharo-users] Re: Ghost subclass

2022-01-10 Thread Robert Briggs via Pharo-users
, Can you tell us how did you remove the subclasses? Was it through the UI? Which option? Or was it programatically? Can you reproduce it? G El 8 ene 2022, a las 18:25, Robert Briggs via Pharo-users escribió: Hi I currently have a problem that I am unable to resolve. I am

[Pharo-users] Re: Ghost subclass

2022-01-10 Thread Robert Briggs via Pharo-users
Robert, Can you tell us how did you remove the subclasses? Was it through the UI? Which option? Or was it programatically? Can you reproduce it? G El 8 ene 2022, a las 18:25, Robert Briggs via Pharo-users escribió: Hi I currently have a problem that I am unable to resolve

[Pharo-users] Ghost subclass

2022-01-08 Thread Robert Briggs via Pharo-users
Hi I currently have a problem that I am unable to resolve. I am working on a personal project. I created a Class ‘ERAElement’ and four subclasses: ‘Component’, ‘CriticalIssue’, ‘Decision’ and ‘Requirement’. A while ago I removed he subclass Component, and naturally Pharo will not

[Pharo-users] Re: Pharo 9 arbitrarily changes temporary variable names

2021-12-28 Thread Robert Briggs via Pharo-users
ave you checked that you're seeing the code you've typed and not just > decompiled methods? > > Best, > Steffen > > > Robert Briggs via Pharo-users schrieb am Montag, 27. Dezember 2021 11:43 > (+01:00): > > Hi > > I define temporary variables in a method, e.g. |e r

[Pharo-users] Pharo 9 arbitrarily changes temporary variable names

2021-12-27 Thread Robert Briggs via Pharo-users
Hi I define temporary variables in a method, e.g. |e r |, e.g. in a unit test, but when I run the test Pharo automatically replaces these with | tmp1 tmp2 |. A similar thing happens with method arguments.  For example methodName: aString at: anInteger will become methodName: arg1 at: arg2.