Re: Generic application icon
Re: Generic application icon
- Subject: Re: Generic application icon
- From: "Alastair J.Houghton" <email@hidden>
- Date: Wed, 29 Oct 2003 09:27:06 +0000
On Tuesday, October 28, 2003, at 11:06 pm, Dan Waylonis wrote:
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];
Note that you're on dodgy legal ground if you copy this icon around
with your program, because Apple hold the copyright. I don't know if
Apple have a stated position on this sort of thing (I certainly haven't
seen one), but I would imagine that if their icons turn-up on another
platform, you'll start getting letters from their legal people. As for
Mac OS X apps, as long as you aren't in competition with something
they're actually selling, I suspect they'll turn a blind eye... but
don't take my word for that.
If anyone from Apple would like to clarify the situation as regards use
of Apple icons in third-party Mac OS X applications, I think we'd all
be grateful.
Kind regards,
Alastair.
_______________________________________________
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.