Temporarily comment out some code with #if 0/1 so it will compile.

Get Adam Fedor or someone to fix it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2331 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1997-05-03 21:04:39 +00:00
parent 1c0a89707d
commit 6b264197fd
2 changed files with 19 additions and 3 deletions

View file

@ -274,6 +274,7 @@ _bundle_load_callback(Class theClass, Category *theCategory)
return [[[NSBundle alloc] initWithPath: path] autorelease];
}
#if 0
+ (NSString *) pathForResource: (NSString *)name
ofType: (NSString *)ext
inDirectory: (NSString *)bundlePath
@ -283,16 +284,22 @@ _bundle_load_callback(Class theClass, Category *theCategory)
inDirectory:bundlePath
withVersion:0];
}
#endif
+ (NSString *) pathForResource: (NSString *)name
ofType: (NSString *)ext
inDirectory: (NSString *)bundlePath
withVersion: (int)version
{
NSBundle* bundle = [NSBundle bundleWithPath:bundlePath];
#if 1
[self notImplemented:_cmd];
return nil;
#else
NSBundle* bundle = [NSBundle bundleWithPath:bundlePath];
[bundle setBundleVersion:version];
return [bundle pathForResource:name ofType:ext inDirectory:nil];
[bundle setBundleVersion:version];
return [bundle pathForResource:name ofType:ext inDirectory:nil];
#endif
}
- initWithPath:(NSString *)path;
@ -523,9 +530,14 @@ _bundle_load_callback(Class theClass, Category *theCategory)
- (NSString *) pathForResource: (NSString *)name
ofType: (NSString *)ext;
{
#if 1
[self notImplemented: _cmd];
return nil;
#else
return [self pathForResource: name
ofType: ext
inDirectory: nil];
#endif
}
+ (NSString *) pathForResource: (NSString *)name