mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Change OSXAppDelegate base type to avoid an opaque id type
This commit is contained in:
parent
5ef931b7d4
commit
63c723d327
@ -1,5 +1,4 @@
|
||||
// SHE library
|
||||
// Copyright (C) 2012-2015 David Capello
|
||||
// Copyright (C) 2012-2016 David Capello
|
||||
//
|
||||
// This file is released under the terms of the MIT license.
|
||||
@ -36,7 +35,7 @@ public:
|
||||
|
||||
private:
|
||||
NSApplication* m_app;
|
||||
id m_appDelegate;
|
||||
OSXAppDelegate* m_appDelegate;
|
||||
};
|
||||
|
||||
OSXApp::OSXApp()
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include <Cocoa/Cocoa.h>
|
||||
|
||||
@interface OSXAppDelegate : NSObject
|
||||
@interface OSXAppDelegate : NSObject<NSApplicationDelegate>
|
||||
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication*)sender;
|
||||
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)app;
|
||||
- (void)applicationWillTerminate:(NSNotification*)notification;
|
||||
|
Loading…
x
Reference in New Issue
Block a user