Code cleanup. Removal of "new" call.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21319 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-06-17 11:52:30 +00:00
parent 5ab6e00e3e
commit f05bc9d063
5 changed files with 22 additions and 15 deletions

View file

@ -1,3 +1,10 @@
2005-06-17 07:59 Gregory John Casamento <greg_casamento@yahoo.com>
* Palettes/0Menus/GormMenuEditor.m
* Palettes/0Menus/main.m
* Palettes/1Windows/main.m
* Palettes/3Containers/inspectors.m: Code cleanup.
2005-06-17 00:47 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormClassManager.m

View file

@ -673,7 +673,7 @@ void _attachAll(NSMenu *menu, id document)
{
document = aDocument;
ASSIGN(edited, anObject);
selection = [NSMutableArray new];
selection = [[NSMutableArray alloc] init];
rep = [edited menuRepresentation];
/*

View file

@ -85,7 +85,7 @@
/*
* The Info menu
*/
m = [GormNSMenu new];
m = [[GormNSMenu alloc] init];
[m addItemWithTitle: @"Info Panel..."
action: @selector(orderFrontStandardInfoPanel:)
keyEquivalent: @""];
@ -161,7 +161,7 @@
/*
* The Document menu
*/
m = [GormNSMenu new];
m = [[GormNSMenu alloc] init];
[m addItemWithTitle: @"Open..."
action: @selector(openDocument:)
keyEquivalent: @"o"];
@ -209,7 +209,7 @@
/*
* The Text menu
*/
m = [GormNSMenu new];
m = [[GormNSMenu alloc] init];
[m addItemWithTitle: @"Align Left"
action: @selector(alignLeft:)
keyEquivalent: @""];
@ -251,7 +251,7 @@
/*
* The Edit menu
*/
m = [GormNSMenu new];
m = [[GormNSMenu alloc] init];
[m addItemWithTitle: @"Cut"
action: @selector(cut:)
keyEquivalent: @"x"];
@ -287,7 +287,7 @@
/*
* The Find menu
*/
m = [GormNSMenu new];
m = [[GormNSMenu alloc] init];
[m addItemWithTitle: @"Find Panel..."
action: NULL
keyEquivalent: @"f"];
@ -326,7 +326,7 @@
/*
* The Format menu
*/
m = [GormNSMenu new];
m = [[GormNSMenu alloc] init];
/*
* Font submenu
*/
@ -363,7 +363,7 @@
i = (NSMenuItem *)[m addItemWithTitle: @"Text"
action: NULL
keyEquivalent: @""];
s = [GormNSMenu new];
s = [[GormNSMenu alloc] init];
[s addItemWithTitle: @"Align Left"
action: @selector(alignLeft:)
keyEquivalent: @""];
@ -429,7 +429,7 @@
/*
* The Windows menu
*/
m = [GormNSMenu new];
m = [[GormNSMenu alloc] init];
[m addItemWithTitle: @"Arrange In Front"
action: @selector(arrangeInFront:)
keyEquivalent: @""];
@ -480,7 +480,7 @@
/*
* The Services menu
*/
m = [GormNSMenu new];
m = [[GormNSMenu alloc] init];
[m setTitle: @"Services"];
i = [[NSMenuItem alloc] initWithTitle: @"Services"
action: @selector(submenuAction:)
@ -504,7 +504,7 @@
/*
* The general submenu
*/
m = [GormNSMenu new];
m = [[GormNSMenu alloc] init];
[m addItemWithTitle: @"Item"
action: NULL
keyEquivalent: @""];
@ -530,7 +530,7 @@
/*
* A whole new menu...
*/
menu = [GormMenuMaker new];
menu = [[GormMenuMaker alloc] init];
v = [[NSButton alloc] initWithFrame: NSMakeRect(148,6,48,48)];
[v setBordered: NO];
[v setImage: dragImage];

View file

@ -120,7 +120,7 @@
defer: NO];
contents = [originalWindow contentView];
w = [GormWindowMaker new];
w = [[GormWindowMaker alloc] init];
v = [[NSButton alloc] initWithFrame: NSMakeRect(35, 60, 80, 64)];
[v setBordered: NO];
[v setImage: dragImage];
@ -133,7 +133,7 @@
RELEASE(v);
RELEASE(w);
w = [GormPanelMaker new];
w = [[GormPanelMaker alloc] init];
v = [[NSButton alloc] initWithFrame: NSMakeRect(155, 60, 80, 64)];
[v setBordered: NO];
[v setImage: dragImage];

View file

@ -382,7 +382,7 @@
}
// initialize
cell = [cls new];
cell = [[cls alloc] init];
[object setDataCell: cell];
[[object tableView] setNeedsDisplay: YES];