remove args and windows logic from all set_up_apple_events

This commit is contained in:
2024-06-12 22:38:31 -06:00
parent cb62505e8d
commit 4fa4f0b92b
13 changed files with 18 additions and 54 deletions

View File

@@ -30,8 +30,8 @@ typedef NSAppleEventDescriptor AEDescr;
-(NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication*) sender;
@end
void set_up_apple_events(int argc, char* argv[]); // Suppress "no prototype" warning
void set_up_apple_events(int, char*[]) {
void set_up_apple_events(); // Suppress "no prototype" warning
void set_up_apple_events() {
AppleEventHandler* aeHandler = [[AppleEventHandler alloc] init];
[[NSApplication sharedApplication] setDelegate: aeHandler];
}