* Headers/Additions/GNUstepGUI/GSModelLoaderFactory.h,

* Source/GSModelLoaderFactory.m: Add new method +supportedTypes.
* Source/NSBundleAdditions.m: Use this new method to implement
  NIB resource detection on top of the base methods instead of doing
  it here.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37421 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2013-12-01 12:26:12 +00:00
parent 46d7887140
commit 3ad5c33813
4 changed files with 61 additions and 45 deletions

View file

@ -32,6 +32,7 @@
#import <Foundation/NSObject.h>
#import <Foundation/NSZone.h>
@class NSArray;
@class NSData;
@class NSDictionary;
@class NSString;
@ -51,10 +52,11 @@
@interface GSModelLoaderFactory : NSObject
+ (void) registerModelLoaderClass: (Class)aClass;
+ (Class)classForType: (NSString *)type;
+ (Class) classForType: (NSString *)type;
+ (NSArray *) supportedTypes;
+ (NSString *) supportedModelFileAtPath: (NSString *)modelPath;
+ (GSModelLoader *)modelLoaderForFileType: (NSString *)type;
+ (GSModelLoader *)modelLoaderForFileName: (NSString *)modelPath;
+ (GSModelLoader *) modelLoaderForFileType: (NSString *)type;
+ (GSModelLoader *) modelLoaderForFileName: (NSString *)modelPath;
@end
#endif