[Pharo-users] Re: Creating tests for the TinyBlog tutorial

2021-05-24 Thread Sebastian Jordan
When you already have a package with a name "XXX" and you create a new class with its package name as "XXX-YYY", Pharo automatically detects "YYY" as a tag for the package and not as a new package. That is your problem. Your class TBPostTest is not in a package that ends with "-Tests". It is in

[Pharo-users] Creating tests for the TinyBlog tutorial

2021-05-24 Thread Michael Burns via Pharo-users
In TinyBlogEn-gitc55a88d.pdf on page 11 (2.7 Post Queries): TestCase subclass: #TBPostTest instanceVariableNames: '' classVariableNames: '' package: 'TinyBlog-Tests' Every time I save this new class, it ends up in the TinyBlog package, not TinyBlog-Tests. I see that many o

[Pharo-users] Re: New VM, how do I get it

2021-05-24 Thread Guillermo Polito
> El 24 may 2021, a las 17:38, Stéphane Ducasse > escribió: > > > >> On 24 May 2021, at 15:06, David Pennington > > wrote: >> >> OK, I have V9.0 working. The performance difference is amazing on an >> Inspect. V8.0 - 3 seconds to respond - V9 - almost insta

[Pharo-users] Re: How to get dimensions (extent) of a SpPresenter

2021-05-24 Thread Esteban Lorenzano
Well, I noticed that it was working on gtk backend but not in morphic this works perfect: exampleResizing | extent | extent := 350@300. SpAthensPresenter new application: (SpApplication new useBackend: #Gtk); surfaceExtent: extent; drawBlock: [ :aCanvas | | paint surface | surface := aCanvas surfa

[Pharo-users] Re: How to get dimensions (extent) of a SpPresenter

2021-05-24 Thread kmo
I should also point out that nothing works unless I also set a surfaceExtent when the presenter is set up - initializePresenters rosesAthensPresenter := RosesAthensPresenter new. rosesAthensPresenter surfaceExtent: 400 @ 400. rosesAthensPresenter drawBlock: [ :aCanvas |

[Pharo-users] Re: How to get dimensions (extent) of a SpPresenter

2021-05-24 Thread kmo
I'm afraid it still doesn't work for me. If I have a drawBlock like this: drawBlock ^ [ :aCanvas | | paint surface | surface := aCanvas surface. paint := surface createLinearGradient: { (0 -> Co

[Pharo-users] Re: New VM, how do I get it

2021-05-24 Thread Sven Van Caekenberghe
Look carefully, they are both FileReferences, the UI is different. Also, explore the difference between the working directory and the image directory: FileLocator workingDirectory absolutePath. FileLocator imageDirectory absolutePath. The working directory depends on how the image was launched

[Pharo-users] Re: New VM, how do I get it

2021-05-24 Thread David Pennington
Sorry yes, I gave you the screen shots without the code. In V 9.0 if I execute the following | working stream | working := FileSystem disk workingDirectory I get an Inspector on /Users/davidpennington. (Not a File~Reference) In V 8.0 I get an Inspector on a FileReference (/Users/davidpenningto

[Pharo-users] Re: How to get dimensions (extent) of a SpPresenter

2021-05-24 Thread Esteban Lorenzano
Hi, short answer: you can't (and you shouldn't) :) long answer: conceptually, a presenter does not has an extent because it is not a component by itself, is just a set of other presenters arranged into a layout. However, that does not means you can't know the extent where your athens component

[Pharo-users] Re: New VM, how do I get it

2021-05-24 Thread Stéphane Ducasse
> On 24 May 2021, at 15:06, David Pennington wrote: > > OK, I have V9.0 working. The performance difference is amazing on an Inspect. > V8.0 - 3 seconds to respond - V9 - almost instantaneous. good to know. Now we prefer to work with the slow version (old OS) because they kick us to pay att

[Pharo-users] How to get dimensions (extent) of a SpPresenter

2021-05-24 Thread kmo
I'm porting a little Morphic geometry program from Morphic to a Spec 2 application using GTK. I need to draw a shape in an SpAthensPresenter but to draw it I need to know the current dimensions (extent) of the presenter so it can still work OK even when the window is resized. The old Morphic ve

[Pharo-users] Re: New VM, how do I get it

2021-05-24 Thread Guillermo Polito
Zeroconf should download the M1 vm, buy the pharo launcher does not support that yet. El lun., 24 may. 2021 13:16, Stéphane Ducasse escribió: > is your machine a M1? > If this is the case check the email that were sent on how to get the VM. > > S. > > On 23 May 2021, at 11:54, da...@totallyobjec

[Pharo-users] Re: New VM, how do I get it

2021-05-24 Thread Stéphane Ducasse
is your machine a M1? If this is the case check the email that were sent on how to get the VM. S. > On 23 May 2021, at 11:54, da...@totallyobjects.com wrote: > > Thank you. I t honk that I have it but how do I know if I have the M1 vm? How > do I integrate it with Pharo launcher? > > Sent fr