Re: Icon Madness -or- competing file types
Re: Icon Madness -or- competing file types
- Subject: Re: Icon Madness -or- competing file types
- From: Chris Ridd <email@hidden>
- Date: Fri, 01 Nov 2002 16:59:41 +0000
On 1/11/02 4:31 pm, James Derry <email@hidden> wrote:
>
Hi all once again,
>
>
The archives haven't been much help in my particular question -- if it's
>
been covered, I humbly apologize!
>
>
I'll preface this by saying that I *can* make document icons work for *my
>
own* file types, e.g., document.mytype.
>
>
Where I'm running into trouble is getting my document icons to stick for
>
other, competing file types. For example, imagine I'm trying to process
>
.html, .htm, and/or .php files -- saving a document uses the icon for the
>
default program for the file type. In this case, BBEdit for .php files, and
>
Mozilla for .html/.htm files. Sure, when processing pre-made files, I'm not
>
necessarily against this behavior. But when creating a NEW file and saving
>
it, I think it should use my own icons.
>
>
Of course, when I Get-Info in Finder, my program's saved files -- even the
>
ones my program created -- are "open with" BBEdit and/or Mozilla. When I
>
change the "open with" setting, my icons pop up normally. But I guess I feel
>
I shouldn't have to change the "open with" on files that my own program
>
saved.
>
>
Under pre-X systems, I'd look at creator codes, but these sadly seem to have
>
disappeared for Cocoa applications, although I found lots of good stuff for
>
them in Carbon documentation (which I don't really want to tackle!).
They still exist, as do type codes. You can set them all up in your
Info.plist, and there's some GUI in PB to let you edit this nicely.
I haven't written an app yet which used creator codes so it might not work.
But it looks as though it is meant to work ;-)
Cheers,
Chris
_______________________________________________
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.