This is supposed to be main bundle actually

This commit is contained in:
Zorg committed 2016-03-27 14:51:36 -04:00
1 parent 7fc6896170
commit a8252cbe20
2 files changed
+2 -4

No files matched your search

+1
View File
@@ -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
View File
@@ -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;