Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Shut down toolbelt tools when they're removed from the view; otherwis…

…e the timers can fire after the window is closed
  • Loading branch information...
commit 08d82ed6476ca55f59d0b1946ce77d147503537d 1 parent 33fa72b
@gnachman gnachman authored
View
3  ToolNotes.m
@@ -86,4 +86,7 @@ - (void)setText:(NSNotification *)aNotification
}
}
+- (void)shutdown {
+}
+
@end
View
3  ToolProfiles.m
@@ -123,4 +123,7 @@ - (void)profileTableRowSelected:(id)profileTable
}
}
+- (void)shutdown
+{
+}
@end
View
1  ToolWrapper.h
@@ -22,7 +22,6 @@
@optional
- (void)relayout;
-@optional
- (void)shutdown;
@end
View
1  ToolbeltView.m
@@ -164,6 +164,7 @@ - (void)toggleToolWithName:(NSString *)theName
{
ToolWrapper *wrapper = [tools_ objectForKey:theName];
if (wrapper) {
+ [[wrapper tool] shutdown];
[tools_ removeObjectForKey:theName];
[wrapper removeFromSuperview];
[wrapper setDelegate:nil];
Please sign in to comment.
Something went wrong with that request. Please try again.