Search code examples
objective-cxcodecode-completion

Method Definition Not Found... automatic stub with Xcode?


I don't want to give up before asking, because this is basic functionality in any Java/.Net IDE. The compiler tells me:

Incomplete implementation of class...
Method definition for '-someMethod:' not found

but clicking, right-clicking, praying and Google searching have not gotten me to automatically create a method stub from this. Can Xcode create a method stub for me and take me there?

If not, why might that be (aside from "real programmers enjoy typing")?

Edit: I thought that option-escape basically solved this for me, but it does not. It doesn't seem to be aware of all (any?) of the interfaces my class implements.


Solution

  • What the OP (me) is talking about is in Java, where the interface is implicit. However, the case that is the same in Xcode is one where there is NO method yet defined in any interface.

    AppCode handles this case, Xcode does not (unless somebody answers this question, but it's been here for a while):

    AppCode popover showing method creation

    Later: People have answered the question, but Xcode still doesn't do this.