NativeBoost replacement?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

NativeBoost replacement?

hernanmd
Hi guys,

I am porting packages which uses NativeBoost in Pharo <= 4 to Pharo 5 (update: #50628). Since NB is not supported anymore I would like to know which is the replacement of such library.

I found FFI is loadable in Pharo 5, but methods like #getForegroundWindow are missing.
Even worst, when I try to browse a method like

#shellExecute:lpOperation:lpFile:lpPrameters:lpDirectory:nShowCmd:

with any tool (Nautilus, Finder, etc) I get a MessageNotUnderstood: RubShoutStylerDecorator>>disableDrawingWhile:

What's your recommendation?

Cheers,

Hernán

Reply | Threaded
Open this post in threaded view
|

Re: NativeBoost replacement?

Damien Pollet-2
The replacement is http://smalltalkhub.com/#!/~Pharo/FFI-NB

The API should be mostly if not completely compatible. If not tell us, as I need to adapt my ESUG 2013 tutorial :)

On 6 March 2016 at 21:18, Hernán Morales Durand <[hidden email]> wrote:
Hi guys,

I am porting packages which uses NativeBoost in Pharo <= 4 to Pharo 5 (update: #50628). Since NB is not supported anymore I would like to know which is the replacement of such library.

I found FFI is loadable in Pharo 5, but methods like #getForegroundWindow are missing.
Even worst, when I try to browse a method like

#shellExecute:lpOperation:lpFile:lpPrameters:lpDirectory:nShowCmd:

with any tool (Nautilus, Finder, etc) I get a MessageNotUnderstood: RubShoutStylerDecorator>>disableDrawingWhile:

What's your recommendation?

Cheers,

Hernán


Reply | Threaded
Open this post in threaded view
|

Re: NativeBoost replacement?

hernanmd
Hi Damien,

I installed FFI-NB as follows:

Gofer it
    smalltalkhubUser: 'Pharo' project: 'FFI-NB';
    configurationOf: 'FFINB';
    loadStable

And found the following methods are missing from NBWin32Window:

createWindowExA:lpClassName:lpWindowName:dwStyle:x:y:width:height:hWndParent:hMenu:hInstance:lParam:
createWindowExW:lpClassName:lpWindowName:dwStyle:x:y:width:height:hWndParent:hMenu:hInstance:lParam:
ffiCalloutOptions
getActiveWindow
getCapture
getClipboardOwnerWindow
getClipboardViewer
getDesktopWindow
getForegroundWindow
getWindowFromPoint:

Should I try something else?

Hernán



2016-03-06 18:10 GMT-03:00 Damien Pollet <[hidden email]>:
The replacement is http://smalltalkhub.com/#!/~Pharo/FFI-NB

The API should be mostly if not completely compatible. If not tell us, as I need to adapt my ESUG 2013 tutorial :)

On 6 March 2016 at 21:18, Hernán Morales Durand <[hidden email]> wrote:
Hi guys,

I am porting packages which uses NativeBoost in Pharo <= 4 to Pharo 5 (update: #50628). Since NB is not supported anymore I would like to know which is the replacement of such library.

I found FFI is loadable in Pharo 5, but methods like #getForegroundWindow are missing.
Even worst, when I try to browse a method like

#shellExecute:lpOperation:lpFile:lpPrameters:lpDirectory:nShowCmd:

with any tool (Nautilus, Finder, etc) I get a MessageNotUnderstood: RubShoutStylerDecorator>>disableDrawingWhile:

What's your recommendation?

Cheers,

Hernán



Reply | Threaded
Open this post in threaded view
|

Re: NativeBoost replacement?

Damien Pollet-2
Wait for Esteban to notice this mail :)

On 6 March 2016 at 23:54, Hernán Morales Durand <[hidden email]> wrote:
Hi Damien,

I installed FFI-NB as follows:

Gofer it
    smalltalkhubUser: 'Pharo' project: 'FFI-NB';
    configurationOf: 'FFINB';
    loadStable

And found the following methods are missing from NBWin32Window:

