[SVN] r2610 (Objective-C)

Chris Thomas chris at cjack.com
Fri Jan 27 03:42:29 UTC 2006


Make the Objective-C snippets consistent. You're welcome to argue with my style choices if you like. My concern is consistency.

• use one curlybracket alignment style.
• always add a space between +/- and the return type and the method name.
• always add a space between NSObject and "*".
• all accessors should have specializations for @interface scope.

Also:

• implicit int is deprecated in C99.
• Add snippet for [NSString stringWithFormat] (format).
• Add snippet for [NSGraphicsContext save/restoreGraphicsState] (gsave).

Changed:
U   trunk/Bundles/Objective-C.tmbundle/Snippets/030 NSArray (array).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/040 NSDictionary (dict).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/050 Method (m).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/060 SubMethod (sm).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/090 Object Accessors (objacc).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/Class Method (M).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/Class Method Interface (M).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/Delegate Accessors (delacc).plist
A   trunk/Bundles/Objective-C.tmbundle/Snippets/Delegate Accessors Interface (delacc).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/Delegate Responds to Selector.plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/IBOutlet (ibo).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/LoD array (arracc).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/LoD array interface (arracc).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/Method Interface (m).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/NSRunAlertPanel (alert).plist
A   trunk/Bundles/Objective-C.tmbundle/Snippets/NSString stringWithFormat (format).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/Object Accessors Interface (objacc).plist
A   trunk/Bundles/Objective-C.tmbundle/Snippets/Save and Restore Graphics Context (gsave).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/Scalar Accessors (acc).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/Scalar Accessors Interface (acc).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/String Accessors (stracc).plist
A   trunk/Bundles/Objective-C.tmbundle/Snippets/String Accessors Interface (stracc).plist
U   trunk/Bundles/Objective-C.tmbundle/info.plist



More information about the textmate-dev mailing list