-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathAppDelegate.m
More file actions
33 lines (23 loc) · 822 Bytes
/
AppDelegate.m
File metadata and controls
33 lines (23 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
Copyright (C) 2015 Apple Inc. All Rights Reserved.
See LICENSE.txt for this sample’s licensing information
Abstract:
The Application Delegate.
*/
#import "AppDelegate.h"
@interface AppDelegate ()
@end
@implementation AppDelegate
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
NSWindow* mainWindow = [[NSApplication sharedApplication]mainWindow];
[mainWindow setAcceptsMouseMovedEvents:YES];
// Force dark appearance for the entire application
[NSApp setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameDarkAqua]];
}
- (void)applicationWillTerminate:(NSNotification *)aNotification {
// Insert code here to tear down your application
}
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication {
return YES;
}
@end