mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Update API documentation for instantiating/using updater
This commit is contained in:
1 parent
1f90f7c993
commit
0b634f4d76
3 files changed
+10
-5
No files matched your search
+2
-4
@@ -32,11 +32,9 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
up the updater's and user driver's delegates.
|
||||
|
||||
This controller class may not be valuable to you if:
|
||||
* You want to control or defer the instantiation of an SPUUpdater, or don't want to be tied into a nib's instantiation, or don't want to use a nib
|
||||
* You want to control or defer starting the SPUUpdater, or don't want to be tied into a nib's instantiation, or don't want to use a nib
|
||||
* You want to target a bundle that's not the main bundle
|
||||
* You want to provide a custom user interface, or perhaps one that provides little-to-none
|
||||
* You don't want to use a convenience class that provides very little glue ;)
|
||||
|
||||
* You want to provide a custom user interface (SPUUserDriver), or perhaps one that provides little-to-none
|
||||
*/
|
||||
SU_EXPORT @interface SPUStandardUpdaterController : NSObject
|
||||
|
||||
|
||||
Vendored
+7
@@ -48,6 +48,13 @@ SU_EXPORT @interface SPUUpdater : NSObject
|
||||
*/
|
||||
- (instancetype)initWithHostBundle:(NSBundle *)hostBundle applicationBundle:(NSBundle *)applicationBundle userDriver:(id <SPUUserDriver>)userDriver delegate:(id<SPUUpdaterDelegate> _Nullable)delegate;
|
||||
|
||||
/*!
|
||||
Use -initWithHostBundle:applicationBundle:userDriver:delegate: or SPUStandardUpdaterController standard adapter instead.
|
||||
|
||||
If you want to drop an updater into a nib, use SPUStandardUpdaterController.
|
||||
*/
|
||||
- (instancetype)init NS_UNAVAILABLE;
|
||||
|
||||
/*!
|
||||
Starts the updater.
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -91,7 +91,7 @@ static NSMutableDictionary *sharedUpdaters = nil;
|
||||
// This will be used when the updater is instantiated in a nib such as MainMenu
|
||||
- (instancetype)init
|
||||
{
|
||||
SULog(SULogLevelDefault, @"DEPRECATION: SUUpdater is now deprecated. Please use SPUStandardUpdaterController as a nib instantiated replacement, or SPUUpdater.");
|
||||
SULog(SULogLevelDefault, @"DEPRECATION: SUUpdater is deprecated in Sparkle 2 but functional for transitional purposes. Please migrate to SPUStandardUpdaterController as a nib instantiated replacement, or SPUUpdater.");
|
||||
return [self initForBundle:[NSBundle mainBundle]];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user