NSLevelIndicator - 可可
我如何才能使用 NSLevelIndicator?我对此很陌生,所以我不太了解如何在我的应用程序中使用进度条。
How would I be able to use a NSLevelIndicator? I am very new to this so, I don't know much on how to use a progress bar for my application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您不会将 NSLevelIndicator 用于进度条。请查看
NSProgressIndicator
。它同时具有进度条和“旋转器”控件。例如,NSLevelIndicator
用于显示磁盘已满,或者无线鼠标的电池剩余电量。You wouldn't use
NSLevelIndicator
for a progress bar. Check outNSProgressIndicator
instead. It does both progress bars and "spinner" controls.NSLevelIndicator
is used, for example, to show how full a disk is, or how much battery life is left in your wireless mouse.你没有解释你的经验水平。假设您已经在 Interface Builder 中创建了一个窗口,将 NSLevelIndicator 拖到该窗口上,在应用程序中为其创建一个出口,并根据需要设置其值。如果您不明白其中任何内容,请按照 Apple 的标准初学者教程并从那里开始。
You don't explain your level of experience. Assuming you have a window already created in Interface Builder, drag an NSLevelIndicator onto the window, create an outlet to it in your application, and set its value as needed. If you don't understand any of that, follow Apple's standard beginners' tutorial and start from there.
http://developer.apple.com/mac /library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSLevelIndicator_Class/
http://developer.apple.com/mac /library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSProgressIndicator_Class/
http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSLevelIndicator_Class/
http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSProgressIndicator_Class/