使用 Xcode 4 添加卡布奇诺 CPProgressIndicator
构建我的卡布奇诺项目的 GUI,在从 XCodeCapp-cocoa 编译时将 NSProgressIndicator 添加到 GUI 中会导致错误“无法解码类对象 (NSProgressIndicator)”。我尝试手动为 CPProgressIndicator 指定“自定义类”,但它仍然不起作用。因此,我猜测 nib2cib 仍然不支持进度指示器,但这对我来说听起来很奇怪,那么:
我的版本有问题吗?
是否有可能以图形方式设置栏(即从界面生成器)并编译此 CPProgressIndicator ? (任何解决方法?)还是我必须自己从代码中设置它?
building the GUI of my cappuccino project, adding an NSProgressIndicator into the GUI result in an error "cannot decode object of class (NSProgressIndicator)" while compiling from the XCodeCapp-cocoa. I tried to manually specify a "Custom Class" to CPProgressIndicator but it still do not work. I thus guess that nib2cib is still not support progressIndicators but it sounds strange to me, then:
Is there something wrong with my version ?
Is there a possible way to graphically set the bar (i.e. from the interface builder) and compile this CPProgressIndicator ? (any workaround ?) or do I have to set it myself from code ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
nib2cib
目前不支持NSProgressIndicator
。如果您创建一个自定义 NSView 并将其自定义类设置为 CPProgressIndicator,正如您所尝试的那样,您应该获得正确的类,但它可能仍然无法正确初始化。您可以在 cib 加载后尝试手动配置它。例如,通过将其连接到插座并在awakeFromCib
中发送它,此外,如果您还没有这样做,请继续在 卡布奇诺项目。
NSProgressIndicator
is not supported bynib2cib
today. If you create a custom NSView and set its custom class toCPProgressIndicator
, as you tried, you should get the right class but it might still not initialise properly. You could try to configure it by hand after your cib has loaded. E.g. by connecting it to an outlet and inawakeFromCib
sending it,Also, if you haven't already, go ahead and submit a feature request for NSProgressIndicator support at the Cappuccino project.