Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs, Objective-C, and autocomplete

I recently switched to emacs for my code editing, and it mostly works well.

However, for Objective-C I find myself missing Xcode's autocomplete feature as I have trouble remembering the long function names such as

- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation screen:(NSScreen *)screen;

Is there a way to get Xcode-style autocompletion on emacs?

Also, are there any good packages to help with Cocoa or Objective-C in general that I should have?

like image 848
cobbal Avatar asked Mar 21 '09 04:03

cobbal


1 Answers

I wrote a script to export function definitions in Cocoa SDK as yasnippet snippets: http://github.com/zegal/yasobjc

With the help with ETAGS and auto-complete, the completion experience is very close to XCode. You can have a try.

like image 67
zegal Avatar answered Oct 07 '22 11:10

zegal