Re: [MacRuby-devel] Question on Hash performance

2011-01-14 Thread Vincent Isambart
Hi, > I'm not perfectly sure this applies to MacRuby, but I suspect it should since > our Array is implemented on top of NSMutableArray MacRuby's Array was based on CFArray at some point but it's not anymore. If I remember correctly there were a few reasons for it, including : - CFArray's perfor

Re: [MacRuby-devel] MacRuby and Cocos2D

2011-01-14 Thread Rolando Abarca
Right, I added the -fobjc-gc flag. I'll check the docs and try to update the framework. Thanks! On Thu, Jan 13, 2011 at 10:51 PM, Laurent Sansonetti wrote: > Hi Rolando, > You shouldn't need to retain the objects as instance variables to keep them > from premature garbage collection. In this case

[MacRuby-devel] BridgeSupport v2

2011-01-14 Thread Martin Hawkins
I installed the v2 Preview of BridgeSupport a couple of days ago to solve a particular problem with accessing constant values, which it did. I have now found that what was working code now seems to be broken - representedObject in a NSCell object consistently returns nil. I didn't expect the Bridge

[MacRuby-devel] loading a non-objc bundle

2011-01-14 Thread Joel Reymont
Folks, How do I load this C bundle into MacRuby? file beagle.so beagle.so: Mach-O 64-bit bundle x86_64 ls -la beagle.bridgesupport -rw-r--r-- 1 joelr staff 15428 Jan 14 19:05 beagle.bridgesupport Thanks, Joel --- http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelr

Re: [MacRuby-devel] loading a non-objc bundle

2011-01-14 Thread Joel Reymont
This is what I did to make it work... file beagle.so beagle.so: Mach-O 64-bit bundle x86_64 Note that beagle.so is a bundle so I can't link against it. beagle.c is a file that loads the bundle and sets up function pointers to call into it. --- BeagleBundle.c --- #include "beagle.h" void Init

Re: [MacRuby-devel] loading a non-objc bundle (assertion failed!)

2011-01-14 Thread Joel Reymont
Not all is peachy :-(. macirb -r beagle.rb irb(main):001:0> bg_open(0) Assertion failed: (cache->as.fcall.imp != NULL), function rb_vm_dispatch, file dispatcher.cpp, line 766. Abort trap cat beagle.rb #!/usr/bin/env macruby require 'Beagle' load_bridge_support_file 'beagle.bridgesupport' ---

Re: [MacRuby-devel] BridgeSupport v2

2011-01-14 Thread Laurent Sansonetti
Hi Martin, I don't think the new BridgeSupport is the problem here, but if you can, please try to reduce the problem to a simple project and attach it to a new ticket. We will investigate. At this point, regressions in the Cocoa support of MacRuby must be quickly identified and fixed. Laurent

Re: [MacRuby-devel] loading a non-objc bundle (assertion failed!)

2011-01-14 Thread Joel Reymont
require './Beagle.bundle' makes all the difference. Why? ls -la Beagle.bundle -rwxr-xr-x 1 joelr staff 21800 Jan 14 20:45 Beagle.bundle file Beagle.bundle Beagle.bundle: Mach-O 64-bit bundle x86_64 On Jan 14, 2011, at 8:49 PM, Joel Reymont wrote: > Not all is peachy :-(. > > macirb -r be