Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
George Nachman authored
3  ToolNotes.m
@@ -86,4 +86,7 @@ - (void)setText:(NSNotification *)aNotification
86 86 }
87 87 }
88 88
  89 +- (void)shutdown {
  90 +}
  91 +
89 92 @end
3  ToolProfiles.m
@@ -123,4 +123,7 @@ - (void)profileTableRowSelected:(id)profileTable
123 123 }
124 124 }
125 125
  126 +- (void)shutdown
  127 +{
  128 +}
126 129 @end
1  ToolWrapper.h
@@ -22,7 +22,6 @@
22 22 @optional
23 23 - (void)relayout;
24 24
25   -@optional
26 25 - (void)shutdown;
27 26 @end
28 27
1  ToolbeltView.m
@@ -164,6 +164,7 @@ - (void)toggleToolWithName:(NSString *)theName
164 164 {
165 165 ToolWrapper *wrapper = [tools_ objectForKey:theName];
166 166 if (wrapper) {
  167 + [[wrapper tool] shutdown];
167 168 [tools_ removeObjectForKey:theName];
168 169 [wrapper removeFromSuperview];
169 170 [wrapper setDelegate:nil];

0 comments on commit 08d82ed

Please sign in to comment.
Something went wrong with that request. Please try again.