mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 13:07:26 +01:00
28 lines
705 B
C
28 lines
705 B
C
// -*- objc -*-
|
|
|
|
#import "ebiten_controller.h"
|
|
|
|
@implementation EbitenController {
|
|
}
|
|
|
|
- (void)applicationDidFinishLaunching:(NSNotification*)aNotification {
|
|
(void)aNotification;
|
|
[[NSNotificationCenter defaultCenter] addObserver:self
|
|
selector:@selector(windowClosing:)
|
|
name:NSWindowWillCloseNotification
|
|
object:nil];
|
|
}
|
|
|
|
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:
|
|
(NSApplication*)theApplication {
|
|
(void)theApplication;
|
|
return YES;
|
|
}
|
|
|
|
- (void)windowClosing:(NSNotification*)aNotification {
|
|
(void)aNotification;
|
|
[NSApp terminate:nil];
|
|
}
|
|
|
|
@end
|