mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 12:30:47 +00:00
GSModelLoaderFact, GSServicesManager and GSTextStorage merges
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38699 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dc754ea0a5
commit
f9ebfcb1cf
3 changed files with 57 additions and 5 deletions
|
@ -130,6 +130,23 @@ static NSMutableDictionary *_modelMap = nil;
|
|||
return [_modelMap objectForKey: type];
|
||||
}
|
||||
|
||||
+ (NSArray *) supportedTypes
|
||||
{
|
||||
NSArray *objectArray = [_modelMap allValues];
|
||||
NSArray *sortedArray = [objectArray sortedArrayUsingSelector:
|
||||
@selector(_comparePriority:)];
|
||||
NSEnumerator *oen = [sortedArray objectEnumerator];
|
||||
Class cls = nil;
|
||||
NSMutableArray *types = [[NSMutableArray alloc] init];
|
||||
|
||||
while ((cls = [oen nextObject]) != nil)
|
||||
{
|
||||
[types addObject: [cls type]];
|
||||
}
|
||||
|
||||
return AUTORELEASE(types);
|
||||
}
|
||||
|
||||
+ (NSString *) supportedModelFileAtPath: (NSString *)modelPath
|
||||
{
|
||||
NSString *result = nil;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue