Re: [Pharo-users] NativeBoost Questions while wrapping FMOD

2013-11-23 Thread Stéphane Ducasse
I really think that NativeBoost MUST HAVE a decent documentation. It is a central part of Pharo and Igor you should do something about it. If I would know I would have written a chapter on it but I cannot because I DO NOT KNOW. Stef > > > > On 21 November 2013 22:40, Sean P. DeNigris wrote:

Re: [Pharo-users] NativeBoost Questions while wrapping FMOD

2013-11-23 Thread Stéphane Ducasse
On Nov 23, 2013, at 9:07 AM, Stéphane Ducasse wrote: > I really think that NativeBoost MUST HAVE a decent documentation. > It is a central part of Pharo and Igor you should do something about it. > If I would know I would have written a chapter on it but I cannot because I > DO NOT KNOW. And i

Re: [Pharo-users] Cleaning up Voyage Documentation

2013-11-23 Thread Stéphane Ducasse
excellent we love co-authors Stef On Nov 20, 2013, at 9:04 PM, Johan Fabry wrote: > Hi all, > > I am building a small app that uses Voyage and MongoDB as the database, and > so I had many questions regarding how to use it and found the documentation > lacking. After conversing with Esteban,

Re: [Pharo-users] [Athens] Finding if a line passes through a specific pixel .

2013-11-23 Thread Stéphane Ducasse
there are bezier algo in the system Stef On Nov 20, 2013, at 9:55 PM, kilon alios wrote: > yes I found the formula for straight lines and I was wondering what was the > one for bezier curves, so your reply could not have come a better moment. > Thanks I will study it and implement it. > >

Re: [Pharo-users] NativeBoost Questions while wrapping FMOD

2013-11-23 Thread kilon alios
However we should acknowledge here that using a FFI, any FFI , in any programming language has the mandatory requirement of knowing C. I certainly do believe that documenting Nativeboost is extremely important for helping people to port C libraries to pharo and making Pharo far more useful but we s

Re: [Pharo-users] [Athens] Finding if a line passes through a specific pixel .

2013-11-23 Thread kilon alios
would I sound too lazy to ask in which class ? On Sat, Nov 23, 2013 at 11:35 AM, Stéphane Ducasse < stephane.duca...@inria.fr> wrote: > there are bezier algo in the system > > Stef > > On Nov 20, 2013, at 9:55 PM, kilon alios wrote: > > yes I found the formula for straight lines and I was wonde

Re: [Pharo-users] [Athens] Finding if a line passes through a specific pixel .

2013-11-23 Thread btc
kilon alios wrote: would I sound too lazy to ask in which class ? yes. (but you usually are not lazy so you have some quota :) I can't answer directly since Stef's post is the first I know of it, but a few interesting things turn up when I try World > Tools > Finder searching for 'bez

[Pharo-users] Deploying a polymorph app - two questions

2013-11-23 Thread kmo
I have written a small Polymorph application in Pharo 2.0. I have some questions about deploying it. My app consists of a single morph. I would like to fill the pharo window with the morph and have the morph resize when the user resizes the pharo window. I'm pretty close to what I want. I have ma

Re: [Pharo-users] Deploying a polymorph app - two questions

2013-11-23 Thread Benjamin
On 23 Nov 2013, at 13:58, kmo wrote: > I have written a small Polymorph application in Pharo 2.0. I have some > questions about deploying it. > > My app consists of a single morph. I would like to fill the pharo window > with the morph and have the morph resize when the user resizes the pharo >

Re: [Pharo-users] Spec - Tutorial Series

2013-11-23 Thread Stéphane Ducasse
> When a Spec UI is build, the spec are looked up on class side. > > But in some special cases you can provide directly a SpecLayout object to a > model. > > > Why on class side? > The goal was to have a static description of a widget layout so that we can reuse it without to have to autom

Re: [Pharo-users] [Athens] Finding if a line passes through a specific pixel .

2013-11-23 Thread kilon alios
aahhh come on ... I am not THAT lazy :D of course I have searched it before asking. Unless I am blind I see loads of bezier methods, none that detects whether a point belong to a curve. But now you mention it I think I remember squeak was able to do add points to a curve via click or something

Re: [Pharo-users] Deploying a polymorph app - two questions

2013-11-23 Thread kmo
Benjamin - Many thanks. Your suggestion of World submorphs do: [:e | e delete ] was just what I needed to get rid of the taskbar. However, DisplayScreen hostWindowTitle does not work for me. I'm not using Spec but surely that should make no difference. Is it a platform bug (I'm on ubuntu 13.

[Pharo-users] spec and double click

2013-11-23 Thread Lorenz Köhl
I have a ListComposableModel rendered with spec that I want to do something if an element is double clicked. How do I register the event handler? I know about on:send:to but what Announcement do I use? In my testing with just a symbol #doubleClick it doesn't work (and probably isn't sup

