3 ms·
The example you've given is of Hot Cocoa which is a series of nice wrappers around common Cocoa UI operations The direct mapping from Obj-C to MacRuby is quite
by cubicle67 17y ago
The example you've given is of Hot Cocoa which is a series of nice wrappers around common Cocoa UI operations
The direct mapping from Obj-C to MacRuby is quite simple. Here's an example from some code I'm working on at the moment
TPShot *newShot= [[TPShot alloc] initInWorld:world
atPosition:shotPos
facing:facingAngle];
becomes
new_shot= TPShot.initInWorld world,
atPosition:shotPos,
facing:facingAngle