Re: [MacRuby-devel] MacRuby 0.8 - crash using Proc.new with NSArray.enumerateObjectsUsingBlock

2011-02-14 Thread Jonathan Waddilove
Thank you Laurent, Adding framework 'Foundation' has fixed the problem. I must also apologise for putting 0.9 in the original title (a mistype) - of course I am using 0.8 best wishes, Jonathan On 13 Feb 2011, at 23:46, Laurent Sansonetti wrote: > Hi Jonathan, > > Your snippet does not requ

Re: [MacRuby-devel] MacRuby 0.9 - NSDate initWithTimeInterval:sinceDate: problem

2011-02-14 Thread Jonathan Waddilove
Thank you Alan, I was obviously having a really bad day for mistyping and word blindness... best wishes, Jonathan regards, Jonathan Jonathan T Waddilove email: jonat...@waddilove.net web: jonathan.waddilove.net On 13 Feb 2011, at 19:52, Alan Skipp wrote: > I think you've just managed to ge

[MacRuby-devel] WeakRef advice

2011-02-14 Thread Alan Skipp
Hello everyone, I've been doing some research into weak references in ruby and from what I've read it seems that Ruby's WeakRef implementation is both inefficient and unsafe. Here is the thread discussing the matter: http://redmine.ruby-lang.org/issues/show/4168 As Macruby has a different garbag

[MacRuby-devel] iokit

2011-02-14 Thread Joel Reymont
Has there been any progress with this ticket? http://www.macruby.org/trac/ticket/1126 Thanks, Joel -- - mac osx device driver ninja, kernel extensions and user-land usb drivers -++

Re: [MacRuby-devel] WeakRef advice

2011-02-14 Thread Laurent Sansonetti
Hi Alan, MacRuby should have the same problem. ObjectSpace._id2ref in MacRuby basically maps an object pointer value to a numerical description, and the GC recycles objects. I am curious why you need weak references, though. MacRuby is able to detect and deal with reference cycles, so you sho

Re: [MacRuby-devel] Issue with running unit tests when requiring rubygems

2011-02-14 Thread Ryan Davis
On Feb 13, 2011, at 05:56 , Gabriel Ayuso wrote: > I reinstalled the minitest and mocha gems to the following versions: > minitest-2.0.2, mocha-0.9.12 > The same issue I described before occurred once again. > > Here's the code I ran on macirb and the result: > > require 'rubygems'#=> tru

Re: [MacRuby-devel] Issue with running unit tests when requiring rubygems

2011-02-14 Thread Ryan Davis
On Feb 14, 2011, at 15:23 , Ryan Davis wrote: > The test only fails on macruby and with mocha. I'll file a ticket. https://www.macruby.org/trac/ticket/1161 ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/m

Re: [MacRuby-devel] Issue with running unit tests when requiring rubygems

2011-02-14 Thread Ryan Davis
here is the workaround: require "rubygems" require "isolate" Isolate.now! :system => false do gem "minitest" gem "mocha" end class Module def remove_method x # do nothing end end if defined?(RUBY_ENGINE) and RUBY_ENGINE == "macruby" gem "minitest" require "minitest/autorun" require