From d04d74c2429580efbc07d400db1ddbf86f82c586 Mon Sep 17 00:00:00 2001 From: igor Date: Fri, 12 Sep 2025 03:36:16 -0700 Subject: [PATCH] Add ctags. --- src/AppDelegate.m | 2 +- src/Makefile | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/AppDelegate.m b/src/AppDelegate.m index 8fe1cd5..6f31394 100644 --- a/src/AppDelegate.m +++ b/src/AppDelegate.m @@ -124,7 +124,7 @@ CGPoint itemOrigin = [[[_statusItem button] window] frame].origin; // NOTE: -5 because NSMenu pops up higher than wanted; don't know how - // it will behave on different displays and resolutions. + // it will behave on different displays, resolutions, or OS versions. CGFloat y = NSHeight([scrn visibleFrame]) + [scrn visibleFrame].origin.y - 5; diff --git a/src/Makefile b/src/Makefile index bb0c6cc..80f6012 100644 --- a/src/Makefile +++ b/src/Makefile @@ -29,5 +29,10 @@ $(EXEC).app: $(EXEC) cp resources/AppIcon.icns $@/Contents/Resources/ && \ cp $(EXEC) $@/Contents/MacOS/ +# Requires universal-ctags for Objective-C. +ctags: + ctags -R *.h *.m + clean: rm -rf $(EXEC) $(EXEC).dSYM $(EXEC).app +