Skip to content

Instantly share code, notes, and snippets.

@zorn
Created August 9, 2011 19:59
Show Gist options
  • Save zorn/1135033 to your computer and use it in GitHub Desktop.
Save zorn/1135033 to your computer and use it in GitHub Desktop.
Clickable Bliss Coding Style Guide

Objective-C

http://www.webkit.org/coding/coding-style.html

Category Methods

Always prefix category methods to avoid collision. In the case of category methods that are very specific to the app, use app prefixes like PT_viewBackgroundColor for ProfitTrain, for more generalized code use CB_containsString:. If the code is part of a branded framework then use it's own prefix. We use the underscore as a way to define separation from the namespace and the method name which most people expect to start with a lowercase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment