Removed potentially dangerous KVO magic.

This commit is contained in:
Andy Matuschak committed 2008-07-25 08:46:46 -07:00
1 parent 46125abdeb
commit 211555639d
1 file changed
-4
-4
View File
@@ -210,10 +210,6 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv
// Or we may get this from the developer and from our own KVO observation, this will effectively coalesce them.
[[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(resetUpdateCycle) object:nil];
[self performSelector:@selector(resetUpdateCycle) withObject:nil afterDelay:15];
if ([keyPath rangeOfString:SUEnableAutomaticChecksKey].location != NSNotFound)
[self didChangeValueForKey:@"automaticallyChecksForUpdates"];
else if ([keyPath rangeOfString:SUScheduledCheckIntervalKey].location != NSNotFound)
[self didChangeValueForKey:@"updateCheckInterval"];
[self resetUpdateCycle];
}
else