Update copyright notice and conform to coding standards in templates

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@23548 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-09-18 12:57:33 +00:00
parent d9fb8ea6bb
commit a4c58b49cd
7 changed files with 49 additions and 40 deletions

View file

@ -21,7 +21,8 @@
You should have received a copy of the GNU General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111 USA.
*/
#import <AppKit/AppKit.h>
@ -30,18 +31,19 @@
{
}
+ (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

View file

@ -1,11 +1,11 @@
/*
Project: $PROJECTNAME$
Project: $PROJECTNAME$
Copyright (C) $YEAR$ Free Software Foundation
Author: $FULLUSERNAME$
Author: $FULLUSERNAME$
Created: $DATE$ by $USERNAME$
Created: $DATE$ by $USERNAME$
Application Controller
@ -21,14 +21,15 @@
You should have received a copy of the GNU General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA
*/
#import "AppController.h"
@implementation AppController
+ (void)initialize
+ (void) initialize
{
NSMutableDictionary *defaults = [NSMutableDictionary dictionary];
@ -36,15 +37,15 @@
* Register your app's defaults here by adding objects to the
* dictionary, eg
*
* [defaults setObject:anObject forKey:keyForThatObject];
* [defaults setObject: anObject forKey: keyForThatObject];
*
*/
[[NSUserDefaults standardUserDefaults] registerDefaults:defaults];
[[NSUserDefaults standardUserDefaults] registerDefaults: defaults];
[[NSUserDefaults standardUserDefaults] synchronize];
}
- (id)init
- (id) init
{
if ((self = [super init]))
{
@ -52,34 +53,35 @@
return self;
}
- (void)dealloc
- (void) dealloc
{
[super dealloc];
}
- (void)awakeFromNib
- (void) awakeFromNib
{
[[NSApp mainMenu] setTitle:@"$PROJECTNAME$"];
[[NSApp mainMenu] setTitle: @"$PROJECTNAME$"];
}
- (void)applicationDidFinishLaunching:(NSNotification *)aNotif
- (void) applicationDidFinishLaunching: (NSNotification *)aNotif
{
}
- (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
{
}
- (void)showPrefPanel:(id)sender
- (void) showPrefPanel: (id)sender
{
}

View file

@ -19,7 +19,8 @@
You should have received a copy of the GNU General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA
*/
#include <AppKit/AppKit.h>

View file

@ -21,7 +21,8 @@
You should have received a copy of the GNU General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA
*/
#ifndef _APPCONTROLLER_H_
@ -35,7 +36,7 @@
}
- (void) applicationDidFinishLaunching:(NSNotification *)aNotif;
- (void) applicationDidFinishLaunching: (NSNotification *)aNotif;
@end

View file

@ -21,16 +21,17 @@
You should have received a copy of the GNU General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA
*/
#include "AppController.h"
@implementation AppController
- (void) applicationDidFinishLaunching:(NSNotification *)aNotif
- (void) applicationDidFinishLaunching: (NSNotification *)aNotif
{
[NSBundle loadGSMarkupNamed:@"Main" owner:self];
[NSBundle loadGSMarkupNamed: @"Main" owner: self];
}
@end

View file

@ -19,7 +19,8 @@
You should have received a copy of the GNU General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA
*/
#include <Foundation/Foundation.h>
@ -32,13 +33,13 @@ int main(int argc, const char *argv[])
{
CREATE_AUTORELEASE_POOL (pool);
[NSApplication sharedApplication];
[NSApp setDelegate:[AppController new]];
[NSApp setDelegate: [AppController new]];
#ifdef GNUSTEP
[NSBundle loadGSMarkupNamed:@"MainMenu-GNUstep" owner:[NSApp delegate]];
#else
[NSBundle loadGSMarkupNamed:@"MainMenu-OSX" owner:[NSApp delegate]];
#endif
#ifdef GNUSTEP
[NSBundle loadGSMarkupNamed: @"MainMenu-GNUstep" owner: [NSApp delegate]];
#else
[NSBundle loadGSMarkupNamed: @"MainMenu-OSX" owner: [NSApp delegate]];
#endif
RELEASE (pool);
return NSApplicationMain (argc, argv);

View file

@ -19,7 +19,8 @@
You should have received a copy of the GNU General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA
*/
#include <Foundation/Foundation.h>