Thursday, August 13, 2009

Never Noticed This Before

I didn't know Apple's code examples included examples of MacRuby. Opening the project in Xcode seemed the way to go. In Xcode, clicking Build and Run was all it took.
[greg:Ruby] pwd
/Developer/Examples/Ruby
[greg:Ruby]
[greg:Ruby] ls -al
total 16
drwxrwxr-x   7 root        admin   238 Aug 13 06:59 .
drwxrwxr-x  43 root        admin  1462 Nov 30  2008 ..
-rw-rw-r--@  1 greghelton  admin  6148 Aug 13 06:59 .DS_Store
drwxrwxr-x   4 root        admin   136 Jun 27  2008 DTrace
drwxrwxr-x  19 root        admin   646 Aug 13 06:59 MacRuby
drwxrwxr-x  57 root        admin  1938 Jun 27  2008 Ruby
drwxrwxr-x  42 root        admin  1428 Feb 19  2008 RubyCocoa
[greg:Ruby]
[greg:Ruby] cp -R MacRuby/PathDemo ~/dev/src/xcode/PathDemo
[greg:MacRuby] cd ~/dev/src/xcode/pathdemo
[greg:pathdemo] open PathDemo.xcodeproj