diff options
author | stuconnolly <stuart02@gmail.com> | 2010-03-24 21:51:27 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-03-24 21:51:27 +0000 |
commit | 3b70bf3ed475602fac435b86ab564423ae1dfdb0 (patch) | |
tree | 2328be21dbfdaec7e07caad38c2b46d26c76fcd7 /Source/SPGrowlController.m | |
parent | 47f354070f1fa8dfeb46c4065075ee53de4c1626 (diff) | |
download | sequelpro-3b70bf3ed475602fac435b86ab564423ae1dfdb0.tar.gz sequelpro-3b70bf3ed475602fac435b86ab564423ae1dfdb0.tar.bz2 sequelpro-3b70bf3ed475602fac435b86ab564423ae1dfdb0.zip |
General tidy up, with a focus on consolidating more constants in SPConstants.h/m.
Diffstat (limited to 'Source/SPGrowlController.m')
-rw-r--r-- | Source/SPGrowlController.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/SPGrowlController.m b/Source/SPGrowlController.m index 13d06f3c..91690546 100644 --- a/Source/SPGrowlController.m +++ b/Source/SPGrowlController.m @@ -130,7 +130,7 @@ static SPGrowlController *sharedGrowlController = nil; // if it does, and the time exceeds the threshold, display the notification even for // frontmost windows to provide feedback for long-running tasks. if (timingNotificationName && [timingNotificationName isEqualToString:name]) { - if ([self milliTime] > (SP_LONGRUNNING_NOTIFICATION_TIME * 1000) + timingNotificationStart) { + if ([self milliTime] > (SPLongRunningNotificationTime * 1000) + timingNotificationStart) { postNotification = YES; } [timingNotificationName release], timingNotificationName = nil; @@ -151,7 +151,7 @@ static SPGrowlController *sharedGrowlController = nil; /** * React to a click on the notification. */ -- (void) growlNotificationWasClicked:(NSDictionary *)clickContext +- (void)growlNotificationWasClicked:(NSDictionary *)clickContext { if (clickContext && [clickContext objectForKey:@"notificationWindow"]) { NSWindow *targetWindow = [NSApp windowWithWindowNumber:[[clickContext objectForKey:@"notificationWindow"] integerValue]]; @@ -168,7 +168,7 @@ static SPGrowlController *sharedGrowlController = nil; * being posted; if the notification is posted after the header-defined boundary, the * notification will then be shown even if the app is frontmost. */ -- (void) setVisibilityForNotificationName:(NSString *)name +- (void)setVisibilityForNotificationName:(NSString *)name { if (timingNotificationName) [timingNotificationName release], timingNotificationName = nil; timingNotificationName = [[NSString alloc] initWithString:name]; @@ -178,7 +178,7 @@ static SPGrowlController *sharedGrowlController = nil; /** * Get a monotonically increasing time, in milliseconds. */ -- (double) milliTime +- (double)milliTime { uint64_t currentTime_t = mach_absolute_time(); Nanoseconds elapsedTime = AbsoluteToNanoseconds(*(AbsoluteTime *)&(currentTime_t)); |