Re: [Pharo-users] How to query a JSON

2017-05-24 Thread Sven Van Caekenberghe
> On 24 May 2017, at 17:09, Marc Hanisch wrote: > > Hello Sven, > > Thanks for that hint! It looks like exactly what I need ☺️ Here is a quick example using the new JSON Feed format (https://jsonfeed.org). json := ZnClient new systemPolicy; url: 'https://daringfireball.net/feeds/json';

Re: [Pharo-users] How to use uFFI with String

2017-05-24 Thread horrido
Let's say you have a shared C library (called testlib.so) with the following function signature: void func1(int *buf); How would you use uFFI to call this function? How would you complete the following code fragment: self ffiCall: #( void func1(??? buf) ) module: 'testlib.so'. where buf should

Re: [Pharo-users] How to query a JSON

2017-05-24 Thread Marc Hanisch via Pharo-users
--- Begin Message --- Hello Sven, Thanks for that hint! It looks like exactly what I need ☺️ Best regards, Marc Am 24.05.2017 16:38 schrieb "Sven Van Caekenberghe" : > Marc, > > > On 24 May 2017, at 16:20, Marc Hanisch via Pharo-users < > pharo-users@lists.pharo.org> wrote: > > > Hello, > > > >

Re: [Pharo-users] How to query a JSON

2017-05-24 Thread Sven Van Caekenberghe
Marc, > On 24 May 2017, at 16:20, Marc Hanisch via Pharo-users > wrote: > Hello, > > is there a way to query a JSON with a path (JSONPath or some custom format)? > > I want to query an API and collect the JSON responses, which I need to > iterate over to extract some data. Modelling the JSON

[Pharo-users] How to query a JSON

2017-05-24 Thread Marc Hanisch via Pharo-users
--- Begin Message --- Hello, is there a way to query a JSON with a path (JSONPath or some custom format)? I want to query an API and collect the JSON responses, which I need to iterate over to extract some data. Modelling the JSON structure as classes would be too much overhead, I think. I just w

Re: [Pharo-users] How to add a contextual menu to a Spec

2017-05-24 Thread Sven Van Caekenberghe
Hi Hartmut, Thanks for the reply. Like I said in my previous post 'I like to stay within Spec as much as possible', it got it working fine now. Sven > On 24 May 2017, at 12:03, Hartmut Krasemann > wrote: > > Hi Sven, >> Subject: [Pharo-users] How to add a contextual menu to a Spec >> Li

Re: [Pharo-users] How to add a contextual menu to a Spec ListModel

2017-05-24 Thread Sven Van Caekenberghe
> On 24 May 2017, at 11:58, Nicolai Hess wrote: > > > > 2017-05-24 11:25 GMT+02:00 Sven Van Caekenberghe : > Hi, > > I am struggle a bit in find the right way to add a contextual menu to a Spec > ListModel. > > Consider: > > ListModel new > title: 'List Example'; > items: Smalltalk all

Re: [Pharo-users] How to add a contextual menu to a Spec

2017-05-24 Thread Hartmut Krasemann
Hi Sven, Subject: [Pharo-users] How to add a contextual menu to a Spec ListModel Message-ID: <5bbf6bcb-2c95-4948-932c-d14f71c0b...@stfx.eu> Content-Type: text/plain; charset=us-ascii Hi, I am struggle a bit in find the right way to add a contextual menu to a Spec ListModel. Consider:

Re: [Pharo-users] How to add a contextual menu to a Spec ListModel

2017-05-24 Thread Nicolai Hess
2017-05-24 11:25 GMT+02:00 Sven Van Caekenberghe : > Hi, > > I am struggle a bit in find the right way to add a contextual menu to a > Spec ListModel. > > Consider: > > ListModel new > title: 'List Example'; > items: Smalltalk allClasses; > openWithSpec. > > I would like to add a right-click

[Pharo-users] How to add a contextual menu to a Spec ListModel

2017-05-24 Thread Sven Van Caekenberghe
Hi, I am struggle a bit in find the right way to add a contextual menu to a Spec ListModel. Consider: ListModel new title: 'List Example'; items: Smalltalk allClasses; openWithSpec. I would like to add a right-click contextual menu to the list, with for example a 'Browse' action. I ca

Re: [Pharo-users] Loading Glorp+PostgreSQL

2017-05-24 Thread Tim Mackinnon
Hi Sven - my suggestion would be to simply put it on the links TestClass, it's a minor change that preserves your same flow. I had noticed that Stef had a note at this point as he hadn't understood what you were trying to convey, and I think this simply sorts it. I'll try and submit my fork to