createWindowExA:lpClassName:lpWindowName:dwStyle:x:y:width:height:hWndParent:hMenu:hInstance:lParam:
createWindowExW:lpClassName:lpWindowName:dwStyle:x:y:width:height:hWndParent:hMenu:hInstance:lParam:
ffiCalloutOptions
getActiveWindow
getCapture
getClipboardOwnerWindow
getClipboardViewer
getDesktopWindow
getForegroundWindow
getWindowFromPoint:

Should I try something else?

Hernán



2016-03-06 18:10 GMT-03:00 Damien Pollet <[hidden email]>:
The replacement is http://smalltalkhub.com/#!/~Pharo/FFI-NB

The API should be mostly if not completely compatible. If not tell us, as I need to adapt my ESUG 2013 tutorial :)

On 6 March 2016 at 21:18, Hernán Morales Durand <[hidden email]> wrote:
Hi guys,

I am porting packages which uses NativeBoost in Pharo <= 4 to Pharo 5 (update: #50628). Since NB is not supported anymore I would like to know which is the replacement of such library.

I found FFI is loadable in Pharo 5, but methods like #getForegroundWindow are missing.
Even worst, when I try to browse a method like

#shellExecute:lpOperation:lpFile:lpPrameters:lpDirectory:nShowCmd:

with any tool (Nautilus, Finder, etc) I get a MessageNotUnderstood: RubShoutStylerDecorator>>disableDrawingWhile:

What's your recommendation?

Cheers,

Hernán




Reply | Threaded
Open this post in threaded view
|

Re: NativeBoost replacement?

CyrilFerlicot
In reply to this post by hernanmd
I think that ffi-nb is now call uffi and is directly in the image. 



On Sunday, 6 March 2016, Hernán Morales Durand <[hidden email]> wrote:
Hi Damien,

I installed FFI-NB as follows:

Gofer it
    smalltalkhubUser: 'Pharo' project: 'FFI-NB';
    configurationOf: 'FFINB';
    loadStable

And found the following methods are missing from NBWin32Window:

createWindowExA:lpClassName:lpWindowName:dwStyle:x:y:width:height:hWndParent:hMenu:hInstance:lParam:
createWindowExW:lpClassName:lpWindowName:dwStyle:x:y:width:height:hWndParent:hMenu:hInstance:lParam:
ffiCalloutOptions
getActiveWindow
getCapture
getClipboardOwnerWindow
getClipboardViewer
getDesktopWindow
getForegroundWindow
getWindowFromPoint:

Should I try something else?

Hernán



2016-03-06 18:10 GMT-03:00 Damien Pollet <<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;damien.pollet%2Bpharo@gmail.com&#39;);" target="_blank">damien.pollet+pharo@...>:
The replacement is http://smalltalkhub.com/#!/~Pharo/FFI-NB

The API should be mostly if not completely compatible. If not tell us, as I need to adapt my ESUG 2013 tutorial :)

On 6 March 2016 at 21:18, Hernán Morales Durand <<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;hernan.morales@gmail.com&#39;);" target="_blank">hernan.morales@...> wrote:
Hi guys,

I am porting packages which uses NativeBoost in Pharo <= 4 to Pharo 5 (update: #50628). Since NB is not supported anymore I would like to know which is the replacement of such library.

I found FFI is loadable in Pharo 5, but methods like #getForegroundWindow are missing.
Even worst, when I try to browse a method like

#shellExecute:lpOperation:lpFile:lpPrameters:lpDirectory:nShowCmd:

with any tool (Nautilus, Finder, etc) I get a MessageNotUnderstood: RubShoutStylerDecorator>>disableDrawingWhile:

What's your recommendation?

Cheers,

Hernán





--
Cheers
Cyril Ferlicot

Reply | Threaded
Open this post in threaded view
|

Re: NativeBoost replacement?

hernanmd
Hi Cyril

It seems the UFFI pre-loaded in the Pharo 5 does not include classes like "Win32Window" or NBMacShell, or contained methods.
Are these features lost? Someone already working on that?

Hernán

2016-03-07 3:46 GMT-03:00 Cyril Ferlicot <[hidden email]>:
I think that ffi-nb is now call uffi and is directly in the image. 



On Sunday, 6 March 2016, Hernán Morales Durand <[hidden email]> wrote:
Hi Damien,

I installed FFI-NB as follows:

Gofer it
    smalltalkhubUser: 'Pharo' project: 'FFI-NB';
    configurationOf: 'FFINB';
    loadStable

And found the following methods are missing from NBWin32Window:

createWindowExA:lpClassName:lpWindowName:dwStyle:x:y:width:height:hWndParent:hMenu:hInstance:lParam:
createWindowExW:lpClassName:lpWindowName:dwStyle:x:y:width:height:hWndParent:hMenu:hInstance:lParam:
ffiCalloutOptions
getActiveWindow
getCapture
getClipboardOwnerWindow
getClipboardViewer
getDesktopWindow
getForegroundWindow
getWindowFromPoint:

Should I try something else?

Hernán



2016-03-06 18:10 GMT-03:00 Damien Pollet <[hidden email]>:
The replacement is http://smalltalkhub.com/#!/~Pharo/FFI-NB

The API should be mostly if not completely compatible. If not tell us, as I need to adapt my ESUG 2013 tutorial :)

