4 ms·
The main issue I have with anything that's not Objective-C is the lack of documentation. For example, how do I know I can do things like this (from slide 76) wi
by martingordon 17y ago
The main issue I have with anything that's not Objective-C is the lack of documentation. For example, how do I know I can do things like this (from slide 76) without having to deal with an entirely new set of documentation?
gradient(:start => (:name => "grey"), :end => (:name => "blue))
While I do agree that Objective-C has many, many drawbacks, the fact that Cocoa was designed with ObjC in mind, makes me stick with it rather than trying to work Cocoa in another language.
- cubicle67 17y agoThe 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