aboutsummaryrefslogtreecommitdiffstats
path: root/src/AppDelegate.m
diff options
context:
space:
mode:
authorTeddy Wing2023-08-20 20:38:47 +0200
committerTeddy Wing2023-08-20 20:38:47 +0200
commit1077dded6a73198d3e5e890c7c2ec5f7ae52a698 (patch)
treead0e6d0344ef9e9d100d7d2387f603e26243118b /src/AppDelegate.m
parent0315f80a1277c6cf3228c56a6fb4b6c67c0b7409 (diff)
downloadBase-Windowed-Application-1077dded6a73198d3e5e890c7c2ec5f7ae52a698.tar.bz2
MainMenu: Try switching to `NSFontManager` -fontMenu:
This creates the whole font menu for me, and the actions work correctly, very nice! Read about this in the `NSFontManager` documentation. The only hitch is that some menu items don't appear to have the proper keyEquivalents set. For example, "Show Colors", "Copy Style", and "Paste Style" are all missing the Apple key from the shortcuts.
Diffstat (limited to 'src/AppDelegate.m')
-rw-r--r--src/AppDelegate.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/AppDelegate.m b/src/AppDelegate.m
index 4c0ace7..2778573 100644
--- a/src/AppDelegate.m
+++ b/src/AppDelegate.m
@@ -12,6 +12,9 @@
- (void)applicationWillFinishLaunching:(NSNotification *)notification
{
+ // NSFontManager *font_manager = [NSFontManager sharedFontManager];
+ // NSLog(@"FontManager: %@", [font_manager fontMenu:YES]);
+
NSMenu *menubar = MainMenuCreate();
[NSApp setMainMenu:menubar];
[menubar release];