mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Add documentation to SUUpdaterController
This commit is contained in:
1 parent
30c2ba125b
commit
dd3c698f3e
1 file changed
+17
Vendored
+17
@@ -13,6 +13,19 @@
|
||||
|
||||
@class SUUpdater;
|
||||
|
||||
/*!
|
||||
A controller class that instantiates a SUUpdater and allows binding UI actions and outlets to it.
|
||||
|
||||
This controller's updater targets the application's main bundle, and uses Sparkle's standard user interface.
|
||||
Thus it is only suitable under these circumstances. Typically, this class is used by sticking it as a custom NSObject in an Interface Builder nib (probably in MainMenu).
|
||||
The controller then kicks off creating an SUUpdater instance and allows hooking up various actions and outlets.
|
||||
|
||||
There may be several reasons why this class may not be very suitable for you:
|
||||
* You want to defer the instantiation of an SUUpdater, or don't want to be tied into a nib's instantiation, or don't want to use a nib
|
||||
* You want to separate Sparkle's updater and user interface into separate processes
|
||||
* You don't want to use a convenience class that provides very little glue ;)
|
||||
|
||||
*/
|
||||
@interface SUUpdaterController : NSObject
|
||||
|
||||
/*!
|
||||
@@ -27,11 +40,15 @@
|
||||
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 action checks updates by invoking -[SUUpdater checkForUpdates]
|
||||
*/
|
||||
- (IBAction)checkForUpdates:(id)sender;
|
||||
|
||||
/*!
|
||||
Validates if the menu item for checkForUpdates: can be invoked or not
|
||||
|
||||
This validates the menu item by invoking -[SUUpdater updateInProgress]
|
||||
*/
|
||||
- (BOOL)validateMenuItem:(NSMenuItem *)item;
|
||||
|
||||
|
||||
Reference in new issue
Block a user