Skip to content

Commit

Permalink
Change the point to hook tab closing event
Browse files Browse the repository at this point in the history
  • Loading branch information
niw committed Feb 1, 2010
1 parent 315c3e4 commit 627ce4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions TerminalTabSwitching.m
Expand Up @@ -48,9 +48,9 @@ - (void)TerminalTabSwitching_newTab:(id)fp8
[self updateTabListMenu];
}

- (void)TerminalTabSwitching_closeTab:(id)fp8
- (void)TerminalTabSwitching_tabView:(id)arg1 didCloseTabViewItem:(id)arg2
{
[self TerminalTabSwitching_closeTab:fp8];
[self TerminalTabSwitching_tabView:arg1 didCloseTabViewItem:arg2];
[self updateTabListMenu];
}

Expand All @@ -76,7 +76,7 @@ + (void)load
[NSClassFromString(@"TTWindowController") jr_swizzleMethod:@selector(windowDidBecomeMain:) withMethod:@selector(TerminalTabSwitching_windowDidBecomeMain:) error:NULL];
[NSClassFromString(@"TTWindowController") jr_swizzleMethod:@selector(windowDidLoad) withMethod:@selector(TerminalTabSwitching_windowDidLoad) error:NULL];
[NSClassFromString(@"TTWindowController") jr_swizzleMethod:@selector(newTab:) withMethod:@selector(TerminalTabSwitching_newTab:) error:NULL];
[NSClassFromString(@"TTWindowController") jr_swizzleMethod:@selector(closeTab:) withMethod:@selector(TerminalTabSwitching_closeTab:) error:NULL];
[NSClassFromString(@"TTWindowController") jr_swizzleMethod:@selector(tabView:didCloseTabViewItem:) withMethod:@selector(TerminalTabSwitching_tabView:didCloseTabViewItem:) error:NULL];
[NSClassFromString(@"TTWindowController") jr_swizzleMethod:@selector(mergeAllWindows:) withMethod:@selector(TerminalTabSwitching_mergeAllWindows:) error:NULL];

NSApplication *app = [NSApplication sharedApplication];
Expand All @@ -99,4 +99,4 @@ + (void)load

NSLog(@"TerminalTabSwitching installed");
}
@end
@end

0 comments on commit 627ce4a

Please sign in to comment.