mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-30 05:28:50 +00:00
This is supposed to be main bundle actually
This commit is contained in:
1 parent
7fc6896170
commit
a8252cbe20
2 files changed
+2
-4
No files matched your search
+1
@@ -24,6 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
This controller class may not be valuable to you if:
|
||||
* You want to control or 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 target a bundle that's not the main bundle
|
||||
* You want to separate Sparkle's updater and user interface into separate processes
|
||||
* 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 ;)
|
||||
|
||||
+1
-4
@@ -62,10 +62,7 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults
|
||||
if (!self.initializedUpdater) {
|
||||
self.initializedUpdater = YES;
|
||||
|
||||
// We may not be the same bundle as the main bundle so we can't use that
|
||||
// We also can't use [self class] because somebody could subclass us and could live elsewhere
|
||||
NSBundle *hostBundle = [NSBundle bundleForClass:[SUStandardUpdaterController class]];
|
||||
|
||||
NSBundle *hostBundle = [NSBundle mainBundle];
|
||||
id <SUUserDriver, SUStandardUserDriver> userDriver = [[SUStandardUserDriver alloc] initWithHostBundle:hostBundle delegate:self.userDriverDelegate];
|
||||
self.updater = [[SUUpdater alloc] initWithHostBundle:hostBundle userDriver:userDriver delegate:self.updaterDelegate];
|
||||
self.userDriver = userDriver;
|
||||
|
||||
Reference in new issue
Block a user