1 回答

TA貢獻1859條經驗 獲得超6個贊
仔細看checkForUpdatesInBackground
:
/*!
?Checks for updates, but does not display any UI unless an update is found.
?This is meant for programmatically initating a check for updates. That is,
?it will display no UI unless it actually finds an update, in which case it
?proceeds as usual.
?If automatic downloading of updates it turned on and allowed, however,
?this will invoke that behavior, and if an update is found, it will be downloaded
?in the background silently and will be prepped for installation.
?This will not find updates that the user has opted into skipping.
?*/
- (void)checkForUpdatesInBackground;
因此,使用此方法,只有在找到更新時才會顯示 UI。
我想要的是checkForUpdates
:
/*!
?Explicitly checks for updates and displays a progress dialog while doing so.
?This method is meant for a main menu item.
?Connect any menu item to this action in Interface Builder,
?and Sparkle will check for updates and report back its findings verbosely
?when it is invoked.
?This will find updates that the user has opted into skipping.
?*/
?- (IBAction)checkForUpdates:(id)sender;
- 1 回答
- 0 關注
- 154 瀏覽
添加回答
舉報