Today, we discovered one of the coolest things about Objective-C EVER.
A way to make Objective-C NOT like Objective-C!
One example: trim. In every good language, Strings can be trimmed to remove leading and trailing whitespace. In Objective-C you have to do it like this:
[myString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
With the awesome application of a Category, we created our own trim method and now that code looks like:
HOW FREAKIN’ COOL IS THAT?!