Fixed errors on Xcode 6.1

This commit is contained in:
michael starke
2014-10-20 23:29:30 +02:00
parent 87dd11cf2c
commit a0e95d577b

View File

@@ -76,7 +76,7 @@
}
- (void)_willSleepNotification:(NSNotification *)notification {
[[NSApp delegate] lockAllDocuments];
[(MPAppDelegate *)[NSApp delegate] lockAllDocuments];
}
- (void)_checkIdleTime:(NSTimer *)timer {
@@ -85,7 +85,7 @@
}
NSTimeInterval currentInterval = ([NSDate timeIntervalSinceReferenceDate] - self.lastLocalEventTime);
if(self.idleLockTime < currentInterval) {
[[NSApp delegate] lockAllDocuments];
[(MPAppDelegate *)[NSApp delegate] lockAllDocuments];
/* Reset the timer to full intervall */
[self.idleCheckTimer setFireDate:[NSDate dateWithTimeIntervalSinceNow:_idleLockTime]];
}