Hi Fjölnir,
As I think I mentioned in IRC, my best guess is that this is a bridge support
bug. Have you filed a bug with Apple at all? Something else you might try (if
you have the time) is to access your struct using the pyobjc bridge, which also
makes use of bridge support, to see if this is
One thing I forgot to mention: If I switch the struct to use doubles, then
everything works fine (which is probably why this didn't get caught sooner,
since the appkit types all use doubles)
On 2012/03/13, at 22:06, Fjölnir Ásgeirsson wrote:
> I've been struggling with accessing C structs from
I've been struggling with accessing C structs from ruby. The problem is:
I expose a struct from my framework (definition below). However when
accessing/allocating it from ruby it seems the offsets are off by 4 bytes (as
if macruby think it's supposed to be a double)
Definition:
#ifndef __SCRIP