mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 00:20:49 +00:00
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:
parent
db4b14985e
commit
703173d8c5
4 changed files with 33 additions and 30 deletions
|
@ -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)];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue