Xcode 4 和 BWToolKit

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5368878/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:34:41  来源:igfitidea点击:

Xcode 4 and BWToolKit

objective-cxcodecocoaxcode4bwtoolkit

提问by TheAmateurProgrammer

Can we use BWToolKit or any other IB plug-ins in Xcode 4?

我们可以在 Xcode 4 中使用 BWToolKit 或任何其他 IB 插件吗?

My old project uses the BWToolKit and now I can't open it without Interface Builder.

我的旧项目使用 BWToolKit,现在没有 Interface Builder 就无法打开它。

采纳答案by Regexident

Note (added Oct 26, 2011): This answer is somewhat outdated now. See comments.

注意(2011 年 10 月 26 日添加):这个答案现在有些过时了。看评论。

Xcode 4 (as of time of this writing) does not support IBPlugins at all.
You'll need to install Xcode 3 and its Interface Builder to edit nibs with IBPlugins.
(Be careful installing Xcode3 though, as it might overwrite your Xcode4 unwantedly)

Xcode 4(截至撰写本文时)根本不支持 IBPlugins。
您需要安装 Xcode 3 及其 Interface Builder 才能使用 IBPlugins 编辑笔尖。
(不过请小心安装 Xcode3,因为它可能会不必要地覆盖您的 Xcode4)

So in short: use Xcode3's IB for editing IBPlugin-infected nibs and Xcode4 for al the rest.

简而言之:使用 Xcode3 的 IB 编辑受 IBPlugin 感染的笔尖,使用 Xcode4 编辑其余的笔尖。

To my knowledge there has not been a public announcement/statement gegarding IBPlugins and whether to still stick to them, or not. ast time I checked (day after Xcode4's release) documentation on IBPlugin still existed and I couldn't find any mark on deprecation (or strangely enough not even Xcode4 incompatibilities) either.

据我所知,还没有关于 IBPlugins 以及是否仍然坚持使用它们的公开公告/声明。上次我检查(Xcode4 发布后的第二天)关于 IBPlugin 的文档仍然存在,我也找不到任何弃用标记(或者奇怪的是,甚至没有 Xcode4 不兼容)。

For more info, let me quote from Martin Pilkington's great Xcode4 review:

有关更多信息,让我引用 Martin Pilkington 对 Xcode4 的精彩评论:

Loss of IBPlugins:
For all the cool new hotness in Xcode 4, there is one big gaping hole in its functionality. IBPlugins cannot be loaded and as such any NIBs that rely on components from them cannot be edited. They can be compiled, but only if you have Xcode 3 and IB 3 still installed. This is a major missing component, though it isn't unexpected. A line has to be drawn at some point in order to say "this is the first version we'll ship" and IBPlugins are likely one of the things that didn't make the cut for 4.0. Of course the big issues with IBPlugins is they don't work with iOS. My hope is that they're missing because Apple is working on an improved system and would rather leave it out of 4.0 than ship a half implemented solution. That said I hope they don't completely replace the IBPlugin system as it is incredibly powerful and one of the nicest plugin systems I've coded for.

IBPlugins 的丢失
对于 Xcode 4 中所有酷炫的新热点,其功能存在一个巨大的漏洞。无法加载 IBPlugins,因此无法编辑依赖于它们的组件的任何 NIB。它们可以被编译,但前提是您仍然安装了 Xcode 3 和 IB 3。这是一个主要的缺失组件,尽管它并不意外。必须在某个时候划一条线才能说“这是我们将发布的第一个版本”,而 IBPlugins 可能是 4.0 没有被淘汰的东西之一。当然,IBPlugins 的大问题是它们不适用于 iOS。我希望它们会丢失,因为 Apple 正在开发一个改进的系统,并且宁愿将其排除在 4.0 之外,也不愿发布已实现一半的解决方案。那是说我希望他们不要

Read full article

阅读全文

回答by nstehr

From what I've read, existing plugins won't work, or will be very unstable. The consensus on this seems to be that if you rely on plugins, stick with Xcode3 for the time being.

据我所知,现有插件将无法工作,或者非常不稳定。对此的共识似乎是,如果您依赖插件,请暂时坚持使用 Xcode3。

回答by Ethan Reesor

The folder: /Developer/Platforms/MacOSX.platform/Developer/Library/Interface Builder/Plug-ins/ has a bunch of '*.ibplugin's. Don't know what that means.

文件夹:/Developer/Platforms/MacOSX.platform/Developer/Library/Interface Builder/Plug-ins/ 有一堆“*.ibplugin”。不知道那是什么意思。