【发布时间】:2016-10-18 10:04:03
【问题描述】:
我正在尝试在 AppleScriptObjC 中实现进度条更新。我已经通过 IB 连接了进度条,并尝试通过 incrementBy(5) 增加进度条更新。 Inderterminate 属性设置为 false。 IB 连接很好,因为如果我将 Inderterminate 设置为 true 并取消注释启动/停止动画的代码,它工作正常。这是我得到的错误“-[NSProgressIndicator incrementby:]: unrecognized selector sent to instance 0x2007e2220”
下面是代码
property ProgressBar : missing value
on MyBtnClick_(sender)
(*.. some code ..*)
ProgressBar's incrementby_(5)
ProgressBar's displayifNeeded()
--ProgressBar's startAnimation_(me)
--ProgressBar's stopAnimation_(me)
end MyBtnClick_
感谢 Adv 的任何指点。
问候, 杰西
【问题讨论】:
标签: xcode applescript applescript-objc