[Pharo-users] Making more memory available to VM on OS X.

2013-11-23 Thread nacho
Hi, I'm doing some fractal drawings which requires a great number of iterations and point drawing. Once the given fractal set is rendered Pharo becomes very sluggish. Is there a way to allocate more memory to the VM upon starting it? thanks Nacho - Nacho Smalltalker apprentice. Buenos Aires

Re: [Pharo-users] NativeBoost Questions while wrapping FMOD

2013-11-23 Thread Denis Kudriashov
Hi 2013/11/22 Igor Stasenko > > >> 2. instead of returning useful objects, FMOD returns error codes and you >> pass a pointer to receive the object. >> >> - The first consequence is that I have to wrap all the calls e.g. "self >> processErrorCode: self primCreate." where >> processErrorCode:

Re: [Pharo-users] spec and double click

2013-11-23 Thread Stéphane Ducasse
> > I have a ListComposableModel rendered with spec that I want to do something > if an element is double clicked. for double clicked I do not know. Did you check the when* API of ListComposableModel? > > How do I register the event handler? I know about on:send:to when:send:to: > but w

Re: [Pharo-users] Making more memory available to VM on OS X.

2013-11-23 Thread Ignacio Matías Sniechowski
Thanks for the attachments I will take a look at them. The time it takes to render the fractal is not the problem. But after that, if I want to drag or resize the window the fractal has been draw into, the sluggish begins. Even with the fast dragging option checked. Also, closing and opening other

Re: [Pharo-users] Making more memory available to VM on OS X.

2013-11-23 Thread Stéphane Ducasse
Probably because you should cache the result you get and not redraw it all the time. You should control when you want to redraw it. So your Morph should hold a form or something like that. Stef On Nov 23, 2013, at 6:03 PM, Ignacio Matías Sniechowski <0800na...@gmail.com> wrote: > Thanks for t

Re: [Pharo-users] spec and double click

2013-11-23 Thread Lorenz Köhl
> Did you check the when* API of ListComposableModel? Yes, the closest thing might be whenSelectionChanged but nothing regarding click events as I see it. >> >> How do I register the event handler? I know about on:send:to > > when:send:to: In my ComposableModel the ListComposable model

Re: [Pharo-users] spec and double click

2013-11-23 Thread Stéphane Ducasse
On Nov 23, 2013, at 6:55 PM, Lorenz Köhl wrote: >> Did you check the when* API of ListComposableModel? > > Yes, the closest thing might be whenSelectionChanged but nothing regarding > click events as I see it. > >>> >>> How do I register the event handler? I know about on:send:to >> >>

Re: [Pharo-users] spec and double click

2013-11-23 Thread Lorenz Köhl
> I strongly suggest to use 30 because spec changed a lot. Doesn't seem to work either (on yesterdays 30): | m | m := ListModel new items: #(a b c). m when: #doubleClick send: #traceCr to: Transcript. m on: #doubleClick send: #traceCr to: Transcript. "need doubleclick announcement?" m openWithSp

Re: [Pharo-users] Deploying a polymorph app - two questions

2013-11-23 Thread Benjamin
On 23 Nov 2013, at 16:13, kmo wrote: > Benjamin - > > Many thanks. > > Your suggestion of World submorphs do: [:e | e delete ] was just what I > needed to get rid of the taskbar. > > However, DisplayScreen hostWindowTitle does not work for me. I'm not using > Spec but surely that should ma

Re: [Pharo-users] spec and double click

2013-11-23 Thread Benjamin
m := NewListModel new m doubleClickAction: [ self halt ] m openWithSpec This should work Ben On 23 Nov 2013, at 19:23, Lorenz Köhl wrote: >> I strongly suggest to use 30 because spec changed a lot. > > Doesn't seem to work either (on yesterdays 30): > > | m | > m := ListModel new items: #(

Re: [Pharo-users] Deploying a polymorph app - two questions

2013-11-23 Thread kmo
Does not work in pharo 3.0 either on my ubuntu system. My VM is dated 13/03/2013. I don't think I'm using a particularly old one. Ken -- View this message in context: http://forum.world.st/Deploying-a-polymorph-app-two-questions-tp4724525p4724580.html Sent from the Pharo Smalltalk Users m

Re: [Pharo-users] Writing a GUI - Where to start?

2013-11-23 Thread Picci Pharo
Typical Window := Window with buttons and textInput > From: step...@stack.nl > Date: Fri, 22 Nov 2013 16:35:09 +0100 > To: pharo-users@lists.pharo.org > Subject: Re: [Pharo-users] Writing a GUI - Where to start? > > >About Glamour, isn'it used to create Browser? How can i create a typical >

[Pharo-users] Merchandise in your locale

2013-11-23 Thread Jeff Gray
Just a reminder to have a look in the Pharo store. There are a number of sites around the globe to allow you to shop in your language and to reduce postage charges: USA (English) http://www.zazzle.com USA (Español) http://www.zazzle.com/?lang=es Canada (English)