On 6 March 2016 at 21:18, Hernán Morales Durand <[hidden email]> wrote:
Hi guys,

I am porting packages which uses NativeBoost in Pharo <= 4 to Pharo 5 (update: #50628). Since NB is not supported anymore I would like to know which is the replacement of such library.

I found FFI is loadable in Pharo 5, but methods like #getForegroundWindow are missing.
Even worst, when I try to browse a method like

#shellExecute:lpOperation:lpFile:lpPrameters:lpDirectory:nShowCmd:

with any tool (Nautilus, Finder, etc) I get a MessageNotUnderstood: RubShoutStylerDecorator>>disableDrawingWhile:

What's your recommendation?

Cheers,

Hernán





--
Cheers
Cyril Ferlicot


Reply | Threaded
Open this post in threaded view
|

Re: NativeBoost replacement?

EstebanLM
so yes… UFFI is included in Pharo5, and the “official” replacement for NB. 
Now, NB had a lot of things that do not fit to what NB was (most of them were there originally as examples but they became alive…) the functionality you are looking for should be provided now by the package OSWindows (by Torsten). 

Torsten is working very hard to update his frameworks to Pharo 5.0 (Thanks!)… this is good because he has tons of things windows-oriented and that works as test bed for the new UFFI :)

Anyway… this was not finished but we made a pass today and now tests are green. 

If you can wait until tomorrow, most probably everything will be ready to use… if you really need to use it: 

http://smalltalkhub.com/#!/~TorstenBergmann/NOS (Notice that this repository is temporal until work is accepted and it merges back to official OSWindows repository).
… and you need bleedingEdge of UFFI version to get it fully working :)

cheers!
Esteban


On 07 Mar 2016, at 13:15, Hernán Morales Durand <[hidden email]> wrote:

Hi Cyril

It seems the UFFI pre-loaded in the Pharo 5 does not include classes like "Win32Window" or NBMacShell, or contained methods.
Are these features lost? Someone already working on that?

Hernán

2016-03-07 3:46 GMT-03:00 Cyril Ferlicot <[hidden email]>:
I think that ffi-nb is now call uffi and is directly in the image. 



On Sunday, 6 March 2016, Hernán Morales Durand <[hidden email]> wrote:
Hi Damien,

I installed FFI-NB as follows:

Gofer it
    smalltalkhubUser: 'Pharo' project: 'FFI-NB';
    configurationOf: 'FFINB';
    loadStable

And found the following methods are missing from NBWin32Window:

createWindowExA:lpClassName:lpWindowName:dwStyle:x:y:width:height:hWndParent:hMenu:hInstance:lParam:
createWindowExW:lpClassName:lpWindowName:dwStyle:x:y:width:height:hWndParent:hMenu:hInstance:lParam:
ffiCalloutOptions
getActiveWindow
getCapture
getClipboardOwnerWindow
getClipboardViewer
getDesktopWindow
getForegroundWindow
getWindowFromPoint:

Should I try something else?

Hernán



2016-03-06 18:10 GMT-03:00 Damien Pollet <[hidden email]>:
The replacement is http://smalltalkhub.com/#!/~Pharo/FFI-NB

The API should be mostly if not completely compatible. If not tell us, as I need to adapt my ESUG 2013 tutorial :)

