While trying to learn Objective C from a book, I'd like to be able to run some code snippets like...
NSString *str = @"Hello, world!";
NSLog(@"Retain count is %d", [str retainCount]);
In Ruby I'd just put this in an snippet.rb file and run ruby snippet.rb
from the terminal. JavaScript has jsfiddle.net. Is there an equally easy way to do this with objective c?