Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an Xcode version of "Override/Implement Method"?

This is one of my favorite eclipse features. Does it exist in Xcode? I'm getting tired of cutting and pasting from my header files in to my implementations.

like image 468
morgancodes Avatar asked Feb 08 '10 16:02

morgancodes


1 Answers

Just type "dash" then "space" and start typing the method name that you want to override. Now push Esc. Example:

- tab 

will prompt your to pick a method that overrides any of the TableViewDatasource / Delegate methods. Hit Return and it will automatically provide the return type too...

Here's a pic of what it looks like and notice that I did not provide the return type myself: enter image description here

Cheers...

like image 148
nicktmro Avatar answered Sep 22 '22 22:09

nicktmro