Re: [Pharo-users] How to read the first line of content from a Playground?

2015-09-29 Thread Esteban Lorenzano
Best way: 

'play-cache' asFileReference inspect.

Equivalent to what you want:

'play-cache' asFileReference allFiles 
collect: [ :each | each readStreamDo: #contents  ]


Esteban

> On 29 Sep 2015, at 16:30, p...@highoctane.be wrote:
> 
> 
> Like Workspace allInstances collect: [:w | w contents ].
> 
> Nothing like that in GTPlayground.
> 
> Phil
> 
> On Mon, Sep 21, 2015 at 11:02 PM, Esteban Lorenzano  > wrote:
> 
> > On 21 Sep 2015, at 21:54, p...@highoctane.be  
> > wrote:
> >
> > In the old workspace it was possible to ask for the first line of contents 
> > (to show it in a list).
> 
> the first line of contents of what? can you share a snippet so I can 
> understand your problem?
> 
> cheers!
> Esteban
> 
> >
> > With a playground it seems harder... Lots of entries in there.
> >
> > Is there any short way to get that done?
> >
> > TIA
> > Phil
> 
> 
> 
> 



Re: [Pharo-users] How to read the first line of content from a Playground?

2015-09-29 Thread p...@highoctane.be
Like Workspace allInstances collect: [:w | w contents ].

Nothing like that in GTPlayground.

Phil

On Mon, Sep 21, 2015 at 11:02 PM, Esteban Lorenzano 
wrote:

>
> > On 21 Sep 2015, at 21:54, p...@highoctane.be wrote:
> >
> > In the old workspace it was possible to ask for the first line of
> contents (to show it in a list).
>
> the first line of contents of what? can you share a snippet so I can
> understand your problem?
>
> cheers!
> Esteban
>
> >
> > With a playground it seems harder... Lots of entries in there.
> >
> > Is there any short way to get that done?
> >
> > TIA
> > Phil
>
>
>
>


Re: [Pharo-users] How to read the first line of content from a Playground?

2015-09-21 Thread Esteban Lorenzano

> On 21 Sep 2015, at 21:54, p...@highoctane.be wrote:
> 
> In the old workspace it was possible to ask for the first line of contents 
> (to show it in a list).

the first line of contents of what? can you share a snippet so I can understand 
your problem?

cheers!
Esteban

> 
> With a playground it seems harder... Lots of entries in there.
> 
> Is there any short way to get that done?
> 
> TIA
> Phil




[Pharo-users] How to read the first line of content from a Playground?

2015-09-21 Thread p...@highoctane.be
In the old workspace it was possible to ask for the first line of contents
(to show it in a list).

With a playground it seems harder... Lots of entries in there.

Is there any short way to get that done?

TIA
Phil