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
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
> 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
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
#629: Bindings not working for subclass
-+--
Reporter: dy...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: critical | Mil