Set selection based on top level editor.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21411 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-07-06 14:47:33 +00:00
parent 9d116f0f2a
commit f55c5147da
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-07-06 10:48 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormDocument.m: changeToViewWithTag: added code to
change current selection when switching the editor.
2005-07-05 10:59 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormDocument.m: Corrected problem where the Gorm

View file

@ -783,16 +783,19 @@ static NSImage *fileImage = nil;
case 0: // objects
{
[selectionBox setContentView: scrollView];
[self setSelectionFromEditor: objectsView];
}
break;
case 1: // images
{
[selectionBox setContentView: imagesScrollView];
[self setSelectionFromEditor: imagesView];
}
break;
case 2: // sounds
{
[selectionBox setContentView: soundsScrollView];
[self setSelectionFromEditor: soundsView];
}
break;
case 3: // classes
@ -807,6 +810,7 @@ static NSImage *fileImage = nil;
id obj = [selection objectAtIndex: 0];
[classesView selectClassWithObject: obj];
}
[self setSelectionFromEditor: classesView];
}
break;
case 4: // file prefs