Objective-C Code Style

Reference Code Standard

Follow Google’s Objective-C Style Guide , it will first direct you to read Apple’s Coding Guidelines and then Google’s C++ Style Guide , don’t skip these as they complement the Style Guide in a great way.

Exceptions to the Standard

When sharing code with C++ that uses Google’s style, use 80 character limit per line, otherwise use 100; limiting characters per line helps with code reviews.

Implementing the Standard

Be consistent with the codebase and if source code doesn’t follow a particular style start introducing the style incrementally.

Businesses Using Language

BusinessCodebaseNotes
SketchUpWe write our code using Google’s C++ Style Guide, this is a great opportunity to use the style used by the broader Objective-C community.