未找到方法定义... Xcode 自动存根? [英] Method Definition Not Found... automatic stub with Xcode?

查看:37
本文介绍了未找到方法定义... Xcode 自动存根?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在问之前我不想放弃,因为这是任何 Java/.Net IDE 中的基本功能.编译器告诉我:

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

但是点击、右键点击、祈祷和谷歌搜索并没有让我自动创建一个方法存根.Xcode 能否为我创建一个方法存根并将我带到那里?

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")?

我认为 option-escape 基本上为我解决了这个问题,但事实并非如此.它似乎不知道我的类实现的所有(任何?)接口.

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.

推荐答案

OP(我)所谈论的是 Java 中的接口,其中接口是隐式的.但是,Xcode 中同样的情况是在任何接口中都没有定义任何方法.

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 处理这种情况,Xcode 不处理(除非有人回答这个问题,但它已经存在一段时间了):

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

后来:人们已经回答了这个问题,但 Xcode 仍然没有这样做.

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

这篇关于未找到方法定义... Xcode 自动存根?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