Re: [MacRuby-devel] MacRuby 0.5 vs. CG Bitmap Context

2010-03-06 Thread Laurent Sansonetti
Hi Scott, On Mar 5, 2010, at 8:34 AM, Scott Thompson wrote: > I'm using MacRuby to work with CoreGraphics and having some trouble with > pointers. > > My first attempt was to create the data for a bitmap context using > NSMutableData: > > bitmap_data = NSMutableData.alloc.initWithLength(image

Re: [MacRuby-devel] Build problems

2010-03-06 Thread Laurent Sansonetti
Sorry guys but nobody in the team is using 10.5 anymore. I committed a fix in r3712, please check it out again and let me know if it still breaks. I also recommend to upgrade to 10.6 (Snow Leopard) if you want to do serious development with MacRuby. Laurent On Mar 1, 2010, at 5:52 PM, Michae

Re: [MacRuby-devel] MacRuby 0.5 vs. CG Bitmap Context

2010-03-06 Thread Scott Thompson
> The good news is that you might not need to worry about it in this > case. In 10.6, you can pass NULL (use 'nil' in MacRuby) as the first > argument to CGBitmapContextCreate, as long as you don't mind letting > CoreGraphics manage the memory allocation for you: I am very much aware of that. U

Re: [MacRuby-devel] MacRuby 0.5 vs. CG Bitmap Context

2010-03-06 Thread Brian Chapados
Hi Scott, The problem is due to the way the macruby Pointer class handles types, which apparently is due to an LLVM issue... The Pointer class is defined in compiler.cpp. See this comment: --- VALUE rb_pointer_new(const char *type_str, void *val, size_t len) { // LLVM doesn't allow to get a p

[MacRuby-devel] [MacRuby] #629: Bindings not working for subclass

2010-03-06 Thread MacRuby
#629: Bindings not working for subclass -+-- Reporter: dy...@… | Owner: lsansone...@… Type: defect | Status: new Priority: critical | Mil