mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
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:
parent
6e0ac100e7
commit
27a145e81c
2 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue