Change OSXAppDelegate base type to avoid an opaque id type

This commit is contained in:
David Capello 2016-04-11 17:28:19 -03:00
parent 5ef931b7d4
commit 63c723d327
2 changed files with 2 additions and 3 deletions

View File

@ -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()

View File

@ -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;