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
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
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
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
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
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'
---
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
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