Re: [MacRuby-devel] thread-safety and collections in macruby

2011-10-20 Thread terl
Just a note to the original question macruby collections are based on objc mutable collections...e.g. a = %w{my array of strings} ["my","array","of"strings"] b = a.dup. b is still a mutable array. c = NSarray.alloc.initWithArray( a ) immutable array c << "hi" runtime error cannot modify

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] NSWorkspace.sharedWorkspace.recycleURLs:completionHandler doing nothing under macruby

2011-08-02 Thread terl
Caio this works fine for me os x 10.7, MacRuby 0.11 (ruby 1.9.2) [universal-darwin10.0, x86_64] #!/usr/bin/env macruby framework 'Cocoa' class Trash_Files def initialize() @error = Pointer.new(:object) @path = "#{ENV['HOME']}/Desktop/Y-U-NO-TRASH-ME-MACRUBY.txt" system "touch