Raising exception if -[SUUpdater init] is called

This commit is contained in:
Zorg committed 2016-02-28 21:28:46 -05:00
1 parent 2e28d47d48
commit 8c769ca9cd
1 file changed
+6
+6
View File
@@ -74,6 +74,12 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification
return self;
}
- (instancetype)init
{
[NSException raise:@"SUUpdaterInitNotImplemented" format:@"-[SUUpdater init] is not implemented. If you want to drop an updater into a nib, see SUUpdaterController"];
return nil;
}
-(void)checkIfConfiguredProperly {
BOOL hasPublicDSAKey = [self.host publicDSAKey] != nil;
BOOL isMainBundle = [self.host.bundle isEqualTo:[NSBundle mainBundle]];