我想實現在AppleScriptObjC一個進度條更新。我已經連接了進度直通IB,並試圖通過增加incrementBy(5)的進度更新。 Inderterminate屬性設置爲false。在IB連接是好的,因爲如果我設置Inderterminate爲true,uncomemnt代碼開始/停止動畫正常工作。這是我得到的錯誤「 - [NSProgressIndicator incrementby:]:無法識別的選擇發送到實例0x2007e2220」AppleScriptObjC:進度條不增加
以下是代碼進階
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_
感謝任何指針。
問候, 傑西