2004-10-30 Alex Perez <aperez@student.santarosa.edu>

* Headers/AppKit/NSImage.h (+_standardImageWithName:): New method.
	* Source/NSImage.m (+_standardImageWithName:): New method.
	* Source/NSWorkspace.m (_getImageForName:alternate:): Remove. Update
	callers to use +_standardImageWithName: instead.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20270 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2004-10-30 11:19:07 +00:00
parent db4b14985e
commit 703173d8c5
4 changed files with 33 additions and 30 deletions

View file

@ -273,6 +273,16 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
return image;
}
+ (NSImage *) _standardImageWithName: (NSString *)name
{
NSImage *image = nil;
image = [NSImage imageNamed: name];
if (image == nil)
image = [NSImage imageNamed: [@"common_" stringByAppendingString: name]];
return image;
}
- (id) init
{
return [self initWithSize: NSMakeSize(0, 0)];