XCode Developer API-对象库-对象消失 [英] XCode Developer API - Object Library - Objects Disappearing

查看:326
本文介绍了XCode Developer API-对象库-对象消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode Developer API尚不成熟,需要一些帮助.当首次在Xcode中打开项目时,对象库将显示可用的UIKit对象的完整列表(以及我相信的其他链接框架).但是,当我在项目导航器中的文件与任何文件(.m,.h,.xib等)进行切换时,对象库"列表将更改;大多数对象都丢失了-例如NSButton,NSTableView等.标准对象仍然可见-标签,圆角矩形按钮,文本字段等.

Fairly new to the Xcode Developer API and need a little help. When a project is first opened in Xcode, the Object Library displays the full list of UIKit objects available (and other linked frameworks I believe). However, when I switch files in the project navigator to/from any file (.m, .h, .xib, etc), the Object Library list changes; most of the objects are missing - such as NSButton, NSTableView etc. The standard objects are still visible - Label, Round Rect Button, Text Field, etc.

关闭并重新打开同一项目似乎可以恢复对象库"列表,但是一旦打开其他文件,也会发生相同的问题.

Closing and re-opening the same project appears to restore the Object Library list, but the same issue happens once a different file is opened.

使用Xcode版本4.2.1,内部版本4D502.

帮助!

推荐答案

我想我明白您的描述.当我第一次打开iOS项目时,对象库显示的是对OS X有效但对iOS不有效的对象(如文件菜单项").当我切换到xib文件时,对象库将更新为仅显示对iOS有效的对象.理想情况下,我认为不会发生这种情况,但是由于在源文件位于编辑器中的情况下,您无法使用对象库执行任何操作,因此不会造成任何危害.

I think I see what you are describing. When I first open an iOS project the Object Library is showing objects that are valid for OS X but not iOS (like File Menu Item). When I switch to a xib file the Object Library gets updated to show only the objects that are valid for iOS. Ideally I suppose that wouldn't happen but since you can't do anything with the Object Library while a source file is in the editor no harm is done.

这篇关于XCode Developer API-对象库-对象消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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