diff options
| author | Teddy Wing | 2023-09-30 02:10:41 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2023-09-30 02:10:41 +0200 | 
| commit | 1a05118fca75f4f45579b3eecebe17fffb6a76ef (patch) | |
| tree | 680c65fe39fdb19e72189c45b259aa00ae04a3a8 /src | |
| parent | 17ecda6af3611a5e0c19b16b5a3592695aaea544 (diff) | |
| download | Base-Windowed-Application-1a05118fca75f4f45579b3eecebe17fffb6a76ef.tar.bz2 | |
MainMenu: Move application name to a constant
Switch to a constant-stored application name from the Makefile-defined
one. This makes it easier to render the application name without
worrying about escaping differences between the Makefile and
Objective-C. But I still don't like it compared to what I had before.
Diffstat (limited to 'src')
| -rw-r--r-- | src/MainMenu.m | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/MainMenu.m b/src/MainMenu.m index 0dff780..229ac10 100644 --- a/src/MainMenu.m +++ b/src/MainMenu.m @@ -1,6 +1,6 @@  #import "MainMenu.h" -#define AppName MK_APP_NAME +static const NSString *kAppName = @"Base Windowed Application";  NSMenuItem *MainMenuCreateApplicationMenuItem();  NSMenuItem *MainMenuCreateFileMenuItem(); @@ -48,7 +48,7 @@ NSMenu *MainMenuCreate()  NSString *MainMenuGetApplicationName()  { -	NSLog(@"App name: %@", AppName); +	NSLog(@"App name: %@", kAppName);  	// TODO: #define this from the Makefile  	NSString *application_name = [[NSBundle mainBundle] | 
