Re: the image not the icon
Re: the image not the icon
- Subject: Re: the image not the icon
- From: Ryan Stevens <email@hidden>
- Date: Tue, 16 Nov 2004 15:30:38 -0800
NSImage *image = [[NSImage alloc] initWithContentsOfFile: yourFile];
// initialize now
or
NSImage *image = [[NSImage alloc] initByReferencingFile: yourFile]; //
initialize lazily
// use it
[image release];
On Nov 16, 2004, at 3:12 PM, Jeff Childers wrote:
image = [[[NSWorkspace sharedWorkspace] iconForFile:file]retain];
how do I make it the image and not the icon.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden