Skip to content
/ yasobjc Public
forked from zhaovinc/yasobjc

yasnippet snippets generator for cocoa/iphone SDK

Notifications You must be signed in to change notification settings

roupam/yasobjc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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.

About

yasnippet snippets generator for cocoa/iphone SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%