[SVN] r11089 (Objective-C)
Allan Odgaard
mailinglist at textmate.org
Thu Jan 8 02:47:40 UTC 2009
Objective-C now has 3 (reworked) snippets for generating a class:
cl⇥ — insert @interface + @implementation
cli⇥ — insert only @implementation
clh⇥ — insert only @interface (h is for ‘header’)
Similarly there are now 3 snippets for categories where ‘cl’ is instead ‘cat’.
The category snippets take class and category name from the file name (using first and second word) so naming a file “NSString Searching.mm” will generate:
@interface NSString (Searching)
⋮
The Objective-C class snippet will clash with the C++ class snippet when used outside @implementation…@end in Objective-C++ mode (i.e. a disambiguation menu will appear).
Changed:
U trunk/Bundles/Objective-C.tmbundle/Snippets/020 Class (objc).plist
U trunk/Bundles/Objective-C.tmbundle/Snippets/Category (cat).plist
A trunk/Bundles/Objective-C.tmbundle/Snippets/Category Implementation.tmSnippet
U trunk/Bundles/Objective-C.tmbundle/Snippets/Category Interface Only (cati).plist
A trunk/Bundles/Objective-C.tmbundle/Snippets/Class Implementation.tmSnippet
U trunk/Bundles/Objective-C.tmbundle/Snippets/Class Interface Only (classi).plist
U trunk/Bundles/Objective-C.tmbundle/info.plist
More information about the textmate-dev
mailing list