18 Dec
2008
18 Dec
'08
3:29 p.m.
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