自动完成在X code不按预期工作(使用其他的IDE) [英] Autocomplete in XCode not working as expected (from using other IDE's)

查看:103
本文介绍了自动完成在X code不按预期工作(使用其他的IDE)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先让我说,我对Objective-C和X code作为我是从一个Flash Builder(IDE)/ AS3背景的绝对新手状态。我最近开始学习Objective-C和利用X code。

First off let me state that I am an absolute newbie regarding Objective-C and XCode as I'm coming from a Flash Builder (IDE) / AS3 background. I have recently started learning Objective-C and using XCode.

我现在正在写我的第一个程序,并注意到,在X code中的自动完成功能不工作,我希望它。它向我展示各种数值看似无关,我使用的类的类型。

I'm now writing my first program and notice that the autocomplete function in XCode is not working as I would expect it. It is showing me all kinds of values seemingly unrelated to the type of Class I'm using.

如果我宣布:

NSFileManager *manager;

那么,如果我型
        经理= [的NSFileManager 并键入命令+空格这里我想到 defaultManager 是一个建议。并建议只应的NSFileManager类的方法和属性。这是我都习惯了在Flash Builder。

then if I type manager = [NSFileManager and type command+space here I expect defaultManager to be one of the suggestions. And the suggestions should only be methods and properties of the NSFileManager class. This is how I was used to it in Flash Builder.

这是在X code进行错误,错误配置的一些或者只是没有X code被认为能工作吗?

Is this a bug in XCode, some misconfiguration or just not as XCode is supposed to work?

推荐答案

我在一个项目的中间升级X $ C $的C 4 5,同时,发现我在亚组(等同于子文件夹在项目中创建的新文件)没有自动完成,而新文件中的顶层文件夹没有自动完成。我通过设置固定的:

I upgraded Xcode 4 to 5 whilst in the middle of a project and found any new files I created in subgroups (equating to subfolders in the project) didn't autocomplete whilst new files in the top folder did autocomplete. I fixed this by setting:

构建设置==>搜索路径==>总是搜索用户路径。所有文件现在自动完成的。

Build Settings ==> Search Paths ==> Always Search User Paths to Yes. All files now autocomplete.

这篇关于自动完成在X code不按预期工作(使用其他的IDE)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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