Index: src/views/mac/SampleAppDelegate.mm |
diff --git a/src/views/mac/SampleAppDelegate.mm b/src/views/mac/SampleAppDelegate.mm |
index 91dcada8880d44846e3bb88004fbe0f1d0d90371..8211ad9c48c38cbdc8979f7a5e0b1bdb80d0a93e 100644 |
--- a/src/views/mac/SampleAppDelegate.mm |
+++ b/src/views/mac/SampleAppDelegate.mm |
@@ -1,4 +1,7 @@ |
#import "SampleAppDelegate.h" |
+ |
+#include "SkApplication.h" |
+ |
@implementation SampleAppDelegate |
@synthesize fWindow, fView, fOptions; |
@@ -13,4 +16,10 @@ |
NSRect frame = NSMakeRect(fWindow.frame.origin.x, fWindow.frame.origin.y, 768, 1024); |
[fWindow setFrame:frame display:YES animate:YES]; |
} |
+ |
+- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender { |
+ application_term(); |
+ return NSTerminateNow; |
+} |
+ |
@end |