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:
Marcian Lytwyn 2015-06-26 16:41:14 +00:00
parent dc754ea0a5
commit f9ebfcb1cf
3 changed files with 57 additions and 5 deletions

View file

@ -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;