From 6921f30a44e0bdf1c3a2f8982e4a8cd290c22462 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 4 Jan 2010 22:01:32 +0000 Subject: Import OS X launcher code to trunk. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1784 --- pkg/osx/AppController.h | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 pkg/osx/AppController.h (limited to 'pkg/osx/AppController.h') diff --git a/pkg/osx/AppController.h b/pkg/osx/AppController.h new file mode 100644 index 00000000..80f9a461 --- /dev/null +++ b/pkg/osx/AppController.h @@ -0,0 +1,51 @@ +/* ... */ +//----------------------------------------------------------------------------- +// +// Copyright(C) 2009 Simon Howard +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +// 02111-1307, USA. +// +//----------------------------------------------------------------------------- + +#ifndef LAUNCHER_APPCONTROLLER_H +#define LAUNCHER_APPCONTROLLER_H + +#include +// Uncomment if your application is Renaissance-based +//#include + +@interface AppController : NSObject +{ +} + ++ (void)initialize; + +- (id)init; +- (void)dealloc; + +- (void)awakeFromNib; + +- (void)applicationDidFinishLaunching:(NSNotification *)aNotif; +- (BOOL)applicationShouldTerminate:(id)sender; +- (void)applicationWillTerminate:(NSNotification *)aNotif; +- (BOOL)application:(NSApplication *)application openFile:(NSString *)fileName; + +- (void)showPrefPanel:(id)sender; + +@end + +#endif + -- cgit v1.2.3 From c2f2fa12a68626a3d2a25231d0aa1c6146d555c3 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 9 Jan 2010 18:54:04 +0000 Subject: Initial code to identify file type by extension and add file to command line. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1793 --- pkg/osx/AppController.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkg/osx/AppController.h') diff --git a/pkg/osx/AppController.h b/pkg/osx/AppController.h index 80f9a461..6714eb2f 100644 --- a/pkg/osx/AppController.h +++ b/pkg/osx/AppController.h @@ -24,11 +24,12 @@ #define LAUNCHER_APPCONTROLLER_H #include -// Uncomment if your application is Renaissance-based -//#include + +#include "LauncherManager.h" @interface AppController : NSObject { + LauncherManager *launcherManager; } + (void)initialize; -- cgit v1.2.3 From 160ff32f2fb8ba7112938790044684c61a0b07b1 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 11 Jan 2010 19:10:42 +0000 Subject: Insert new files into the command line at the correct location, allowing multiple files to be opened at once. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1803 --- pkg/osx/AppController.h | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/osx/AppController.h') diff --git a/pkg/osx/AppController.h b/pkg/osx/AppController.h index 6714eb2f..88b59043 100644 --- a/pkg/osx/AppController.h +++ b/pkg/osx/AppController.h @@ -30,6 +30,7 @@ @interface AppController : NSObject { LauncherManager *launcherManager; + BOOL filesAdded; } + (void)initialize; -- cgit v1.2.3