Re: [MacRuby-devel] ASIHTTPRequest examples

2011-10-11 Thread Dominic Dagradi
To use it from Ruby file, you don't need to require anything. Just drag-and-drop it into your Xcode project window (i.e. include it in your project somehow), and you should have access to the classes from Ruby without extra work. On Oct 11, 2011, at 7:22 PM, Alex Heaton wrote: > I'm brand ne

Re: [MacRuby-devel] ASIHTTPRequest examples

2011-10-11 Thread Alex Heaton
I'm brand new to MacRuby so my questions are rather silly things like how to actually import the files and get running :) Matt: Thanks for the link, but I'm mainly using this for file uploads. - Alex On 12 October 2011 01:58, Dominic Dagradi wrote: > Briquette uses it extensively but we haven'

Re: [MacRuby-devel] is there a sane way to use/create XPC services via macruby?

2011-10-11 Thread Jordan K. Hubbard
First, let me note that any communications at WWDC surrounding the Mac App Store and App Sandboxing are still under NDA and, as such, should not be publicly discussed until such information is released to the general public. Second, I'd just like to clarify that XPC services and sandboxing shoul

Re: [MacRuby-devel] ASIHTTPRequest examples

2011-10-11 Thread Dominic Dagradi
Briquette uses it extensively but we haven't open sourced it (yet). I can answer a lot of questions about ASI though; we had a pretty good experience with it once we patched some GC issues. For alternatives, AFNetworking is a good new option too. On Oct 11, 2011, at 6:19 PM, Alex Heaton wrote

Re: [MacRuby-devel] ASIHTTPRequest examples

2011-10-11 Thread Matt Aimonetti
I wasn't pleased with the APIs provided by ASIHTTPRequest so I wrote my own async/sync wrapper: https://github.com/mattetti/macruby-httpwrapper Feel free to use/fork/fix/improve/abuse. - Matt Sent from my iPhone On Oct 11, 2011, at 17:19, Alex Heaton wrote: > Hi everyone, > > I was wonderi

[MacRuby-devel] ASIHTTPRequest examples

2011-10-11 Thread Alex Heaton
Hi everyone, I was wondering if there any example apps that use ASIHTTPRequest that I might be able to have a look at? ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/m

Re: [MacRuby-devel] Progress towards 1.0?

2011-10-11 Thread Matt Aimonetti
Hi Dave, The project is more stable than ever and we are planning a 0.11 release for really soon which should be hopefully followed by a 1.0 release. Laurent recently became a dad and he's currently in parental leave which explains why he didn't contribute too much code recently. MacRuby is now re

Re: [MacRuby-devel] Using ORM with MacRuby

2011-10-11 Thread terl
ActiveResource works with macruby too so you can use REST and json. Terry On 12/10/2011, at 10:25 AM, Daniel Westendorf wrote: > Jon, > > I've had success using Sequel. You need to be careful about which > sqlite driver you use, sqlite3 is the one I think. I'm using sqlite3 > 1.3.4 I believe

Re: [MacRuby-devel] Using ORM with MacRuby

2011-10-11 Thread Daniel Westendorf
Jon, I've had success using Sequel. You need to be careful about which sqlite driver you use, sqlite3 is the one I think. I'm using sqlite3 1.3.4 I believe. Daniel On Tue, Oct 11, 2011 at 3:19 PM, Jon Doud wrote: > I thank you for the links about CoreData, but the project I am working on > requ

Re: [MacRuby-devel] Using ORM with MacRuby

2011-10-11 Thread Dominic Dagradi
Ah ha. In that case, I'd recommend a library like RestKit (http://restkit.org/) to talk to your remote interface. On Tuesday, October 11, 2011 at 3:19 PM, Jon Doud wrote: > I thank you for the links about CoreData, but the project I am working on > requires a separate database. The data will b

Re: [MacRuby-devel] Using ORM with MacRuby

2011-10-11 Thread Jon Doud
I thank you for the links about CoreData, but the project I am working on requires a separate database. The data will be access through multiple interfaces (MacRuby client, Rails client, Windows client). I have found some success using the sqlite3 driver, but I wanted a more OOP interface.

[MacRuby-devel] Progress towards 1.0?

2011-10-11 Thread Dave Baldwin
Hi, I have been away from MacRuby dev for about 6 months and I am looking to start again and I was wondering if it is still a viable development platform as development seems to have stalled. It has been a long time since the last release and looking back through the list archives I see Lauren

Re: [MacRuby-devel] NSInvocationOperation usage Segmentation fault

2011-10-11 Thread Mateus Armando
Hi Alex, this works for me! 1. Alternativ framework 'Foundation' class Foo def bar puts "hallo" end end queue = NSOperationQueue.alloc.init #queue.addOperation operation queue.addOperationWithBlock ->{ Foo.new.bar } NSRunLoop.currentRunLoop.runUntilDate(NSDate.dateWithTimeIntervalSin

Re: [MacRuby-devel] Using ORM with MacRuby

2011-10-11 Thread Dominic Dagradi
I don't have a good answer to your question, but may I suggest CoreData? More to learn, but a native solution that might fit MacRuby with fewer issues: http://cbpowell.wordpress.com/2011/05/27/macruby-notes-series-taking-the-pain-out-of-core-data-part-1/ http://cyberfox.com/blog/120-how-i-learned

[MacRuby-devel] Using ORM with MacRuby

2011-10-11 Thread Jon Doud
I am trying to use Sequel, ActiveRecord or Datamapper with MacRuby and XCode. So far I haven't had any success. Environment: XCode 4.2 Beta MacRuby 0.10 and 0.11-nightly Sequel 3.28 ActiveRecord 3.0.10 Datamapper 1.1.0 Sqlite3 1.3.4 Sqlite-ruby 1.3.3 Both ActiveRecord and Sequel die in IRB (s

Re: [MacRuby-devel] NSInvocationOperation usage Segmentation fault

2011-10-11 Thread Sven A. Schmidt
Hm, I'm not a ruby export but puts is used in the Thread examples at ruby-doc. But I just read in the docs for initWithTarget:selector:object: "The return type of the method may be void, a scalar value, or an object that can be returned as an id type." I've tried returning strings and a dict an

Re: [MacRuby-devel] NSInvocationOperation usage Segmentation fault

2011-10-11 Thread CMcP
Is puts thread safe? I tried having bar return a string rather than print it and having the main code print operation.result after the runloop finished executing. That worked OK with no crash. -- CMcP ___ MacRuby-devel mailing list MacRuby-devel@lists

Re: [MacRuby-devel] NSInvocationOperation usage Segmentation fault

2011-10-11 Thread Sean Mateus
Hi Alex, try to use: operation = NSInvocationOperation.alloc.initWithTarget Foo.new, selector: ':bar', object: nil the only change is that the selector is a Symbol now! I'm not on any OS X devices so I can't test this! but I hope it'll work! Grüßen aus Köln Sean Mateus >> The following code cra

Re: [MacRuby-devel] macruby NSTask problem

2011-10-11 Thread Colin McPhail
Alex Greif wrote ... > I tried the subprocess sample with the AsyncHandler from > http://ofps.oreilly.com/titles/9781449380373/_foundation.html > and found the following problem: > if I execute the code many times (I tried 20 times) in my terminal with > $ macruby sample.rb > then 2-3 times it does

Re: [MacRuby-devel] is there a sane way to use/create XPC services via macruby?

2011-10-11 Thread Matt Aimonetti
MacRuby fully supports sandboxing: http://ofps.oreilly.com/titles/9781449380373/_one_step_deeper.html#_sandboxing I don't have any experience with XPC: http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingXPCServices.html but in theory we should

[MacRuby-devel] is there a sane way to use/create XPC services via macruby?

2011-10-11 Thread Takao Kouji
Does Anyone know any idea below? - on IRC #macruby channel - 03:58 Aphelion: is there a sane way to use/create XPC services via macruby? 11:10 takaokouji: Aphelion: Sorry, I don't know XPC. What is XPC? XML-RPC? 13:08 Aphelion: takaokouji: IPC/sandboxing technology that apple is requiri

Re: [MacRuby-devel] NSInvocationOperation usage Segmentation fault

2011-10-11 Thread Sven A. Schmidt
Hi Alex, I'm afraid I'm not able to help with your problem directly, but maybe I can provide an additional angle for debugging. I've seen frequent crashes using Dispatch, which may be related. I've had to remove multi-threading from my Core Data Document-Based application due to these crashes