aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-12-06 23:44:59 +0000
committerstuconnolly <stuart02@gmail.com>2010-12-06 23:44:59 +0000
commit3fccc9c751cded1360aa22796ed3c6d700fd04c1 (patch)
tree7833f05d9540c9ad9ffd09c7dc181ee473484298 /Source/SPDatabaseDocument.m
parent71524d822dd449c131f6e09b2a0be0c3c0101eb1 (diff)
parent263681ef03fd33d516ca8e84db12d1c54570679f (diff)
downloadsequelpro-3fccc9c751cded1360aa22796ed3c6d700fd04c1.tar.gz
sequelpro-3fccc9c751cded1360aa22796ed3c6d700fd04c1.tar.bz2
sequelpro-3fccc9c751cded1360aa22796ed3c6d700fd04c1.zip
Bring outlineview branch up to date with trunk (r2967:2974).
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 2901bcd4..4e36c5e1 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -1223,6 +1223,19 @@
[taskProgressWindow setFrameOrigin:newBottomLeftPoint];
}
+/**
+ * Support pausing and restarting the task progress indicator.
+ * Only works while the indicator is in indeterminate mode.
+ */
+- (void) setTaskIndicatorShouldAnimate:(BOOL)shouldAnimate
+{
+ if (shouldAnimate) {
+ [[taskProgressIndicator onMainThread] startAnimation:self];
+ } else {
+ [[taskProgressIndicator onMainThread] stopAnimation:self];
+ }
+}
+
#pragma mark -
#pragma mark Encoding Methods
@@ -4760,6 +4773,7 @@
- (void)registerActivity:(NSDictionary*)commandDict
{
[runningActivitiesArray addObject:commandDict];
+ [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadWithName:SPActivitiesUpdateNotification object:nil];
}
- (void)removeRegisteredActivity:(NSInteger)pid
@@ -4770,6 +4784,7 @@
break;
}
}
+ [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadWithName:SPActivitiesUpdateNotification object:nil];
}
- (NSArray*)runningActivities