mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 17:30:38 +00:00
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:
parent
53cc845d8f
commit
76a9c0ddc0
6 changed files with 40 additions and 16 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue