mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Further bugfixes and improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@17517 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b1cd469a9a
commit
ddefb9580e
4 changed files with 20 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-08-23 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormDocument.[hm]: Made selectClassWithObject public.
|
||||
* GormInspectorManager.m: Added logic to call selectClassWithObject
|
||||
so that when an object is selected, the classes view focuses on it.
|
||||
|
||||
2003-08-22 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormClassManager.m: Removed extraneous release calls. In most
|
||||
|
|
|
@ -145,6 +145,7 @@
|
|||
- (id) remove: (id)sender;
|
||||
- (id) createClassFiles: (id)sender;
|
||||
- (id) instantiateClass: (id)sender;
|
||||
- (void) selectClassWithObject: (id)obj;
|
||||
|
||||
// sound & image support
|
||||
- (id) openSound: (id)sender;
|
||||
|
|
|
@ -399,10 +399,16 @@ static NSImage *classesImage = nil;
|
|||
}
|
||||
}
|
||||
|
||||
- (void) _selectClassWithObject: (id)obj
|
||||
- (void) selectClassWithObject: (id)obj
|
||||
{
|
||||
if ([obj respondsToSelector: @selector(className)])
|
||||
NSString *customClass = [classManager customClassForObject: obj];
|
||||
|
||||
if(customClass != nil)
|
||||
{
|
||||
[self _selectClass: customClass];
|
||||
}
|
||||
else if ([obj respondsToSelector: @selector(className)])
|
||||
{
|
||||
[self _selectClass: [obj className]];
|
||||
}
|
||||
}
|
||||
|
@ -439,7 +445,7 @@ static NSImage *classesImage = nil;
|
|||
if ([selection count] > 0)
|
||||
{
|
||||
id obj = [[objectsView selection] objectAtIndex: 0];
|
||||
[self _selectClassWithObject: obj];
|
||||
[self selectClassWithObject: obj];
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -427,6 +427,10 @@
|
|||
obj = [(NSScrollView *)obj documentView];
|
||||
}
|
||||
|
||||
// select the current class in the document...
|
||||
[(GormDocument *)[(id <IB>)NSApp activeDocument] selectClassWithObject: obj];
|
||||
|
||||
|
||||
/*
|
||||
* Set panel title for the type of object being inspected.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue