Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Cocoa method completions in Sublime Text 2

I've been playing with Sublime Text 2 the last few days and was wondering if anyone out there has had any success getting Cocoa method completions working yet? Is there a plugin (or in-progress project to create one) out there?

Any general comments on using Objective-C in Chocolat or Sublime Text 2 would also be welcome.

like image 533
Kevin Avatar asked Dec 04 '22 07:12

Kevin


2 Answers

There is an in-progress Sublime Text package that connects to clang to get autocomplete data called SublimeClang I've not managed to successfully get it to work totally with Cocoa/UIKit Dev, but here's a screenshot

Screenshot ofSublime Clang

and my options, that are a start

like image 123
orta Avatar answered Dec 15 '22 23:12

orta


In MacVim I use a plugin called Cocoa.vim which haves useful python scripts that generates a classes and methods files for autocompletion. I didn't try so much with ST2, but may be is posible to create a sublime-package or sublime-completions file with all this data.

For the moment, I only create a sublime-completions file with some snippets. If I find a way to make this work, I will tell you.

like image 33
jonarrien Avatar answered Dec 15 '22 23:12

jonarrien