-
Notifications
You must be signed in to change notification settings - Fork 152
Coding Style
kolinkrewinkel edited this page Jul 29, 2011
·
10 revisions
How we code our stuff.
- (void)selectorWithObj:(NSObject *)object
{
NSObject *otherObject = [[NSObject alloc] initWithData:_dataIvar];
}
(If an ivar is necessary) @interface Object : NSObject { @private NSObject *_object; }
(If a property is necessary)
@property (nonatomic, ..) NSObject *object;
Prepare
@synthesize object = _object;
Prefer underscore prefixed ivar over self.property