Implement NSColorPicker, add method defs to NSImage.h, add ivar init to

NSImage.m, fix bug in NSBundle [-pathForImageResource:]


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6380 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
jagapen 2000-03-25 11:54:29 +00:00
parent 53cc845d8f
commit 76a9c0ddc0
6 changed files with 40 additions and 16 deletions

View file

@ -177,12 +177,7 @@
NSString *ext = [name pathExtension];
NSString *path = nil;
if (ext != nil)
{
name = [name stringByDeletingPathExtension];
path = [self pathForResource: name ofType: ext];
}
else
if ((ext == nil) || [ext isEqualToString:@""])
{
NSArray *types = [NSImage imageUnfilteredFileTypes];
unsigned c = [types count];
@ -194,6 +189,11 @@
path = [self pathForResource: name ofType: ext];
}
}
else
{
name = [name stringByDeletingPathExtension];
path = [self pathForResource: name ofType: ext];
}
return path;
}