[Pharo-users] Re: Another question about Spec2 and SpTablePresenter

2022-03-20 Thread Mark O'Donoghue
Hi Esteban Many thanks for your help on this. A. I managed to get it working with a small change – which looks like it was due to issue 1263 as you indicated And this technique was successful my main application too. Next, I will load the latest merge for Spec2 and do it properly

[Pharo-users] Re: Null Object Pattern

2022-03-20 Thread Richard O'Keefe
Never forget that the Proxy pattern was developed in the context of a TYPED programming language. So "Clients can't tell whether they work with a subject or its proxy” means WITH REFERENCE TO A STATED PROTOCOL. Doing this in Ada or Java is fine, because you define an interface type, and that make

[Pharo-users] Re: Null Object Pattern

2022-03-20 Thread James Foster
Hello Richard, > What part of … is hard to understand? Did you mean for this to come off as condescending? Or are you are honestly wondering how effectively you are communicating? In either case, all of it is hard for me to understand since it doesn’t describe the Proxy Pattern which requires

[Pharo-users] Re: Another question about Spec2 and SpTablePresenter

2022-03-20 Thread Esteban Lorenzano
uh, for some reason my mail client eat the formatting... but you get the idea ;) On Mar 20 2022, at 3:14 pm, Esteban Lorenzano wrote: > Hi, > > well, the incomplete documentation of Spec states clearly that you will be > receiving two parameters: > onAcceptEdition: aBlock > "Set the block to exe

[Pharo-users] Re: Another question about Spec2 and SpTablePresenter

2022-03-20 Thread Esteban Lorenzano
Hi, well, the incomplete documentation of Spec states clearly that you will be receiving two parameters: onAcceptEdition: aBlock "Set the block to execute when cell edition is accepted. `aBlock` receives two arguments: - the element of the table (See `SpAbstractListPresenter>>#items:` - the strin

[Pharo-users] Another question about Spec2 and SpTablePresenter

2022-03-20 Thread Mark O'Donoghue
Howdy all I am making progress with quite a large application which relies heavily on Spec2 ( but Spec2 is such a big learning curve for me – especially given the incomplete documentation… 😊) I am currently struggling with the following issue: I have a SpTablePresenter which shows a col