Re: Setting a file's icon
Re: Setting a file's icon
- Subject: Re: Setting a file's icon
- From: "Jeff Galyan" <email@hidden>
- Date: Sun, 30 Dec 2001 10:33:53 -0700
First you need an icns file for each different icon (you can have one icon
for all documents, or if you handle different file types, you might want one
icon for each). Use Icon Composer to create the icns files you need (you'll
need 128x128 graphics for each icon).
In Project Builder's Targets tab, select your application under "Targets".
In the editor pane, you'll see a bunch of tabs appear when you select your
target. Go to the Application Settings tab, and where it says "Signature"
and has "????" you need to set an application signature. BE SURE YOU
REGISTER YOUR APPLICATION SIGNATURE WITH APPLE BEFORE YOU USE IT. If you
don't, someone else can use it and mess stuff up, or you might be using a
signature (also called "creator code") that someone else has registered, in
which case your app might mess stuff up (this has to do with the desktop
database and some other Finder stuff). Anyway, in the Signature box, you
enter your application's four-character signature.
Scroll down to Document Types, and add the document types your application
handles.
For an example, see Vermont Recipes #1 at www.stepwise.com in the Articles
section. Bill does a great job explaining this stuff.
--Jeff
On 12/30/01 7:26 AM, "kubernan" <email@hidden> wrote:
>
Hello !
>
>
I read my mailing list archive but i didn't find the answer of my
>
problem (there are threads with
>
"Setting a file's icon" as subject but it don't have all responses).
>
>
In my program i'd like to set the icon of the saved files. how to do
>
that ? (nothing in NSWorkspace, just for reading, and
>
nothing in file manager).
>
>
Thx for your help.
>
K.
>
_______________________________________________
>
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.