From 7f8251ed5991669e109bfa87f7ad6d3dba01533b Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Fri, 17 Jun 2005 04:17:39 +0000 Subject: [PATCH] Code cleanup. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21316 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 4 ++++ Gorm.m | 14 +++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3941a270..acfc055d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-06-17 00:24 Gregory John Casamento + + * Gorm.m: Code cleanup. + 2005-06-16 23:49 Gregory John Casamento * Gorm.m: Override "stop:" to call endTesting: if a test diff --git a/Gorm.m b/Gorm.m index 9f7506ac..ba8135d9 100644 --- a/Gorm.m +++ b/Gorm.m @@ -113,7 +113,7 @@ path = [bundle pathForImageResource: @"GormTesting"]; testingImage = [[NSImage alloc] initWithContentsOfFile: path]; - documents = [NSMutableArray new]; + documents = [[NSMutableArray alloc] init]; [nc addObserver: self selector: @selector(handleNotification:) name: IBSelectionChangedNotification @@ -277,7 +277,7 @@ /* kept in the case one want access to the classManager without document */ else if (classManager == nil) { - classManager = [GormClassManager new]; + classManager = [[GormClassManager alloc] init]; } return classManager; @@ -434,7 +434,7 @@ - (void) open: (id) sender { - GormDocument *doc = AUTORELEASE([GormDocument new]); + GormDocument *doc = AUTORELEASE([[GormDocument alloc] init]); [documents addObject: doc]; if ([doc openDocument: sender] == nil) @@ -451,7 +451,7 @@ - (void) newGormDocument : (id) sender { - id doc = AUTORELEASE([GormDocument new]); + id doc = AUTORELEASE([[GormDocument alloc] init]); [documents addObject: doc]; switch ([sender tag]) { @@ -782,7 +782,7 @@ if([(GormDocument *)[self activeDocument] isTopLevelObject: obj]) { - panel = [GormSetNameController new]; + panel = [[GormSetNameController alloc] init]; returnPanel = [panel runAsModal]; textField = [panel textField]; @@ -1109,7 +1109,7 @@ - (BOOL)application:(NSApplication *)application openFile:(NSString *)fileName { - GormDocument *doc = AUTORELEASE([GormDocument new]); + GormDocument *doc = AUTORELEASE([[GormDocument alloc] init]); [documents addObject: doc]; if ([doc loadDocument: fileName] == nil) @@ -1130,7 +1130,7 @@ { if (palettesManager == nil) { - palettesManager = [GormPalettesManager new]; + palettesManager = [[GormPalettesManager alloc] init]; } return palettesManager; }