【发布时间】:2011-04-29 15:06:47
【问题描述】:
我正在创建一个应在停靠图标中显示进度条的应用程序。目前我有这个,但它不工作:
NSProgressIndicator *progressIndicator = [[NSProgressIndicator alloc] initWithFrame:NSMakeRect(0.0f, 0.0f, 10.0f, 20.0f)];
[progressIndicator setStyle:NSProgressIndicatorBarStyle];
[progressIndicator setIndeterminate:NO];
[[[[NSApplication sharedApplication] dockTile] contentView] addSubview:progressIndicator];
[progressIndicator release];
或者我必须自己在码头上画出来吗?谁能帮我?谢谢。
【问题讨论】:
标签: cocoa nsview dock nsprogressindicator nsdocktile