On 6 March 2016 at 21:18, Hernán Morales Durand <[hidden email]> wrote:
Hi guys,

I am porting packages which uses NativeBoost in Pharo <= 4 to Pharo 5 (update: #50628). Since NB is not supported anymore I would like to know which is the replacement of such library.

I found FFI is loadable in Pharo 5, but methods like #getForegroundWindow are missing.
Even worst, when I try to browse a method like

#shellExecute:lpOperation:lpFile:lpPrameters:lpDirectory:nShowCmd:

with any tool (Nautilus, Finder, etc) I get a MessageNotUnderstood: RubShoutStylerDecorator>>disableDrawingWhile:

What's your recommendation?

Cheers,

Hernán





--
Cheers
Cyril Ferlicot



Reply | Threaded
Open this post in threaded view
|

Re: NativeBoost replacement?

hernanmd
Ok I could wait, I have a talk but in a couple of weeks and I want to show Pharo 5 as backend.
Thanks for the reply and for taking care of this.

Cheers,

Hernan


2016-03-07 12:25 GMT-03:00 Esteban Lorenzano <[hidden email]>:
so yes… UFFI is included in Pharo5, and the “official” replacement for NB. 
Now, NB had a lot of things that do not fit to what NB was (most of them were there originally as examples but they became alive…) the functionality you are looking for should be provided now by the package OSWindows (by Torsten). 

Torsten is working very hard to update his frameworks to Pharo 5.0 (Thanks!)… this is good because he has tons of things windows-oriented and that works as test bed for the new UFFI :)

Anyway… this was not finished but we made a pass today and now tests are green. 

If you can wait until tomorrow, most probably everything will be ready to use… if you really need to use it: 

http://smalltalkhub.com/#!/~TorstenBergmann/NOS (Notice that this repository is temporal until work is accepted and it merges back to official OSWindows repository).
… and you need bleedingEdge of UFFI version to get it fully working :)

cheers!
Esteban


On 07 Mar 2016, at 13:15, Hernán Morales Durand <[hidden email]> wrote:

Hi Cyril

It seems the UFFI pre-loaded in the Pharo 5 does not include classes like "Win32Window" or NBMacShell, or contained methods.
Are these features lost? Someone already working on that?

Hernán

2016-03-07 3:46 GMT-03:00 Cyril Ferlicot <[hidden email]>:
I think that ffi-nb is now call uffi and is directly in the image. 



On Sunday, 6 March 2016, Hernán Morales Durand <[hidden email]> wrote:
Hi Damien,

I installed FFI-NB as follows:

Gofer it
    smalltalkhubUser: 'Pharo' project: 'FFI-NB';
    configurationOf: 'FFINB';
    loadStable

And found the following methods are missing from NBWin32Window:

createWindowExA:lpClassName:lpWindowName:dwStyle:x:y:width:height:hWndParent:hMenu:hInstance:lParam:
createWindowExW:lpClassName:lpWindowName:dwStyle:x:y:width:height:hWndParent:hMenu:hInstance:lParam:
ffiCalloutOptions
getActiveWindow
getCapture
getClipboardOwnerWindow
getClipboardViewer
getDesktopWindow
getForegroundWindow
getWindowFromPoint:

Should I try something else?

Hernán



2016-03-06 18:10 GMT-03:00 Damien Pollet <[hidden email]>:
The replacement is http://smalltalkhub.com/#!/~Pharo/FFI-NB

The API should be mostly if not completely compatible. If not tell us, as I need to adapt my ESUG 2013 tutorial :)

On 6 March 2016 at 21:18, Hernán Morales Durand <[hidden email]> wrote:
Hi guys,

I am porting packages which uses NativeBoost in Pharo <= 4 to Pharo 5 (update: #50628). Since NB is not supported anymore I would like to know which is the replacement of such library.

I found FFI is loadable in Pharo 5, but methods like #getForegroundWindow are missing.
Even worst, when I try to browse a method like

#shellExecute:lpOperation:lpFile:lpPrameters:lpDirectory:nShowCmd:

with any tool (Nautilus, Finder, etc) I get a MessageNotUnderstood: RubShoutStylerDecorator>>disableDrawingWhile:

What's your recommendation?

Cheers,

Hernán





--
Cheers
Cyril Ferlicot