Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 552 lines (522 sloc) 17.08 kB
61b26e7 adding the macros
Marc Liyanage authored
1 /**
2 Marc Liyanage Xcode text macro specifications
3
4 http://github.com/liyanage/xcode-text-macros/
5 */
6
7 (
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
8
9 /* *********************************************************
10 * Strings
11 * *********************************************************/
12
13 {
14 Identifier = objc.string.format;
15 Name = "NSString With Format";
16 IsMenuItem = YES;
17 BasedOn = objc;
18 CompletionPrefix = sf;
19 TextString = "[NSString stringWithFormat:@\"<#!format!#>\", <#arguments#>]";
20 OnlyAtBOL = NO;
21 },
61b26e7 adding the macros
Marc Liyanage authored
22 {
23 Identifier = objc.stringliteral;
24 BasedOn = objc;
25 IsMenuItem = YES;
26 Name = "String Literal";
7d14fae cheat sheet generator tweaks, more macros.
Marc Liyanage authored
27 TextString = "@\"<#!string!#>\"";
61b26e7 adding the macros
Marc Liyanage authored
28 OnlyAtBOL = NO;
29 },
cac6a2b containers (mutable arrays etc.)
Marc Liyanage authored
30 {
31 Identifier = objc.nsstring;
32 BasedOn = objc;
33 IsMenuItem = YES;
34 CompletionPrefix = "nss";
35 Name = "NSString *";
36 TextString = "NSString *";
37 OnlyAtBOL = NO;
38 },
39
40
41 /* *********************************************************
42 * Containers
43 * *********************************************************/
44
45 {
46 Identifier = objc.array.mutable;
47 Name = "NSMutableArray *";
48 IsMenuItem = YES;
49 BasedOn = objc;
50 CompletionPrefix = nsma;
51 TextString = "NSMutableArray *";
52 OnlyAtBOL = YES;
53 },
54 {
55 Identifier = objc.array.mutable;
56 Name = "NSMutableArray *";
57 IsMenuItem = YES;
58 BasedOn = objc;
59 CompletionPrefix = nsma;
60 TextString = "NSMutableArray *";
61 OnlyAtBOL = NO;
62 },
63
64 {
65 Identifier = objc.array.mutable.array;
66 Name = "NSMutableArray array";
67 IsMenuItem = YES;
68 BasedOn = objc;
69 CompletionPrefix = nsmaa;
70 TextString = "[NSMutableArray array]";
71 OnlyAtBOL = NO;
72 },
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
73
9c91518 Remove semicolons from "if" body.
Marc Liyanage authored
74 {
75 Identifier = objc.dictionary.objectsandkeys;
76 Name = "NSDictionary with Objects and Keys";
77 IsMenuItem = YES;
78 BasedOn = objc;
79 CompletionPrefix = nsdok;
80 TextString = "[NSDictionary dictionaryWithObjectsAndKeys:<#(id)firstObject#>nil]";
81 OnlyAtBOL = NO;
82 },
83
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
84 /* *********************************************************
85 * Properties
86 * *********************************************************/
87
61b26e7 adding the macros
Marc Liyanage authored
88 {
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
89 Identifier = objc.property.declaration;
1a59639 Added @property and @synthesize macros.
Marc Liyanage authored
90 BasedOn = objc;
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
91 IncludeContexts = ( "xcode.lang.objcpp.interface", xcode.lang.objc.interface );
92 },
93 {
94 Identifier = objc.property.declaration.retain;
95 BasedOn = objc.property.declaration;
1a59639 Added @property and @synthesize macros.
Marc Liyanage authored
96 IsMenuItem = YES;
97 Name = "@property Declaration - retain";
98 TextString = "@property (retain) <#!type and name!#>;";
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
99 CompletionPrefix = "@pr";
1a59639 Added @property and @synthesize macros.
Marc Liyanage authored
100 CycleList = (
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
101 objc.property.declaration.retain,
4843635 Added IBOutlet property declarations and methods returning BOOL
Marc Liyanage authored
102 objc.property.declaration.retain.iboutlet,
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
103 objc.property.declaration.assign,
104 objc.property.declaration.copy,
1a59639 Added @property and @synthesize macros.
Marc Liyanage authored
105 );
106 OnlyAtBOL = YES;
107 },
108 {
4843635 Added IBOutlet property declarations and methods returning BOOL
Marc Liyanage authored
109 Identifier = objc.property.declaration.retain.iboutlet;
110 BasedOn = objc.property.declaration;
111 IsMenuItem = YES;
112 Name = "@property Declaration - IBOutlet";
113 TextString = "@property (retain) IBOutlet <#!type and name!#>;";
114 CompletionPrefix = "@pri";
115 OnlyAtBOL = YES;
116 },
117 {
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
118 Identifier = objc.property.declaration.assign;
119 BasedOn = objc.property.declaration;
1a59639 Added @property and @synthesize macros.
Marc Liyanage authored
120 IsMenuItem = YES;
121 Name = "@property Declaration - assign";
122 TextString = "@property (assign) <#!type and name!#>;";
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
123 CompletionPrefix = "@pra";
1a59639 Added @property and @synthesize macros.
Marc Liyanage authored
124 OnlyAtBOL = YES;
125 },
126 {
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
127 Identifier = objc.property.declaration.copy;
128 BasedOn = objc.property.declaration;
1a59639 Added @property and @synthesize macros.
Marc Liyanage authored
129 IsMenuItem = YES;
130 Name = "@property Declaration - copy";
131 TextString = "@property (copy) <#!type and name!#>;";
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
132 CompletionPrefix = "@prc";
1a59639 Added @property and @synthesize macros.
Marc Liyanage authored
133 OnlyAtBOL = YES;
134 },
135 {
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
136 Identifier = objc.property.synthesize;
1a59639 Added @property and @synthesize macros.
Marc Liyanage authored
137 BasedOn = objc;
138 IsMenuItem = YES;
139 Name = "@synthesize Property";
140 TextString = "@synthesize <#!name!#>;";
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
141 CompletionPrefix = "@syn";
1a59639 Added @property and @synthesize macros.
Marc Liyanage authored
142 CycleList = (
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
143 objc.property.synthesize,
144 objc.property.synthesize.ivar,
1a59639 Added @property and @synthesize macros.
Marc Liyanage authored
145 );
146 OnlyAtBOL = YES;
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
147 IncludeContexts = ( "xcode.lang.objc.implementation" );
148 ExcludeContexts = ( "xcode.lang.objc.block" );
1a59639 Added @property and @synthesize macros.
Marc Liyanage authored
149 },
150 {
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
151 Identifier = objc.property.synthesize.ivar;
152 BasedOn = objc.property.synthesize;
1a59639 Added @property and @synthesize macros.
Marc Liyanage authored
153 IsMenuItem = YES;
154 Name = "@synthesize Property, assign ivar";
155 TextString = "@synthesize <#!name!#> = <#ivar#>;";
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
156 CompletionPrefix = "@syni";
1a59639 Added @property and @synthesize macros.
Marc Liyanage authored
157 OnlyAtBOL = YES;
158 },
253359e Add release and nil ivar macro. Change completion prefix for IBAction…
Marc Liyanage authored
159 {
160 Identifier = objc.property.releasenil;
161 Name = "Release and nil ivar";
162 IsMenuItem = YES;
163 BasedOn = objc;
164 CompletionPrefix = rel;
165 OnlyAtBOL = YES;
47e4677 Make "release and nil" a one-liner.
Marc Liyanage authored
166 TextString = "[<#!ivar!#> release], <#!ivar!#> = nil;";
253359e Add release and nil ivar macro. Change completion prefix for IBAction…
Marc Liyanage authored
167 IncludeContexts = ( xcode.lang.objc.implementation );
168 },
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
169
170 /* *********************************************************
171 * NSLog
172 * *********************************************************/
173
1a59639 Added @property and @synthesize macros.
Marc Liyanage authored
174 {
61b26e7 adding the macros
Marc Liyanage authored
175 Identifier = objc.log.0arg;
176 BasedOn = objc;
177 IsMenuItem = YES;
178 Name = "NSLog() Call";
7d14fae cheat sheet generator tweaks, more macros.
Marc Liyanage authored
179 TextString = "NSLog$(PreFunctionArgsSpacing)($(InFunctionArgsSpacing)@\"<#!message!#>\"$(InFunctionArgsSpacing));";
61b26e7 adding the macros
Marc Liyanage authored
180 CompletionPrefix = log;
181 OnlyAtBOL = YES;
182 IncludeContexts = ( "xcode.lang.objc.block" );
183 CycleList = (
184 objc.log.0arg,
185 objc.log.1arg,
186 );
187 },
188 {
189 Identifier = objc.log.1arg;
190 BasedOn = objc;
191 IsMenuItem = YES;
192 Name = "NSLog() Call 1 Argument";
7d14fae cheat sheet generator tweaks, more macros.
Marc Liyanage authored
193 TextString = "NSLog$(PreFunctionArgsSpacing)($(InFunctionArgsSpacing)@\"<#message#> %@\", <#!argument!#>$(InFunctionArgsSpacing));";
61b26e7 adding the macros
Marc Liyanage authored
194 CompletionPrefix = log1;
195 OnlyAtBOL = YES;
196 IncludeContexts = ( "xcode.lang.objc.block" );
197 },
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
198
199 /* *********************************************************
200 * Control Statements
201 * *********************************************************/
202
61b26e7 adding the macros
Marc Liyanage authored
203 {
204 Identifier = c.block.if.singlestatement;
205 BasedOn = c.block.if;
206 Name = "If Block Single Statement";
207 IsMenuItem = YES;
208 OnlyAtBOL = YES;
7abb053 better completion prefix for 1-line if
Marc Liyanage authored
209 CompletionPrefix = iff;
61b26e7 adding the macros
Marc Liyanage authored
210 CycleList = (
211 c.block.if.singlestatement,
212 c.block.if,
213 c.block.ifelse,
214 );
9c91518 Remove semicolons from "if" body.
Marc Liyanage authored
215 TextString = "$(Statement)\n\t<#!statement!#>\n";
216 },
217 {
218 Identifier = c.block.if;
219 BasedOn = c.block;
220 Command = "if";
221 Expressions = "<#condition#>";
222 Name = "If Block";
223 IsMenuItem = YES;
224 OnlyAtBOL = YES;
225 CompletionPrefix = if;
226 CycleList = (
227 c.block.if,
228 c.block.if.singlestatement,
229 c.block.ifelse,
230 );
231 TextString = "$(Statement) {\n\t<#!statements!#>\n}\n";
61b26e7 adding the macros
Marc Liyanage authored
232 },
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
233 /* *********************************************************
84cd64b Added libdispatch macros. Added TODO and FIXME marker macros. Upated …
Marc Liyanage authored
234 * Markers
235 * *********************************************************/
236
237 {
238 Identifier = objc.marker;
239 BasedOn = objc;
240 IsMenuItem = NO;
241 IncludeContexts = ( xcode.lang.objc.implementation, xcode.lang.objcpp.interface, xcode.lang.objc.interface, xcode.lang.objcpp.protocol );
242 TextString = "// $(MarkerName): <#!comment!#>";
243 OnlyAtBOL = NO;
244 },
245 {
246 Identifier = objc.marker.todo;
247 Name = "Mark TODO";
248 BasedOn = objc.marker;
249 MarkerName = "TODO";
250 CompletionPrefix = todo;
251 },
252 {
253 Identifier = objc.marker.todo.bol;
254 Name = "Mark TODO";
255 BasedOn = objc.marker.todo;
256 CompletionPrefix = todo;
257 OnlyAtBOL = YES;
258 IsMenuItem = YES;
259 },
260 {
261 Identifier = objc.marker.fixme;
262 Name = "Mark FIXME";
263 BasedOn = objc.marker;
264 MarkerName = "FIXME";
265 CompletionPrefix = fix;
266 },
267 {
268 Identifier = objc.marker.fixme.bol;
269 Name = "Mark FIXME";
270 BasedOn = objc.marker.fixme;
271 CompletionPrefix = fix;
272 OnlyAtBOL = YES;
273 IsMenuItem = YES;
274 },
275 {
276 Identifier = objc.marker.bang;
277 Name = "Mark !!!";
278 BasedOn = objc.marker;
279 MarkerName = "!!!";
280 CompletionPrefix = "fix2";
281 },
282 {
283 Identifier = objc.marker.bang.bol;
284 Name = "Mark !!!";
285 BasedOn = objc.marker.bang;
286 CompletionPrefix = "fix2";
287 OnlyAtBOL = YES;
288 IsMenuItem = YES;
289 },
290
291 /* *********************************************************
f7fd235 Added block literals with 3 variants.
Marc Liyanage authored
292 * Grand Central Dispatch / Blocks
84cd64b Added libdispatch macros. Added TODO and FIXME marker macros. Upated …
Marc Liyanage authored
293 * *********************************************************/
294
295 {
296 Name = "dispatch_async() to Global Queue";
297 Identifier = objc.gcd.asyncglobal;
298 IsMenuItem = YES;
299 BasedOn = objc;
300 CompletionPrefix = "dia";
301 OnlyAtBOL = YES;
302 TextString = "dispatch_async(dispatch_get_global_queue(0, 0), ^{\n\t<#!statements!#>\n});";
f7fd235 Added block literals with 3 variants.
Marc Liyanage authored
303 CycleList = (
304 objc.gcd.asyncglobal,
305 objc.gcd.asyncmain,
306 objc.gcd.syncmain,
307 );
84cd64b Added libdispatch macros. Added TODO and FIXME marker macros. Upated …
Marc Liyanage authored
308 },
309 {
310 Name = "dispatch_async() to Main Queue";
311 Identifier = objc.gcd.asyncmain;
312 IsMenuItem = YES;
313 BasedOn = objc;
314 CompletionPrefix = "diam";
315 OnlyAtBOL = YES;
316 TextString = "dispatch_async(dispatch_get_main_queue(), ^{\n\t<#!statements!#>\n});";
317 },
318 {
319 Name = "dispatch_sync() to Main Queue";
320 Identifier = objc.gcd.syncmain;
321 IsMenuItem = YES;
322 BasedOn = objc;
323 CompletionPrefix = "dis";
324 OnlyAtBOL = YES;
325 TextString = "dispatch_sync(dispatch_get_main_queue(), ^{\n\t<#!statements!#>\n});";
326 },
f7fd235 Added block literals with 3 variants.
Marc Liyanage authored
327 {
328 Name = "Block Literal";
329 Identifier = objc.gcd.block;
330 IsMenuItem = YES;
331 BasedOn = objc;
332 CompletionPrefix = "bl";
333 OnlyAtBOL = NO;
334 TextString = "^$(ArgumentList){\n\t<#!statements!#>\n}";
335 CycleList = (
336 objc.gcd.block,
337 objc.gcd.block.args,
338 objc.gcd.block.comparator,
339 );
340 },
341 {
342 Name = "Block Literal - With Arguments";
343 Identifier = objc.gcd.block.args;
344 IsMenuItem = YES;
345 BasedOn = objc.gcd.block;
346 CompletionPrefix = "bla";
347 OnlyAtBOL = NO;
348 ArgumentList = "(<#arguments#>) ";
349 },
350 {
351 Name = "Block Literal - Comparator";
352 Identifier = objc.gcd.block.comparator;
353 IsMenuItem = YES;
354 BasedOn = objc.gcd.block;
355 CompletionPrefix = "blc";
356 OnlyAtBOL = NO;
357 ArgumentList = "(id obj1, id obj2) ";
358 },
84cd64b Added libdispatch macros. Added TODO and FIXME marker macros. Upated …
Marc Liyanage authored
359
360 /* *********************************************************
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
361 * Methods
362 * *********************************************************/
363
7d14fae cheat sheet generator tweaks, more macros.
Marc Liyanage authored
364 {
365 Identifier = objc.method;
366 IsMenuItem = NO;
367 BasedOn = objc;
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
368 OnlyAtBOL = YES;
7864022 readme additions regarding context lists
Marc Liyanage authored
369 TextString = "$(Declaration)\n{\n\t<#!statements!#>\n}";
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
370 ExcludeContexts = ( xcode.lang.objc.block );
a72dead add IBAction method, other method cleanups
Marc Liyanage authored
371 },
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
372
5e857cd method cleanup
Marc Liyanage authored
373 {
374 Identifier = objc.method.return;
375 Name = "Method Definition - Return Value no Parameters";
376 IsMenuItem = YES;
377 BasedOn = objc.method;
378 Declaration = "- (<#return type#>)<#method name#>";
379 CompletionPrefix = me;
7d14fae cheat sheet generator tweaks, more macros.
Marc Liyanage authored
380 CycleList = (
b716426 fix typo
Marc Liyanage authored
381 objc.method.return,
7d14fae cheat sheet generator tweaks, more macros.
Marc Liyanage authored
382 objc.method.void,
4843635 Added IBOutlet property declarations and methods returning BOOL
Marc Liyanage authored
383 objc.method.bool,
a72dead add IBAction method, other method cleanups
Marc Liyanage authored
384 objc.method.ibaction,
7d14fae cheat sheet generator tweaks, more macros.
Marc Liyanage authored
385 objc.method.generic,
386 objc.method.nsstring,
387 );
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
388 OnlyAtBOL = YES;
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
389 IncludeContexts = ( xcode.lang.objc.implementation );
390 },
391 {
392 Identifier = objc.method.return.declaration;
393 Name = "Method Declaration - Return Value no Parameters";
394 IsMenuItem = YES;
395 BasedOn = objc.method.return;
396 CompletionPrefix = "me";
397 TextString = "$(Declaration);";
398 CycleList = (
399 objc.method.return.declaration,
400 objc.method.void.declaration,
4843635 Added IBOutlet property declarations and methods returning BOOL
Marc Liyanage authored
401 objc.method.bool.declaration,
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
402 objc.method.ibaction.declaration,
403 objc.method.generic.declaration,
404 objc.method.nsstring.declaration,
405 );
406 OnlyAtBOL = YES;
407 IncludeContexts = ( xcode.lang.objcpp.interface, xcode.lang.objc.interface, xcode.lang.objcpp.protocol );
7d14fae cheat sheet generator tweaks, more macros.
Marc Liyanage authored
408 },
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
409
7d14fae cheat sheet generator tweaks, more macros.
Marc Liyanage authored
410 {
a72dead add IBAction method, other method cleanups
Marc Liyanage authored
411 Identifier = objc.method.void;
4843635 Added IBOutlet property declarations and methods returning BOOL
Marc Liyanage authored
412 Name = "Method Definition - void";
a72dead add IBAction method, other method cleanups
Marc Liyanage authored
413 IsMenuItem = YES;
414 BasedOn = objc.method;
415 Declaration = "- (void)<#method name#>";
416 CompletionPrefix = mev;
417 OnlyAtBOL = YES;
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
418 IncludeContexts = ( xcode.lang.objc.implementation );
a72dead add IBAction method, other method cleanups
Marc Liyanage authored
419 },
420 {
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
421 Identifier = objc.method.void.declaration;
422 Name = "Method Declaration - void no Parameters";
423 IsMenuItem = YES;
424 BasedOn = objc.method.void;
425 CompletionPrefix = mev;
426 TextString = "$(Declaration);";
427 OnlyAtBOL = YES;
428 IncludeContexts = ( xcode.lang.objcpp.interface, xcode.lang.objc.interface, xcode.lang.objcpp.protocol );
429 },
4843635 Added IBOutlet property declarations and methods returning BOOL
Marc Liyanage authored
430 {
431 Identifier = objc.method.bool;
432 Name = "Method Definition - BOOL";
433 IsMenuItem = YES;
434 BasedOn = objc.method;
435 Declaration = "- (BOOL)<#method name#>";
436 CompletionPrefix = meb;
437 OnlyAtBOL = YES;
438 IncludeContexts = ( xcode.lang.objc.implementation );
439 },
440 {
441 Identifier = objc.method.bool.declaration;
442 Name = "Method Declaration - BOOL";
443 IsMenuItem = YES;
444 BasedOn = objc.method.bool;
445 CompletionPrefix = meb;
446 TextString = "$(Declaration);";
447 OnlyAtBOL = YES;
448 IncludeContexts = ( xcode.lang.objcpp.interface, xcode.lang.objc.interface, xcode.lang.objcpp.protocol );
449 },
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
450
451 {
a72dead add IBAction method, other method cleanups
Marc Liyanage authored
452 Identifier = objc.method.ibaction;
453 Name = "Method Definition - IBAction";
454 IsMenuItem = YES;
455 BasedOn = objc.method;
456 Declaration = "- (IBAction)<#method name#>:(id)sender";
253359e Add release and nil ivar macro. Change completion prefix for IBAction…
Marc Liyanage authored
457 CompletionPrefix = mei;
a72dead add IBAction method, other method cleanups
Marc Liyanage authored
458 OnlyAtBOL = YES;
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
459 IncludeContexts = ( xcode.lang.objc.implementation );
460 },
461 {
462 Identifier = objc.method.ibaction.declaration;
463 Name = "Method Declaration - IBAction";
464 IsMenuItem = YES;
465 BasedOn = objc.method.ibaction;
253359e Add release and nil ivar macro. Change completion prefix for IBAction…
Marc Liyanage authored
466 CompletionPrefix = mei;
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
467 TextString = "$(Declaration);";
468 OnlyAtBOL = YES;
469 IncludeContexts = ( xcode.lang.objcpp.interface, xcode.lang.objc.interface, xcode.lang.objcpp.protocol );
a72dead add IBAction method, other method cleanups
Marc Liyanage authored
470 },
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
471
a72dead add IBAction method, other method cleanups
Marc Liyanage authored
472 {
7d14fae cheat sheet generator tweaks, more macros.
Marc Liyanage authored
473 Identifier = objc.method.generic;
474 Name = "Method Definition - Generic Method";
475 IsMenuItem = YES;
476 BasedOn = objc.method;
477 Declaration = "- (<#return type#>)<#method name#>:(<#parameter type 1#>)<#parameter name 1#>";
5e857cd method cleanup
Marc Liyanage authored
478 CompletionPrefix = meg;
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
479 OnlyAtBOL = YES;
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
480 IncludeContexts = ( xcode.lang.objc.implementation );
481 },
482 {
483 Identifier = objc.method.generic.declaration;
484 Name = "Method Declaration - Generic Method";
485 IsMenuItem = YES;
486 BasedOn = objc.method.generic;
487 CompletionPrefix = meg;
488 TextString = "$(Declaration);";
489 OnlyAtBOL = YES;
490 IncludeContexts = ( xcode.lang.objcpp.interface, xcode.lang.objc.interface, xcode.lang.objcpp.protocol );
7d14fae cheat sheet generator tweaks, more macros.
Marc Liyanage authored
491 },
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
492
7d14fae cheat sheet generator tweaks, more macros.
Marc Liyanage authored
493 {
494 Identifier = objc.method.nsstring;
495 Name = "Method Definition - NSString Return Value";
496 IsMenuItem = YES;
497 BasedOn = objc.method;
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
498 CompletionPrefix = mes;
7d14fae cheat sheet generator tweaks, more macros.
Marc Liyanage authored
499 Declaration = "- (NSString *)<#method name#>";
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
500 OnlyAtBOL = YES;
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
501 IncludeContexts = ( xcode.lang.objc.implementation );
7d14fae cheat sheet generator tweaks, more macros.
Marc Liyanage authored
502 },
503 {
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
504 Identifier = objc.method.nsstring.declaration;
505 Name = "Method Declaration - NSString Return Value";
506 IsMenuItem = YES;
507 BasedOn = objc.method.nsstring;
508 CompletionPrefix = mes;
509 TextString = "$(Declaration);";
510 OnlyAtBOL = YES;
511 IncludeContexts = ( xcode.lang.objcpp.interface, xcode.lang.objc.interface, xcode.lang.objcpp.protocol );
512 },
513
514 {
7d14fae cheat sheet generator tweaks, more macros.
Marc Liyanage authored
515 Identifier = objc.method.parameter;
516 Name = "Method Parameter";
517 IsMenuItem = YES;
518 BasedOn = objc.method;
519 TextString = "<#description#>:(<#type#>)<#name#>";
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
520 CompletionPrefix = para;
253359e Add release and nil ivar macro. Change completion prefix for IBAction…
Marc Liyanage authored
521 OnlyAtBOL = NO;
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
522 IncludeContexts = ( xcode.lang.objc.implementation, xcode.lang.objcpp.interface, xcode.lang.objc.interface, xcode.lang.objcpp.protocol );
84cd64b Added libdispatch macros. Added TODO and FIXME marker macros. Upated …
Marc Liyanage authored
523 ExcludeContexts = ( );
524 },
525
526 /* the built-in bracket expression macro has a space before the closing bracket that I don't like */
527 {
528 Identifier = objc.bracket;
529 BasedOn = objc;
530 IsMenuItem = YES;
531 Name = "Bracket Expression";
532 TextString = "[<#!expression!#>]";
54b0050 Tuned include and exclude context values so macros only show up where…
Marc Liyanage authored
533 },
4843635 Added IBOutlet property declarations and methods returning BOOL
Marc Liyanage authored
534 {
535 Identifier = objc.selector;
536 BasedOn = objc;
537 IsMenuItem = YES;
538 Name = "@selector";
539 CompletionPrefix = sel;
540 TextString = "@selector(<#!selector!#>)";
541 },
4236b36 context sensitive method macros (definition/declaration variants for …
Marc Liyanage authored
542
639fa5f @rwilcox added macro for NSError creation template
rwilcox authored
543 {
544 Identifier = objc.nserror.creation;
545 Name = "NSError: creation";
546 IsMenuItem = YES;
547 BasedOn = objc;
548 TextString = "*<#theErr#> = [NSError errorWithDomain:<#theDomain#>\n\tcode:<#code#>\n\tuserInfo:[NSDictionary dictionaryWithObjectsAndKeys:\n\t\tNSLocalizedDescriptionKey, NSLocalizedString(@\"<#description here#>\", @\"\"),\n\t\tnil]];";
549 },
61b26e7 adding the macros
Marc Liyanage authored
550 )
551
Something went wrong with that request. Please try again.