Corrected a problem with the class editor.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@14297 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2002-08-20 04:46:07 +00:00
parent 6e0ac100e7
commit 27a145e81c
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2002-08-20 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: -[GormDocument setSelectionFromEditor:]
added conditional to test if a given editor responds to
the method window prior to calling makeFirstResponder. This
was causing a problem when adding new classes.
2002-08-17 Gregory John Casamento <greg_casamento@yahoo.com>
* Palettes/3Containers/main.m: The scroll view for the table view and

View file

@ -2115,7 +2115,10 @@ static NSImage *classesImage = nil;
{
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
NSDebugLog(@"setSelectionFromEditor %@", anEditor);
[[anEditor window] makeFirstResponder: anEditor];
if([(id)anEditor respondsToSelector: @selector(window)])
{
[[anEditor window] makeFirstResponder: anEditor];
}
[nc postNotificationName: IBSelectionChangedNotification
object: anEditor];
}