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
_______________________________________________
textmate-dev mailing list
[email protected]
http://lists.macromates.com/listinfo/textmate-dev

Reply via email to