[MacRuby-devel] Exposing c structs and functions
Jim Getzen
jim at getzen.name
Thu Dec 18 07:29:14 PST 2008
Is there a way to expose some c structs and functions from a custom
Objective-C framework to MacRuby?
For instance, in my framework I have a 3-D point struct, such as:
typedef struct {
CGFloat x, y, z;
} JPoint3;
In addition, I have creation functions such as 'JPoint3Make(x, y, z)'
etc.
How do I make these usable from MacRuby, like NSPoint and NSMakePoint
are?
Jim
More information about the MacRuby-devel
mailing list