From 3de284fa904c295f306ec047fc29289399424836 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sun, 5 Dec 2010 22:25:24 +0000 Subject: - Add the ability to stop animation of the task indicator, and use it to pause the task indicator animation when custom queries are paused and waiting for user interaction after an error --- Source/SPDatabaseDocument.m | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Source/SPDatabaseDocument.m') diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 43d71b01..9f14c3ed 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 -- cgit v1.2.3 From dbbcc4144a7abef479ae9982563ed3a1cbdb725c Mon Sep 17 00:00:00 2001 From: Bibiko Date: Mon, 6 Dec 2010 08:58:38 +0000 Subject: =?UTF-8?q?=E2=80=A2=20finished=20implementation=20of=20SPChooseMe?= =?UTF-8?q?nuItemDialog=20=E2=80=A2=20simplified=20bundle=20command=20hand?= =?UTF-8?q?ling=20and=20handling=20for=20bundle=20commands=20which=20have?= =?UTF-8?q?=20the=20same=20key=20equivalent=20to=20be=20able=20to=20group?= =?UTF-8?q?=20similar=20bundle=20commands=20=E2=80=A2=20minor=20code=20imp?= =?UTF-8?q?rovements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPDatabaseDocument.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/SPDatabaseDocument.m') diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 9f14c3ed..cc5185ac 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -4773,6 +4773,7 @@ - (void)registerActivity:(NSDictionary*)commandDict { [runningActivitiesArray addObject:commandDict]; + [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadWithName:SPActivitiesUpdateNotification object:nil]; } - (void)removeRegisteredActivity:(NSInteger)pid @@ -4783,6 +4784,7 @@ break; } } + [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadWithName:SPActivitiesUpdateNotification object:nil]; } - (NSArray*)runningActivities -- cgit v1.2.3