Mercurial > dwindows
comparison mac/dw.m @ 2076:a42267bf4208
Mac: Second try that hopefully builds on all versions.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 24 May 2020 23:45:32 +0000 |
parents | c020ad267ae2 |
children | 24875681eec5 |
comparison
equal
deleted
inserted
replaced
2075:c020ad267ae2 | 2076:a42267bf4208 |
---|---|
1440 } | 1440 } |
1441 -(void)applicationDidFinishLaunching:(NSNotification *)aNotification | 1441 -(void)applicationDidFinishLaunching:(NSNotification *)aNotification |
1442 { | 1442 { |
1443 #ifdef BUILDING_FOR_MOJAVE | 1443 #ifdef BUILDING_FOR_MOJAVE |
1444 if (@available(macOS 10.14, *)) {} else | 1444 if (@available(macOS 10.14, *)) {} else |
1445 #elif defined(BUILDING_FOR_MOUNTAIN_LION) | 1445 #else |
1446 { | 1446 { |
1447 #ifdef BUILDING_FOR_MOUNTAIN_LION | |
1447 NSUserNotificationCenter* unc = [NSUserNotificationCenter defaultUserNotificationCenter]; | 1448 NSUserNotificationCenter* unc = [NSUserNotificationCenter defaultUserNotificationCenter]; |
1448 unc.delegate = self; | 1449 unc.delegate = self; |
1449 } | |
1450 #endif | 1450 #endif |
1451 } | |
1452 #endif | |
1453 return; | |
1451 } | 1454 } |
1452 #ifdef BUILDING_FOR_MOUNTAIN_LION | 1455 #ifdef BUILDING_FOR_MOUNTAIN_LION |
1453 -(BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification | 1456 -(BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification |
1454 { | 1457 { |
1455 return YES; | 1458 return YES; |