Inspector should now show the name of an image when it's added to the button (or whatever view).

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20931 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-03-20 15:08:59 +00:00
parent a80f102678
commit 5d1448ad99
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2005-03-20 10:17 Gregory John Casamento <greg_casamento@yahoo.com>
* GormViewEditor.m: [GormViewEditor performDragOperation:]
call [GormDocument setSelectionFromEditor:] with self in order
to force the inspector to show the newly added image name.
2005-03-19 16:04 Gregory John Casamento <greg_casamento@yahoo.com>
* GormLib/InterfaceBuilder.h: Added new header

View file

@ -1344,6 +1344,7 @@ static BOOL currently_displaying = NO;
NSImage *image = [NSImage imageNamed: name];
// [image setArchiveByName: NO];
[(id)_editedObject setImage: AUTORELEASE([image copy])];
[document setSelectionFromEditor: self];
}
return YES;
}
@ -1355,6 +1356,7 @@ static BOOL currently_displaying = NO;
{
NSSound *sound = [NSSound soundNamed: name];
[(id)_editedObject setSound: AUTORELEASE([sound copy])];
[document setSelectionFromEditor: self];
}
return YES;
}