aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2023-09-09 20:46:13 +0200
committerTeddy Wing2023-09-09 20:46:13 +0200
commitcfe5c30df32bca2a098c683ddf69ad8a78ed305d (patch)
treeef314f190c96c00e9c9d1100645a86270039591b
parent70a98332cba2a71fe6ffb109e40877bf48e89386 (diff)
downloadBase-Windowed-Application-cfe5c30df32bca2a098c683ddf69ad8a78ed305d.tar.bz2
Clean up "Find" menu tests
* Remove the `NSTextFinder` code as it's not necessary to get a find bar for an `NSTextView`. * Remove the commented notes for the "Find" menu.
-rw-r--r--src/AppDelegate.h1
-rw-r--r--src/AppDelegate.m11
-rw-r--r--src/MainMenu.m4
3 files changed, 0 insertions, 16 deletions
diff --git a/src/AppDelegate.h b/src/AppDelegate.h
index 4dba427..d48e22c 100644
--- a/src/AppDelegate.h
+++ b/src/AppDelegate.h
@@ -4,6 +4,5 @@
NSWindow *_window;
NSScrollView *_scroll_view;
NSTextView *_text_view;
- // NSTextFinder *_text_finder;
}
@end
diff --git a/src/AppDelegate.m b/src/AppDelegate.m
index 3df04e0..b164b30 100644
--- a/src/AppDelegate.m
+++ b/src/AppDelegate.m
@@ -8,7 +8,6 @@
[_window release];
[_scroll_view release];
[_text_view release];
- // [_text_finder release];
[super dealloc];
}
@@ -46,10 +45,6 @@
[[_window contentView] addSubview:_scroll_view];
// [_window setContentView:_text_view];
-
- // _text_finder = [[NSTextFinder alloc] init];
- // [_text_finder setClient:(id<NSTextFinderClient>)_text_view];
- // [_text_finder setFindBarContainer:_scroll_view];
}
- (void)applicationDidFinishLaunching:(NSNotification *)notification
@@ -58,10 +53,4 @@
[_window makeKeyAndOrderFront:nil];
}
-// - (IBAction)performTextFinderAction:(id)sender
-// {
-// NSLog(@"performTextFinderAction: performing %ld", [sender tag]);
-// [_text_finder performAction:[sender tag]];
-// }
-
@end
diff --git a/src/MainMenu.m b/src/MainMenu.m
index afc62b6..b8829fb 100644
--- a/src/MainMenu.m
+++ b/src/MainMenu.m
@@ -339,7 +339,6 @@ NSMenuItem *MainMenuCreateEditMenuItem()
[edit_menu addItem:[NSMenuItem separatorItem]];
// Find menu.
- // TODO: Find items don't appear to work except for D-j
NSMenuItem *find_menu_item = [edit_menu
addItemWithTitle:NSLocalizedString(
@"Find",
@@ -358,12 +357,9 @@ NSMenuItem *MainMenuCreateEditMenuItem()
@"Find…",
@"Find… menu item."
)
- // action:@selector(performFindPanelAction:)
action:@selector(performTextFinderAction:)
keyEquivalent:@"f"];
[find_ellipsis_menu_item setTag:NSTextFinderActionShowFindInterface];
- // [find_ellipsis_menu_item setTag:1];
- // NSFindPanelActionShowFindPanel ?
NSMenuItem *find_and_replace_menu_item = [find_menu
addItemWithTitle:NSLocalizedString(