Objective-C for Perl Hackers
I've been messing around with Objective-C off and on for a while now. Whenever I take a break and come back to it, I find myself having to look up some of the same syntax over and over. Some examples would be:
Perl:
$foo =~ s{bar}{baz}g;
Objective-C:
foo = [foo stringByReplacingOccurrencesOfString:@"bar" withString:@"baz"];
Perl:
$list{'foo'} = 'baz';
Objective-C:
[list setObject:baz forKey:@"foo"];
One thing in particular that …