Re: Setting Document Icon
Re: Setting Document Icon
- Subject: Re: Setting Document Icon
- From: John Stiles <email@hidden>
- Date: Thu, 14 Oct 2004 18:33:30 -0700
To change the icons of the files you make, set their type and creator
to a type you register and your creator code. This will override the
global tar extension mapping. However, it also means that when these
tars are double clicked, they'll open in your app, which apparently
cannot read them. So maybe this isn't a good idea.
You can set the custom icon bit and add a custom icon to the resource
fork, but this is probably not the right way to do what you want. It
also involves deep spelunking into Carbon (more so than the previous
solution), and some Cocoa programmers may find it a little distasteful.
On Oct 14, 2004, at 5:59 PM, Dennis Falling wrote:
I've been looking around for this but haven't had any luck... How can
I change the icon of files that my program creates? Or better yet,
change the icon for all files of that type.
My program tars up files, but it doesn't untar them- so I don't want
those documents to try to open with my program. Is this possible?
Thanks,
-dennis falling
_______________________________________________
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
_______________________________________________
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