All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
3 #import <${1:Cocoa/Cocoa.h}>${2}
6 #import "${1:`Filename()`.h}"${2}
9 @selector(${1:method}:)${3}
15 ${1:NSObject} *${2:foo} = [${3:$1 alloc}]${4};${5}
18 NSLog(@"${1:%@}"${2});${3}
21 @interface ${1:`Filename('', 'someClass')`} : ${2:NSObject}
31 @interface ${1:`Filename('', 'someClass')`} : ${2:NSObject}
36 # Class Implementation
38 @implementation ${1:`Filename('', 'someClass')`}
48 if (self = [super init]) {
53 IBOutlet ${1:NSSomeClass} *${2:$1};${3}
56 @interface ${1:NSObject} (${2:Category})
59 @implementation $1 ($2)
64 @interface ${1:NSObject} (${2:Category})
69 NSMutableArray *${1:array} = [NSMutable array];${2}
72 NSMutableDictionary *${1:dict} = [NSMutableDictionary dictionary];${2}
75 NSBezierPath *${1:path} = [NSBezierPath bezierPath];${2}
78 - (${1:id})${2:method}
84 - (${1:id})${2:method};${3}
85 # IBAction declaration
87 - (IBAction)${1:method}:(${2:id})sender;${3}
90 - (IBAction)${1:method}:(${2:id})sender
102 + (${1:id})${2:method}
106 # Sub-method (Call super)
108 - (${1:id})${2:method}
117 [[NSUserDefaults standardUserDefaults] registerDefaults:[NSDictionary dictionaryWIthObjectsAndKeys:
118 ${1}@"value", @"key",
121 # Accessor Methods For:
124 - (${1:id})${2:thing}
129 - (void)set$2:($1)${3:new$2}
135 # for (object in array)
137 for (${1:Class} *${2:some$1} in ${3:array}) {
141 unsigned int ${1:object}Count = [${2:array} count];
143 for (unsigned int index = 0; index < $1Count; index++) {
144 ${3:id} $1 = [$2 $1AtIndex:index];
148 # @property (Objective-C 2.0)
150 @property (${1:retain}) ${2:NSSomeClass} ${3:*$2};${4}
151 # @synthesize (Objective-C 2.0)
153 @synthesize ${1:property};${2}
156 [[${1:foo} alloc] init${2}];${3}
159 [${1:foo} retain];${2}
166 [${1:foo} autorelease];
169 NSAutoreleasePool *${1:pool} = [[NSAutoreleasePool alloc] init];
174 NSException *${1:badness};
175 $1 = [NSException exceptionWithName:@"${2:$1Name}"
180 #pragma mark ${1:foo}
184 [[NSColor ${1:blackColor}] set];