2 // NSImage+FrameworkImage.m
5 // Created by Sean Patrick O'Brien on 9/25/06.
6 // Copyright 2006 Sean Patrick O'Brien. All rights reserved.
9 #import "NSImage+FrameworkImage.h"
13 @implementation NSImage(FrameworkImageAdditions)
15 + (id)frameworkImageNamed:(NSString *)name
17 if([NSImage imageNamed:name])
18 return [NSImage imageNamed:name];
20 NSBundle *bundle = [NSBundle bundleForClass: [NFIWindow class]];
21 NSImage *image = [[[NSImage alloc] initWithContentsOfFile:[bundle pathForImageResource:name]] autorelease];