Re: Generic application icon
Re: Generic application icon
- Subject: Re: Generic application icon
- From: Dan Waylonis <email@hidden>
- Date: Tue, 28 Oct 2003 15:06:42 -0800
On Oct 28, 2003, at 10:02 AM, Chad Armstrong wrote:
>
I've searched around a bit, and found some interesting things hidden
>
inside my computer, but I cannot seem to find the icns file for the
>
generic application icon. Does anyone know where this icon is saved?
>
Thanks.
Hi Chad,
I think that the actual icon is buried within the Finder, but you could
do something like:
NSImage *image = [[NSWorkspace sharedWorkspace]
iconForFileType:@".app"];
NSData *tiff = [image TIFFRepresentation];
NSString *path = @"/tmp/AppIcon.tiff";
[tiff writeToFile:path atomically:YES];
Dan
_________________________________________________
Dan Waylonis email@hidden
Software Engineer
http://www.nekotech.com
nekotech SOFTWARE 650.964.2490 (O)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.