Re: [MacRuby-devel] MacRuby and XML-RPC

2009-03-30 Thread Matt Aimonetti
You're welcome, please keep us posted, your project sounds pretty interesting :) Btw, I'm glad to see so many French speakers in the MacRuby community! - Matt On Mon, Mar 30, 2009 at 10:48 PM, Stéphane Wirtel wrote: > Thank you for the workaround and the patch. > > It works > > Stephane > > On

Re: [MacRuby-devel] MacRuby and XML-RPC

2009-03-30 Thread Stéphane Wirtel
Thank you for the workaround and the patch. It works Stephane On 31 Mar 2009, at 05:05, Matt Aimonetti wrote: There you go: $ macirb >> require 'rexml/xmltokens' => true >> module REXML >> class Attribute >> include ::REXML::XMLTokens >> end >> end => REXML::Attribute >> require "xmlr

Re: [MacRuby-devel] [MacRuby] #134: require 'rexml/document' fails

2009-03-30 Thread MacRuby
#134: require 'rexml/document' fails +--- Reporter: rebo...@… | Owner: lsansone...@… Type: defect | Status: new Priority: major |

Re: [MacRuby-devel] MacRuby and XML-RPC

2009-03-30 Thread Matt Aimonetti
There you go: $ macirb >> require 'rexml/xmltokens' => true >> module REXML >> class Attribute >> include ::REXML::XMLTokens >> end >> end => REXML::Attribute >> require "xmlrpc/client" => true >> server = XMLRPC::Client.new("tiny.my.odoo.com", "/xmlrpc/common", 8069) => ##-> tiny.my.odoo.

Re: [MacRuby-devel] [MacRuby] #240: no such file to load -- stringio.rb.bundle when starting irb/gems

2009-03-30 Thread MacRuby
#240: no such file to load -- stringio.rb.bundle when starting irb/gems -+-- Reporter: i...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker

Re: [MacRuby-devel] [hotcocoa] http wrapper, what do you think?

2009-03-30 Thread Brian Chapados
2009/3/30 Matt Aimonetti : >> Does the delegate object also receive messages that would be sent to an >> NSURLDownload? > > I'm actually using NSURLConnection and not NSURLDownload which seemed a bit > too simple when I looked at it. If the delegator is a proc, then it > currently only gets called

Re: [MacRuby-devel] Accessing Obj-C InstVars from Ruby

2009-03-30 Thread Edward Hynes
Accessors, it's s obvious (after you all pointed the way ;^) Thanks, Ed ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Re: [MacRuby-devel] [hotcocoa] http wrapper, what do you think?

2009-03-30 Thread Matt Aimonetti
Oh right, I don't have a mapping for "start" but that's pretty easy to add. The "finish" mapping is the optional block you pass to the helper method. Once the request is processed, the block is being called. I'm wondering if these callbacks, shouldn't be defined using accessors instead. passing too

Re: [MacRuby-devel] MacRuby and XML-RPC

2009-03-30 Thread Stéphane Wirtel
Thank you so much, If you send me your patch, I send it to a friend of mine, because we want to start this project for the next week. Regards, Stephane On 31 Mar 2009, at 00:11, Matt Aimonetti wrote: If I can find 5 minutes tonight, I'll try to write a quick work around patch for you so y

Re: [MacRuby-devel] MacRuby and XML-RPC

2009-03-30 Thread Matt Aimonetti
If I can find 5 minutes tonight, I'll try to write a quick work around patch for you so you can start working on your project and not wait for Macruby to be fixed. - Matt On Mon, Mar 30, 2009 at 2:51 PM, Stéphane Wirtel wrote: > http://www.macruby.org/trac/ticket/134 > > Thank you > > But I hop

Re: [MacRuby-devel] [hotcocoa] http wrapper, what do you think?

2009-03-30 Thread Ernest N. Prabhakar, Ph.D.
Hi Matt, On Mar 30, 2009, at 2:37 PM, Matt Aimonetti wrote: Pretty cool, my library does(will do) what Shoes does but with more flexibility (you can assign any class/objects as a delegates and it supports more options (including using your keychain for auth)). Did/do you use Shoes, if so, I'

Re: [MacRuby-devel] [MacRuby] #134: require 'rexml/document' fails

2009-03-30 Thread MacRuby
#134: require 'rexml/document' fails +--- Reporter: rebo...@… | Owner: lsansone...@… Type: defect | Status: new Priority: major |

Re: [MacRuby-devel] [hotcocoa] http wrapper, what do you think?

2009-03-30 Thread Matt Aimonetti
> > Does the delegate object also receive messages that would be sent to an > NSURLDownload? > I'm actually using NSURLConnection and not NSURLDownload which seemed a bit too simple when I looked at it. If the delegator is a proc, then it currently only gets called once the request finished proper

Re: [MacRuby-devel] [MacRuby] #134: require 'rexml/document' fails

2009-03-30 Thread MacRuby
#134: require 'rexml/document' fails +--- Reporter: rebo...@… | Owner: lsansone...@… Type: defect | Status: new Priority: major |

Re: [MacRuby-devel] MacRuby and XML-RPC

2009-03-30 Thread Stéphane Wirtel
http://www.macruby.org/trac/ticket/134 Thank you But I hope this bug will be resolved because I want to implement a native cocoa client for the OpenERP project On 30 Mar 2009, at 23:22, Matt Aimonetti wrote: Could you please create a ticket for this bug, it looks like a constant is being c

Re: [MacRuby-devel] [hotcocoa] http wrapper, what do you think?

2009-03-30 Thread Brian Chapados
Seems like a good idea that would be useful even outside of HotCocoa. Especially for simple cases, I think if Obj-C had blocks, this would be a good place to use them. For more control, the delegate pattern actually works really well. It's good that you have a way to do both. Does the delegate obj

Re: [MacRuby-devel] branches/experimental

2009-03-30 Thread Matt Aimonetti
Thanks Charles for clarifying the situation :) For once, I'm glad to see I was wrong. - Matt On Mon, Mar 30, 2009 at 1:23 PM, Charles Oliver Nutter < charles.nut...@sun.com> wrote: > Charles Oliver Nutter wrote: > >> Matt Aimonetti wrote: >> >>> Hi Charlie, >>> >>> I don't think/hope you do it

Re: [MacRuby-devel] helping out

2009-03-30 Thread Matt Aimonetti
Use trunk aka 0.4 for now. - Matt On Mon, Mar 30, 2009 at 1:39 PM, Brian Marick wrote: > I'm going to start porting the _RubyCocoa_ demo app into MacRuby. What's > the most useful (to you) branch to use? > > > On Mar 30, 2009, at 3:06 PM, Matt Aimonetti wrote: > > Hey John, >> >> I would happi

Re: [MacRuby-devel] [hotcocoa] http wrapper, what do you think?

2009-03-30 Thread Matt Aimonetti
Ernie, Pretty cool, my library does(will do) what Shoes does but with more flexibility (you can assign any class/objects as a delegates and it supports more options (including using your keychain for auth)). Did/do you use Shoes, if so, I'd be interested in knowing what you think we are missing o

Re: [MacRuby-devel] MacRuby and XML-RPC

2009-03-30 Thread Matt Aimonetti
Could you please create a ticket for this bug, it looks like a constant is being called before being defined. It might be related to the load order in MacRuby (wild guess). - Matt On Mon, Mar 30, 2009 at 2:02 PM, Stéphane Wirtel wrote: > Hi all, > > I am trying to create a small xml-rpc client w

[MacRuby-devel] MacRuby and XML-RPC

2009-03-30 Thread Stéphane Wirtel
Hi all, I am trying to create a small xml-rpc client with macruby, but I got this error. stargate:test_ruby stephane$ ./client.rb /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/ rexml/attribute.rb:18:in `': uninitialized constant REXML::Attribute::NAME_STR (NameError

[MacRuby-devel] [hotcocoa] http wrapper, what do you think?

2009-03-30 Thread Ernest N. Prabhakar, Ph.D.
Hi Matt, On Mar 30, 2009, at 11:08 AM, Matt Aimonetti wrote: As you can see from the example list, the method name download isn't always appropriate and maybe I should give it the http_query alias. What do you think? What's nice with this approach, is that on top of being simple, the query

Re: [MacRuby-devel] helping out

2009-03-30 Thread Brian Marick
I'm going to start porting the _RubyCocoa_ demo app into MacRuby. What's the most useful (to you) branch to use? On Mar 30, 2009, at 3:06 PM, Matt Aimonetti wrote: Hey John, I would happily spend some time on MacRuby, but I have no idea where to start. Anyway I was wondering whether you c

Re: [MacRuby-devel] branches/experimental

2009-03-30 Thread Charles Oliver Nutter
Charles Oliver Nutter wrote: Matt Aimonetti wrote: Hi Charlie, I don't think/hope you do it on purpose, but it seems that you're asking questions just to prove that Laurent is wrong and that whatever he will do will end up slowing down the current experimental branch. I think you're misint

Re: [MacRuby-devel] helping out

2009-03-30 Thread Matt Aimonetti
Hey John, I would happily spend some time on MacRuby, but I have no idea where to > start. Anyway I was wondering whether you could give me a quick run down on > how to start investigating learning and experimenting with the > experimental branch. > Don't start with the experimental branch, it's

Re: [MacRuby-devel] Accessing Obj-C InstVars from Ruby

2009-03-30 Thread Brian Chapados
In this case, you could use the KVC[1] (key-value coding) accessor (#valueForKey:) to access the ivar. class Example def methodB self.valueForKey("instVarB") end end [1]: http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/Concepts/Compliant.html Brian On Mon, Mar

[MacRuby-devel] helping out

2009-03-30 Thread John Shea
Hi Matt, you said: > If you were thinking about helping out, be reassured, help is always welcome > ;) I would happily spend some time on MacRuby, but I have no idea where to start. I downloaded the experimental branch - was not really sure to go from there but tried running some simple ruby cod

Re: [MacRuby-devel] Accessing Obj-C InstVars from Ruby

2009-03-30 Thread Laurent Sansonetti
Hi John & Edward, On Mar 30, 2009, at 11:27 AM, John Shea wrote: Hello Edward, well since no one else has answered i will speculate a bit (it might provoke someone wiser). I assume that the Ruby and the Objective C class are magically married together perhaps via some sort of proxy class - si

Re: [MacRuby-devel] # of developers

2009-03-30 Thread Matt Aimonetti
Joel, If you were thinking about helping out, be reassured, help is always welcome ;) - Matt 2009/3/30 John Shea > Here is the blurb: > http://www.macruby.org/project.html > > J > > On Mar 30, 2009, at 16:53 , Joel Reymont wrote: > > How many people are actively developing MacRuby apart from

Re: [MacRuby-devel] branches/experimental

2009-03-30 Thread Charles Oliver Nutter
Matt Aimonetti wrote: Hi Charlie, I don't think/hope you do it on purpose, but it seems that you're asking questions just to prove that Laurent is wrong and that whatever he will do will end up slowing down the current experimental branch. I think you're misinterpreting me. I'd love for Lau

[MacRuby-devel] Rubyspec - Google Summer of Code

2009-03-30 Thread Federico Builes
(This message is being sent to several lists, I apologize if you get more than one copy). The Rubyspec project (http://rubyspec.org) is interested in finding one student to work with us this year in the Google Summer of Code. We'll be applying under the Ruby on Rails organization, you can find mor

Re: [MacRuby-devel] Accessing Obj-C InstVars from Ruby

2009-03-30 Thread John Shea
Hello Edward, well since no one else has answered i will speculate a bit (it might provoke someone wiser). I assume that the Ruby and the Objective C class are magically married together perhaps via some sort of proxy class - since you cant as far as i know add to an objective C class more instan

Re: [MacRuby-devel] [MacRuby] #240: no such file to load -- stringio.rb.bundle when starting irb/gems

2009-03-30 Thread Brian Chapados
When you built MacRuby, did you have the RUBYOPT env set? If so, unset it. See the comments for this: http://www.macruby.org/trac/ticket/226#comment:7 Brian On Mon, Mar 30, 2009 at 6:36 AM, MacRuby wrote: > #240: no such file to load -- stringio.rb.bundle when starting irb/gems > -

[MacRuby-devel] [hotcocoa] http wrapper, what do you think?

2009-03-30 Thread Matt Aimonetti
In my free time, I've been working on a http://lighthouseapp.com client app which mixes API calls with webkit views (I'll release the source code later on). The app is 100% HotCocoa (meaning that I didn't use any nib/xibs). For people who are not used to work with delegation, having to deal with fi

[MacRuby-devel] OSA resources Re: branches/experimental

2009-03-30 Thread Ernest N. Prabhakar, Ph.D.
Hi Laurent, On Mar 29, 2009, at 11:29 AM, Laurent Sansonetti wrote: 1) making MacRuby an OSA component, so that it's recognized by the system (osalang, Script Edit, etc.). I have no idea on how to implement this. If you're willing to check it out, the documentation is there: http://dev

[MacRuby-devel] Accessing Obj-C InstVars from Ruby

2009-03-30 Thread Edward Hynes
Is there a way to access instance variables defined in an Objective-C class from a Ruby extension? I'm porting some of Apple's example code to MacRuby as a learning experience and would like to do so incrementally. Porting the code one class at a time works fine, but for some of the large

Re: [MacRuby-devel] # of developers

2009-03-30 Thread John Shea
Here is the blurb: http://www.macruby.org/project.html J On Mar 30, 2009, at 16:53 , Joel Reymont wrote: How many people are actively developing MacRuby apart from Laurent? Thanks, Joel --- http://tinyco.de Mac, Lisp, OCaml ___ MacRuby-d

[MacRuby-devel] # of developers

2009-03-30 Thread Joel Reymont
How many people are actively developing MacRuby apart from Laurent? Thanks, Joel --- http://tinyco.de Mac, Lisp, OCaml ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macrub

[MacRuby-devel] [MacRuby] #240: no such file to load -- stringio.rb.bundle when starting irb/gems

2009-03-30 Thread MacRuby
#240: no such file to load -- stringio.rb.bundle when starting irb/gems -+-- Reporter: i...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker