Added code to scroll to the class being edited.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@15260 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2002-12-06 06:10:11 +00:00
parent 3ca2d79b5b
commit 10ba0cd4ce
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2002-12-06 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: Added code to scroll to the class name
when the subclassing or changing the class name.
2002-12-05 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.[mh]: Added method named

View file

@ -594,6 +594,7 @@ static NSImage *classesImage = nil;
[classesView expandItem: itemSelected];
i = [classesView rowForItem: newClassName];
[classesView selectRow: i byExtendingSelection: NO];
[classesView scrollRowToVisible: i];
[self editClass: self];
}
@ -2984,12 +2985,15 @@ objectValueForTableColumn: (NSTableColumn *)aTableColumn
BOOL rename = [self renameConnectionsForClassNamed: item toName: anObject];
if(rename)
{
int row = 0;
[classManager renameClassNamed: item newName: anObject];
[self detachObject: [self objectForName: item]];
[gov reloadData];
row = [gov rowForItem: anObject];
[gov scrollRowToVisible: row];
}
}
}
[gov setNeedsDisplay: YES];
}