]> git.saurik.com Git - wxWidgets.git/commitdiff
Moved @interface wxNSApplicationDelegate to new header
authorDavid Elliott <dfe@tgwbd.org>
Tue, 27 Jan 2004 00:50:57 +0000 (00:50 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Tue, 27 Jan 2004 00:50:57 +0000 (00:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cocoa/NSApplication.h [new file with mode: 0644]
src/cocoa/app.mm

diff --git a/include/wx/cocoa/NSApplication.h b/include/wx/cocoa/NSApplication.h
new file mode 100644 (file)
index 0000000..35ead1e
--- /dev/null
@@ -0,0 +1,30 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name:        wx/cocoa/NSApplication.h
+// Purpose:     wxNSApplicationDelegate definition
+// Author:      David Elliott
+// Modified by:
+// Created:     2004/01/26
+// RCS-ID:      $Id$
+// Copyright:   (c) 2003,2004 David Elliott
+// Licence:     wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_COCOA_NSAPPLICATION_H__
+#define _WX_COCOA_NSAPPLICATION_H__
+
+// ========================================================================
+// wxNSApplicationDelegate
+// ========================================================================
+@interface wxNSApplicationDelegate : NSObject
+{
+}
+
+// Delegate methods
+- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication;
+- (void)applicationWillBecomeActive:(NSNotification *)notification;
+- (void)applicationDidBecomeActive:(NSNotification *)notification;
+- (void)applicationWillResignActive:(NSNotification *)notification;
+- (void)applicationDidResignActive:(NSNotification *)notification;
+@end // interface wxNSApplicationDelegate : NSObject
+
+#endif //ndef _WX_COCOA_NSAPPLICATION_H__
index 2fe3e1874a3552b2f3ea045b745e72745cd2d0d3..909b71fe4fd43317334c61e80cc5b731c19d1939 100644 (file)
@@ -25,6 +25,7 @@
 #include "wx/cocoa/ObjcPose.h"
 #include "wx/cocoa/autorelease.h"
 #include "wx/cocoa/mbarman.h"
+#include "wx/cocoa/NSApplication.h"
 
 #if wxUSE_WX_RESOURCES
 #  include "wx/resource.h"
@@ -119,18 +120,6 @@ WX_IMPLEMENT_POSER(wxPoserNSApplication);
 // ========================================================================
 // wxNSApplicationDelegate
 // ========================================================================
-@interface wxNSApplicationDelegate : NSObject
-{
-}
-
-// Delegate methods
-- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication;
-- (void)applicationWillBecomeActive:(NSNotification *)notification;
-- (void)applicationDidBecomeActive:(NSNotification *)notification;
-- (void)applicationWillResignActive:(NSNotification *)notification;
-- (void)applicationDidResignActive:(NSNotification *)notification;
-@end // interface wxNSApplicationDelegate : NSObject
-
 @implementation wxNSApplicationDelegate : NSObject
 
 // NOTE: Terminate means that the event loop does NOT return and thus