Re: [Pharo-users] Merchandise in your locale

2013-11-23 Thread Jeff Gray
Silly me. If you use these links you go straight to the shop! USA (English) http://www.zazzle.com/pharoshop USA (Español) http://www.zazzle.com/pharoshop/?lang=es Canada (English)http://www.zazzle.ca/pharoshop Canada (Français) http

[Pharo-users] Mugs, mouse mats, stickers

2013-11-23 Thread Jeff Gray
What else would you like in the Pharo store? Personally I'd like to have a t-shirt. -- View this message in context: http://forum.world.st/Mugs-mouse-mats-stickers-tp4724644.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

[Pharo-users] Nautilus pkg-pane regression in pharo 3.0?

2013-11-23 Thread Lorenz Köhl
Nautilus has stopped jumping to packages when the focus is in the package pane and keys are pressed (the same behaviour use from eg. osx finder) Is that a regression or intended?

Re: [Pharo-users] spec and double click

2013-11-23 Thread Lorenz Köhl
On Nov 23, 2013, at 7:37 PM, Benjamin wrote: > m := NewListModel new > m doubleClickAction: [ self halt ] > > m openWithSpec your code and the following (double clicking the list items) doesn't work for me in Pharo3.0 Latest update: #30591 m := NewListModel new items: #(a b c). m doubleClic

Re: [Pharo-users] Nautilus pkg-pane regression in pharo 3.0?

2013-11-23 Thread Benjamin
That a major issue so far. It was not intended, but since the tree widget already handle arrow right by itself, I do not know if Esteban thought about this feature Ben On 23 Nov 2013, at 22:34, Lorenz Köhl wrote: > Nautilus has stopped jumping to packages when the focus is in the package > p

Re: [Pharo-users] spec and double click

2013-11-23 Thread Benjamin
I will have a look tomorrow :) If you are in a hurry, I know such a behaviour is present in EyeInspector Ben On 24 Nov 2013, at 00:07, Lorenz Köhl wrote: > > On Nov 23, 2013, at 7:37 PM, Benjamin > wrote: > >> m := NewListModel new >> m doubleClickAction: [ self halt ] >> >> m openWithSpe

Re: [Pharo-users] [Athens] Finding if a line passes through a specific pixel .

2013-11-23 Thread Igor Stasenko
There is some bits which can help you in this regard. The part of it is path tesseleration, which turns any path with complex curves into polygon (which has only straight lines), from there on, i think you can easily calculate the distance between any point and that polygon. Look at AthensCurveFlat

Re: [Pharo-users] NativeBoost Questions while wrapping FMOD

2013-11-23 Thread Igor Stasenko
On 23 November 2013 17:42, Denis Kudriashov wrote: > Hi > > 2013/11/22 Igor Stasenko > >> >> >>> 2. instead of returning useful objects, FMOD returns error codes and you >>> pass a pointer to receive the object. >>> >>> - The first consequence is that I have to wrap all the calls e.g. "self >>>

Re: [Pharo-users] NativeBoost Questions while wrapping FMOD

2013-11-23 Thread Igor Stasenko
On 23 November 2013 09:07, Stéphane Ducasse wrote: > I really think that NativeBoost MUST HAVE a decent documentation. > i agree. i need to invest into it. > It is a central part of Pharo and Igor you should do something about it. > If I would know I would have written a chapter on it but I can

Re: [Pharo-users] spec and double click

2013-11-23 Thread Lorenz Köhl
> If you are in a hurry, I know such a behaviour is present in EyeInspector Thanks. I found handlesDoubleClick: true there and it works now Lo

[Pharo-users] How to load the PetitPHPParser?

2013-11-23 Thread Hernán Morales Durand
Loading in Pharo 2.0 gives warning with lots of dependencies: This package depends on the following classes: PPCompositeParserTest PPCompositeParser You must resolve these dependencies before you will be able to load these definitions: PPPHPCoreGrammar ... I have used: Gofer new squeak

Re: [Pharo-users] How to load the PetitPHPParser?

2013-11-23 Thread Tudor Girba
>From the errors, it seems that you have to load PetitParser first. Doru On Sun, Nov 24, 2013 at 4:48 AM, Hernán Morales Durand < hernan.mora...@gmail.com> wrote: > Loading in Pharo 2.0 gives warning with lots of dependencies: > > This package depends on the following classes: > PPCompositePa

Re: [Pharo-users] How to load the PetitPHPParser?

2013-11-23 Thread Hernán Morales Durand
Hi Doru, I have tested loading PetitParser from the ConfigurationBrowser and without, and it is the same. 2013/11/24 Tudor Girba > From the errors, it seems that you have to load PetitParser first. > > Doru > > > On Sun, Nov 24, 2013 at 4:48 AM, Hernán Morales Durand < > hernan.mora...@gmail.