mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 06:00:44 +00:00
Added method to get all subclasses for the custom class inspector. Correction for Report #6345.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@18118 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c6084cc43b
commit
77ef994fcb
4 changed files with 23 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2003-11-23 15:28 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormClassManager.[hm]: Added method allSubclassesOf: to get all
|
||||
subclasses whether custom or not.
|
||||
* GormCustomClassInspector.m: Call new method in class manager to
|
||||
get the subclasses. Corrects Report #6345.
|
||||
|
||||
2003-11-23 10:08 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Palettes/1Windows/GormNSPanel.m: Added flag to allow resizing of
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
- (NSArray*) extraActionsForObject: (id)anObject;
|
||||
- (NSArray*) extraOutletsForObject: (id)anObject;
|
||||
- (NSArray*) subClassesOf: (NSString *)superclass;
|
||||
- (NSArray*) allSubclassesOf: (NSString *)superClass;
|
||||
- (NSArray*) customSubClassesOf: (NSString *)superclass;
|
||||
- (NSArray*) allCustomSubclassesOf: (NSString *)superclass;
|
||||
- (void) removeAction: (NSString*)anAction forObject: (id)anObject;
|
||||
|
|
|
@ -741,6 +741,20 @@
|
|||
}
|
||||
}
|
||||
|
||||
- (NSArray *) allSubclassesOf: (NSString *)superClass
|
||||
{
|
||||
NSMutableArray *array = [NSMutableArray array];
|
||||
|
||||
if(superClass != nil)
|
||||
{
|
||||
[self allSubclassesOf: superClass
|
||||
referenceClassList: [classInformation allKeys]
|
||||
intoArray: array];
|
||||
}
|
||||
|
||||
return array;
|
||||
}
|
||||
|
||||
- (NSArray *) allCustomSubclassesOf: (NSString *)superClass
|
||||
{
|
||||
NSMutableArray *array = [NSMutableArray array];
|
||||
|
|
|
@ -146,7 +146,7 @@ createRowsForColumn: (int)column
|
|||
classes = [NSMutableArray arrayWithObject: _parentClassName];
|
||||
// get a list of all of the classes allowed and the class to be shown.
|
||||
[classes addObjectsFromArray:
|
||||
[_classManager allCustomSubclassesOf: _parentClassName]];
|
||||
[_classManager allSubclassesOf: _parentClassName]];
|
||||
|
||||
// enumerate through the classes...
|
||||
e = [classes objectEnumerator];
|
||||
|
|
Loading…
Reference in a new issue