Created
April 16, 2009 15:22
-
-
Save atg/96472 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSImage *)image | |
{ | |
Class imgClass = [NSImage class]; | |
NSImage *imgObject = [imgClass alloc]; | |
Class selfClass = [self class]; | |
NSBundle *bundle = [NSBundle bundleForClass:selfClass]; | |
NSString *filePath = [bundle pathForResource:@"document__plus" ofType:@"png"]; | |
[allocatedObject initWithContentsOfFile:filePath]; | |
[imgObject autorelease]; | |
return imgObject; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment