public
Description: TextMate bundle for RubyCocoa
Homepage:
Clone URL: git://github.com/drnic/rubycocoa-tmbundle.git
lachie (author)
Wed Jul 02 05:50:14 -0700 2008
commit  fa8ebfb6a5f98d6bec843e9e98f903589b7095cf
tree    88bf64f0356ce1075539cf442c1538007072379f
parent  ff0c6c57b809140db668d3d72b9b49589470ba66
name age message
directory Commands/ Loading commit data...
file README.markdown
file Rakefile Sat Jun 07 06:48:36 -0700 2008 some tests for automatically determining .new o... [drnic]
directory Snippets/
directory Support/
directory Syntaxes/ Sat Jun 07 05:36:45 -0700 2008 initial import of syntax + 'def init' [drnic]
file info.plist
README.markdown

RubyCocoa TextMate bundle

Installation

To install via Git:

    cd ~/"Library/Application Support/TextMate/Bundles/"
    git clone git://github.com/drnic/rubycocoa-tmbundle.git "RubyCocoa.tmbundle"
    osascript -e 'tell app "TextMate" to reload bundles'

Source can be viewed or forked via GitHub: http://github.com/drnic/rubycocoa-tmbundle/tree/master

Features

  • Cannot remember whether to use NSRange.new or NSRange.init.alloc? Let the bundle help. Type "NSRange." and press tab and it will attempt to guess for you.
  • 'clan' expands into a class definition for the current file name, as an OSX::NSObject subclass (the tab completion comes from: class NSObject)

Cut-n-pasted

- (void)bind:(NSString *)binding toObject:(id)observableController withKeyPath:(NSString *)keyPath options:(NSDictionary *)options

from the doco?

Select and do cmd-M to convert into a RubyCocoa method:

def bind_toObject_withKeyPath_options(binding,observableController,keyPath,options)
end

Cmd-Shift-M converts it into a RubyCocoa-style call:

obj.bind_toObject_withKeyPath_options(binding,observableController,keyPath,options)

Maintainer

Dr Nic Williams, drnicwilliams@gmail.com, http://drnicwilliams.com