Re: [Pharo-users] Keystroke in ComposableModel

2016-05-11 Thread Христина Михайлюк
Thanks a lot. 2016-05-11 20:48 GMT+03:00 Stephan Eggermont : > On 11-05-16 14:32, Khrystyna Mykhailiuk wrote: > >> I would like to implement some shortcuts at the window of an object of >> ComposableModel class. >> Can anybody help me to understand which methods I should override? >> > Just take

Re: [Pharo-users] Keystroke in ComposableModel

2016-05-11 Thread Stephan Eggermont
On 11-05-16 14:32, Khrystyna Mykhailiuk wrote: I would like to implement some shortcuts at the window of an object of ComposableModel class. Can anybody help me to understand which methods I should override? Just take a look at #bindKeyCombination:toAction: and its senders Stephan

Re: [Pharo-users] OrderedCollection get all lines

2016-05-11 Thread Henrik Sperre Johansen
There's also PositionableStream >> #nextLine which lets you write code like [readStream atEnd] whileFalse: [(self regexMatch: readStream nextLine) ifNotNil: [:matchingLine | "Record match somewhere here"]] Cheers, Henry -- View this message in context: http://forum.world.st/Ordered

Re: [Pharo-users] OrderedCollection get all lines

2016-05-11 Thread Sven Van Caekenberghe
> On 11 May 2016, at 16:22, Valentin Ryckewaert > wrote: > > Thanks you again Sven, it will work with that, but there is nothing on > Streams? If performance is not too important, just read the whole contents of the file. BTW, this is actually example 19 of 'Elegant Pharo Code': https://me

Re: [Pharo-users] OrderedCollection get all lines

2016-05-11 Thread Valentin Ryckewaert
Thanks you again Sven, it will work with that, but there is nothing on Streams? 2016-05-11 16:19 GMT+02:00 Sven Van Caekenberghe : > Did you see #lines and #linesDo: ? > > > On 11 May 2016, at 16:15, Valentin Ryckewaert < > valentin.ryckewa...@gmail.com> wrote: > > > > Hi, > > > > I would like t

Re: [Pharo-users] OrderedCollection get all lines

2016-05-11 Thread Sven Van Caekenberghe
Did you see #lines and #linesDo: ? > On 11 May 2016, at 16:15, Valentin Ryckewaert > wrote: > > Hi, > > I would like to reproduce the grep command in Pharo. > To do it I wanted to get the content of a stream and transform it to an > OrderedCollection (to use matchesRegex: on it). > > First o

[Pharo-users] OrderedCollection get all lines

2016-05-11 Thread Valentin Ryckewaert
Hi, I would like to reproduce the grep command in Pharo. To do it I wanted to get the content of a stream and transform it to an OrderedCollection (to use matchesRegex: on it). First of all, is there an easier way to do it? In a second time, is there a method to get the content of a Stream as an

Re: [Pharo-users] Temporary files

2016-05-11 Thread Sven Van Caekenberghe
Check out FileReference class>>#newTempFilePrefix:suffix: > On 11 May 2016, at 15:01, Valentin Ryckewaert > wrote: > > Hello everyone, > > I would like to use a temporary file for a project and I didn't find an > existing method. > I'm asking my self if it's a better idea to use ffi or OSSubP

Re: [Pharo-users] Temporary files

2016-05-11 Thread Cyril Ferlicot Delbecque
On 11/05/2016 15:01, Valentin Ryckewaert wrote: > Hello everyone, > > I would like to use a temporary file for a project and I didn't find an > existing method. > I'm asking my self if it's a better idea to use ffi or OSSubProcess (or > something already build for it) to build a method able to c

Re: [Pharo-users] Semaphore wait and signal

2016-05-11 Thread Ben Coman
On Tue, May 10, 2016 at 6:31 PM, Vince Refiti wrote: > Hello > > I am playing around with Semaphore, and wrote the following: [snip] > Can someone please explain this pattern? I rearranged again to make the output self explanatory... | coll count sem | Transcript clear; show: 'count' ; tab

[Pharo-users] Keystroke in ComposableModel

2016-05-11 Thread Khrystyna Mykhailiuk
Hello! I would like to implement some shortcuts at the window of an object of ComposableModel class. Can anybody help me to understand which methods I should override? -- View this message in context: http://forum.world.st/Keystroke-in-ComposableModel-tp4894301.html Sent from the Pharo Smallt

[Pharo-users] Temporary files

2016-05-11 Thread Valentin Ryckewaert
Hello everyone, I would like to use a temporary file for a project and I didn't find an existing method. I'm asking my self if it's a better idea to use ffi or OSSubProcess (or something already build for it) to build a method able to create this tmp file. Someone could help me please? PS : Shoul

[Pharo-users] SPLASH-I 2016: Call for Talk Proposals!

2016-05-11 Thread Tijs van der Storm
SPLASH-I: Innovation, Interaction, Insight, Industry, Invited The ACM SIGPLAN conference on Systems, Programming, Languages and Applications: Software for Humanity (SPLASH) embraces all aspects of software construction and delivery to make it the premier conference at the intersection of programmi