diff --git a/AppController.m b/AppController.m index b547b2f..8dab788 100644 --- a/AppController.m +++ b/AppController.m @@ -26,36 +26,37 @@ + (void)initialize { - NSMutableDictionary *defaults = [NSMutableDictionary dictionary]; + NSMutableDictionary *defaults = [NSMutableDictionary dictionary]; - /* - * Register your app's defaults here by adding objects to the - * dictionary, eg - * - * [defaults setObject:anObject forKey:keyForThatObject]; - * - */ - - [[NSUserDefaults standardUserDefaults] registerDefaults:defaults]; - [[NSUserDefaults standardUserDefaults] synchronize]; + /* + * Register your app's defaults here by adding objects to the + * dictionary, eg + * + * [defaults setObject:anObject forKey:keyForThatObject]; + * + */ + + [[NSUserDefaults standardUserDefaults] registerDefaults:defaults]; + [[NSUserDefaults standardUserDefaults] synchronize]; } - (id)init { - if ((self = [super init])) + if ((self = [super init])) { } - return self; + + return self; } - (void)dealloc { - [super dealloc]; + [super dealloc]; } - (void)awakeFromNib { - [[NSApp mainMenu] setTitle:@"ChocolateDoomLauncher"]; + [[NSApp mainMenu] setTitle:@"ChocolateDoomLauncher"]; } - (void)applicationDidFinishLaunching:(NSNotification *)aNotif @@ -66,7 +67,7 @@ - (BOOL)applicationShouldTerminate:(id)sender { - return YES; + return YES; } - (void)applicationWillTerminate:(NSNotification *)aNotif @@ -82,3 +83,4 @@ } @end + diff --git a/IWADController.h b/IWADController.h index 611d258..ce7ae68 100644 --- a/IWADController.h +++ b/IWADController.h @@ -1,16 +1,36 @@ -/* All Rights reserved */ +/* ... */ +//----------------------------------------------------------------------------- +// +// 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. +// +//----------------------------------------------------------------------------- #include @interface IWADController : NSObject { - id chex; - id doom1; - id doom2; - id iwadSelector; - id configWindow; - id plutonia; - id tnt; + id chex; + id doom1; + id doom2; + id iwadSelector; + id configWindow; + id plutonia; + id tnt; } - (void) closeConfigWindow: (id)sender; diff --git a/IWADController.m b/IWADController.m index 3545480..03647d8 100644 --- a/IWADController.m +++ b/IWADController.m @@ -1,4 +1,24 @@ -/* All Rights reserved */ +/* ... */ +//----------------------------------------------------------------------------- +// +// 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. +// +//----------------------------------------------------------------------------- #include #include "IWADController.h" diff --git a/IWADLocation.h b/IWADLocation.h index b3ab173..f4e3f8d 100644 --- a/IWADLocation.h +++ b/IWADLocation.h @@ -1,4 +1,24 @@ -/* All Rights reserved */ +/* ... */ +//----------------------------------------------------------------------------- +// +// 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. +// +//----------------------------------------------------------------------------- #include diff --git a/IWADLocation.m b/IWADLocation.m index 904bb69..8de0328 100644 --- a/IWADLocation.m +++ b/IWADLocation.m @@ -1,9 +1,30 @@ -/* All Rights reserved */ +/* ... */ +//----------------------------------------------------------------------------- +// +// 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. +// +//----------------------------------------------------------------------------- #include #include "IWADLocation.h" -static id WAD_TYPES[] = { +static id WAD_TYPES[] = +{ @"wad", @"WAD" }; diff --git a/LauncherManager.h b/LauncherManager.h index 6f6fae1..161354d 100644 --- a/LauncherManager.h +++ b/LauncherManager.h @@ -1,4 +1,24 @@ -/* All Rights reserved */ +/* ... */ +//----------------------------------------------------------------------------- +// +// 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. +// +//----------------------------------------------------------------------------- #include #include "IWADController.h" diff --git a/LauncherManager.m b/LauncherManager.m index 317cea6..c806963 100644 --- a/LauncherManager.m +++ b/LauncherManager.m @@ -1,4 +1,24 @@ -/* All Rights reserved */ +/* ... */ +//----------------------------------------------------------------------------- +// +// 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. +// +//----------------------------------------------------------------------------- #include #include "LauncherManager.h"