mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Change to make the class added by the parser be selected in the outline/classes view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20414 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
935fba9568
commit
191c716d3b
4 changed files with 18 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-12-03 07:09 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormClassManager.[hm]: New method allCustomClassNames which
|
||||
returns the customClasses array.
|
||||
* GormDocument.m: Change in handleNotification: method to
|
||||
select the class just added.
|
||||
|
||||
2004-12-02 06:20 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormObjCHeaderParser/OCClass.m: [OCClass parse] added
|
||||
|
|
|
@ -75,6 +75,7 @@
|
|||
- (NSArray*) allSubclassesOf: (NSString *)superClass;
|
||||
- (NSArray*) customSubClassesOf: (NSString *)superclass;
|
||||
- (NSArray*) allCustomSubclassesOf: (NSString *)superclass;
|
||||
- (NSArray*) allCustomClassNames;
|
||||
|
||||
- (BOOL) addClassNamed: (NSString*)className
|
||||
withSuperClassNamed: (NSString*)superClassName
|
||||
|
|
|
@ -698,7 +698,8 @@
|
|||
|
||||
- (NSArray*) allCustomClassNames
|
||||
{
|
||||
return [customClassMap allKeys];
|
||||
// return [customClassMap allKeys];
|
||||
return customClasses;
|
||||
}
|
||||
|
||||
- (NSArray*) allClassNames
|
||||
|
|
|
@ -1687,9 +1687,17 @@ static NSImage *fileImage = nil;
|
|||
}
|
||||
else if ([name isEqual: GormDidAddClassNotification])
|
||||
{
|
||||
NSArray *customClasses = [classManager allCustomClassNames];
|
||||
NSString *newClass = [customClasses lastObject];
|
||||
|
||||
// go to the class which was just loaded in the classes view...
|
||||
[classesView reloadData];
|
||||
[selectionBox setContentView: classesScrollView];
|
||||
|
||||
if(newClass != nil)
|
||||
{
|
||||
[self selectClass: newClass];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue