yasnippet snippets generator for cocoa/iphone SDK
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 5 commits ahead of zegal:master.
Latest commit caea211 Nov 13, 2013 @roupam Merge pull request #1 from ayman/master
Simple Update for XCode5
Permalink
Failed to load latest commit information.
README.md Moving into obj-c area for snippet dir in docs. Nov 13, 2013
yasobjc.rb

README.md

Yasobjc is a tool for yasnippet snippet generation for objective-c library (cocoa/iphone SDK).

Basic Usage: yasobjc.rb -o DIR file1 file2 ...

-o DIR: The output directory for the snippets generated

Example:

find /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/System/Library/Frameworks -name "*.h" | xargs yasobjc.rb -o ~/.emacs.d/yasnippet/objc-mode

or in XCode 5:

find /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks -name "*.h" | xargs ./yasobjc.rb -o ~/.emacs.d/yasnippet/objc-mode

which will generate all snippets into standard yasnippet directory.

One snippet is generated per objective-c function, and the snippets are categoried by header file name. For example, all functions NSString.h will be in NSString category.

It's recommended to use ETAGS plus auto-complete library for better completion experience.