TextMate and Objective-C

One of the things I dislike about Objective-C is that since Objective-C has a rather, well, unorthodox method call syntax I have to know how many method calls I'm going to make before I write a statement. If you're not familiar with it, here's a quick example. Unlike most languages, where you'd write something similar to the following:


in Objective-C you'd write the following:

[ [ [ foo bar ] baz ] quux ];

Since you need to wrap each method call in square brackets, you need to know how many method calls you're going to make. Unless, of course, you're using TextMate. Turns out TextMate will auto-insert the opening square bracket if you forget to insert it. So TextMate will automatically convert this:

[ [ foo bar ] baz ] quux ];

into this:

[ [ [ foo bar ] baz ] quux ];

In other words, TextMate has completely eliminates one of my pet peeves with Objective-C. Awesome.

John Poole is the founder of Primate Labs and lives in Toronto, Ontario with his wife Deborah. You can find John on Twitter or .