Objective-C Style

Just posted a new two-part tutorial at Cocoa Dev Central: Cocoa Style for Objective-C.

Although the total length is less than that of both the Bindings and ANSI C tutorials (which are both one long document), I wasn't sure everyone would be up for a 15-page document on style. So part 1 is basically the essentials, and part 2 cover details that you won't need in your first app, but will come up eventually.

The inspiration for this was I kept seeing a lot of really ugly-looking code on mailing lists. In a way, this is good because it means that are people coming to Cocoa for the first time. That said, there are a lot of things that are okay in C, C++ or Java that just don't make sense in Cocoa/Objective-C.

Unlike previous articles, I used TextMate to put this one together. I initially tried it out because it seems to be the first genuinely fresh take on text editing in a while.

The final verdict is that I will be buying a license, and I'm currently using it almost at the exclusivity of BBEdit. I'll go into more details about why that is in another post. This shouldn't been seen as a swipe at BBEdit as it is that TextMate is quite good at 1.0.
Design Element
Objective-C Style
Posted Oct 26, 2004 — 1 comments below




 

Justin Williams — Oct 27, 04 1

I was wondering where fresh content was! Excellent! :-)




 

Comments Temporarily Disabled

I had to temporarily disable comments due to spam. I'll re-enable them soon.





Copyright © Scott Stevenson 2004-2015