On 2006-09-10 23:30:09 +0200 Christophe JALADY
<[EMAIL PROTECTED]> wrote:
The method
pathForResource: ofType: inDirectory: forLocalization:
is not implemented in the class NSBundle. (In gnustep-base 1.13.0).
If somemone have the skills, the time and want to implement it for
the next
release ... I will be really, really grateful for that !!!
Untested but should work as expected.
- (NSString*) pathForResource: (NSString*)name
ofType: (NSString*)ext
inDirectory: (NSString*)subPath
forLocalization: (NSString*)localizationName
{
NSArray *array = nil;
NSEnumerator *enumerator = nil;
NSString *path = nil,
*result = nil;
array = [self pathsForResourcesOfType: ext
inDirectory: subPath
forLocalization: localizationName];
if( array )
{
enumerator = [array objectEnumerator];
while( (path = [enumerator nextObject]) )
{
if( [path rangeOfString: name] )
{
result = path;
}
}
}
return result;
}
--
Chris
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep