There isn’t much info out there about compatibility, but here’s the rundown after a few hours of experimentation and research:
- MacRuby: fully integrated (according to Apple’s docs), so classes, outlets and actions automatically appear in IB
- RubyCocoa
- Nibs: there is a utility that adds classes, actions, and outlets to IB
- Xibs: we’re out of luck, you must add items to IB manually
I am on fire about Ruby. I always hated Objective-C’s weirdness (coming from C++), and read the most awesome idea recently – given the amazing power of modern computers (now pay attention, this is the good part): writing code in anything but the highest level, easiest language is… premature optimization!!! The instant I read that statement (sorry to the author, I can’t remember where), I knew it was true. Add that you can drop down from Ruby to lower level languages where you need extra speed, and that MacRuby and HotCoca are going to make it ridiculously easy to use Cocoa via Ruby and…
That’s it – I’m hooked. To get myself up to speed in Ruby and Cocoa, I’m re-writing the examples from Aaron Hillegass’s awesome book Cocoa Programming for Mac OS X. I’ll be writing about the intricacies of BDD in Ruby using Xcode, and I’ll be posting all the code, as well as custom file and project templates for Xcode.
If your file templates are missing from Xcode (I’m using 3.2.1), run the following commands in terminal, restart Xcode, and they will be there!
sudo mkdir /Library/Application\ Support/Developer/Shared/Xcode/File\ Templates/
sudo mkdir /Library/Application\ Support/Developer/3.0/Xcode/File\ Templates/
svn co http://svn.macosforge.org/repository/ruby/MacRuby/
trunk/misc/xcode-templates/File%20Templates /Library/Application\ Support/Developer/Shared/Xcode/File\ Templates/
sudo cp -r /Library/Application\ Support/Developer/Shared/Xcode/File\ Templates/* /Library/Application\ Support/Developer/3.0/Xcode/File\ Templates/
Recent Comments