Objective C - Code Conventions
- Protocols and interface definitions go in .h
files (
@protocol ... @endand@interface ... @end) - Implementations (
@implementation ... @end) go in .m files -
Factory method pattern - e.g., a Cartesian
Pointclass might have the following methods:+point- returns a new point initialized to (0,0)+pointX:Y:- returns a new point initialized to (X,Y)-init- initializes a point to (0,0)-initX:Y:- initializes a point to (X,Y)