diff --git a/ChangeLog b/ChangeLog index ec44ce6..1be9c05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2009-11-26 Richard frith-Macdonald + + * Modules/Projects/Application/Resources/AppController.m: + * Modules/Projects/Application/Resources/main.m: + * Modules/Projects/Application/Resources/AppController.h: + * Modules/Projects/Tool/Resources/main.m: + Update to conform to coding standards and to use GPL 3 as + default copyleft. + 2009-09-20 03:45-EDT Gregory John Casamento * Framework/PCMakefileFactory.m: Check if buildDir is nil before diff --git a/Modules/Projects/Application/Resources/AppController.h b/Modules/Projects/Application/Resources/AppController.h index 0df500e..23b1218 100644 --- a/Modules/Projects/Application/Resources/AppController.h +++ b/Modules/Projects/Application/Resources/AppController.h @@ -1,7 +1,7 @@ /* Project: $PROJECTNAME$ - Copyright (C) $YEAR$ Free Software Foundation + Copyright (C) $YEAR$ Free Software Foundation Author: $FULLUSERNAME$ @@ -12,7 +12,7 @@ This application 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. + version 3 of the License, or (at your option) any later version. This application is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -35,19 +35,20 @@ { } -+ (void)initialize; ++ (void) initialize; -- (id)init; -- (void)dealloc; +- (id) init; +- (void) dealloc; -- (void)awakeFromNib; +- (void) awakeFromNib; -- (void)applicationDidFinishLaunching:(NSNotification *)aNotif; -- (BOOL)applicationShouldTerminate:(id)sender; -- (void)applicationWillTerminate:(NSNotification *)aNotif; -- (BOOL)application:(NSApplication *)application openFile:(NSString *)fileName; +- (void) applicationDidFinishLaunching: (NSNotification *)aNotif; +- (BOOL) applicationShouldTerminate: (id)sender; +- (void) applicationWillTerminate: (NSNotification *)aNotif; +- (BOOL) application: (NSApplication *)application + openFile: (NSString *)fileName; -- (void)showPrefPanel:(id)sender; +- (void) showPrefPanel: (id)sender; @end diff --git a/Modules/Projects/Application/Resources/AppController.m b/Modules/Projects/Application/Resources/AppController.m index a19170e..6b85c9c 100644 --- a/Modules/Projects/Application/Resources/AppController.m +++ b/Modules/Projects/Application/Resources/AppController.m @@ -1,7 +1,7 @@ /* Project: $PROJECTNAME$ - Copyright (C) $YEAR$ Free Software Foundation + Copyright (C) $YEAR$ Free Software Foundation Author: $FULLUSERNAME$ @@ -12,7 +12,7 @@ This application 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. + version 3 of the License, or (at your option) any later version. This application is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -28,7 +28,7 @@ @implementation AppController -+ (void)initialize ++ (void) initialize { NSMutableDictionary *defaults = [NSMutableDictionary dictionary]; @@ -40,11 +40,11 @@ * */ - [[NSUserDefaults standardUserDefaults] registerDefaults:defaults]; + [[NSUserDefaults standardUserDefaults] registerDefaults: defaults]; [[NSUserDefaults standardUserDefaults] synchronize]; } -- (id)init +- (id) init { if ((self = [super init])) { @@ -52,36 +52,37 @@ return self; } -- (void)dealloc +- (void) dealloc { [super dealloc]; } -- (void)awakeFromNib +- (void) awakeFromNib { } -- (void)applicationDidFinishLaunching:(NSNotification *)aNotif +- (void) applicationDidFinishLaunching: (NSNotification *)aNotif { // Uncomment if your application is Renaissance-based -// [NSBundle loadGSMarkupNamed:@"Main" owner:self]; +// [NSBundle loadGSMarkupNamed: @"Main" owner: self]; } -- (BOOL)applicationShouldTerminate:(id)sender +- (BOOL) applicationShouldTerminate: (id)sender { return YES; } -- (void)applicationWillTerminate:(NSNotification *)aNotif +- (void) applicationWillTerminate: (NSNotification *)aNotif { } -- (BOOL)application:(NSApplication *)application openFile:(NSString *)fileName +- (BOOL) application: (NSApplication *)application + openFile: (NSString *)fileName { return NO; } -- (void)showPrefPanel:(id)sender +- (void) showPrefPanel: (id)sender { } diff --git a/Modules/Projects/Application/Resources/main.m b/Modules/Projects/Application/Resources/main.m index 32fd18c..f30779d 100644 --- a/Modules/Projects/Application/Resources/main.m +++ b/Modules/Projects/Application/Resources/main.m @@ -10,7 +10,7 @@ This application 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. + version 3 of the License, or (at your option) any later version. This application is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -30,12 +30,12 @@ main(int argc, const char *argv[]) // Uncomment if your application is Renaissance application /* CREATE_AUTORELEASE_POOL (pool); [NSApplication sharedApplication]; - [NSApp setDelegate:[AppController new]]; + [NSApp setDelegate: [AppController new]]; #ifdef GNUSTEP - [NSBundle loadGSMarkupNamed:@"MainMenu-GNUstep" owner:[NSApp delegate]]; + [NSBundle loadGSMarkupNamed: @"MainMenu-GNUstep" owner: [NSApp delegate]]; #else - [NSBundle loadGSMarkupNamed:@"MainMenu-OSX" owner:[NSApp delegate]]; + [NSBundle loadGSMarkupNamed: @"MainMenu-OSX" owner: [NSApp delegate]]; #endif RELEASE (pool); diff --git a/Modules/Projects/Tool/Resources/main.m b/Modules/Projects/Tool/Resources/main.m index 45c5a3a..58d39d2 100644 --- a/Modules/Projects/Tool/Resources/main.m +++ b/Modules/Projects/Tool/Resources/main.m @@ -10,7 +10,7 @@ This application 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. + version 3 of the License, or (at your option) any later version. This application is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of