#include "Image.h" @implementation Image + (id) imageNamed: (NSString *)aName { NSBundle* bundle = [NSBundle bundleForClass: NSClassFromString(@"Theme")]; NSImage* ret = nil; if ([bundle pathForImageResource: aName]) ret = [[NSImage alloc] initWithContentsOfFile: [bundle pathForImageResource: aName]]; if (ret == nil) { ret = [super imageNamed: aName]; } return ret; } @end