Re: Best 'Cocoa' File Preview
Re: Best 'Cocoa' File Preview
- Subject: Re: Best 'Cocoa' File Preview
- From: Julien Jalon <email@hidden>
- Date: Tue, 14 Jul 2009 13:30:24 +0200
Hi David,
Glad you got it to work.
On Tue, Jul 14, 2009 at 3:34 AM, David Blanton <email@hidden>wrote:
>
> Furthermore why so convoluted and difficult? I should be able to say call
> me for files of type'.pes' and be done with it.
That's what you need to do. Except file extensions is not a "robust" way to
designate file types (what about mime types or other way to identify
types?). That's why MacOS X uses an intermediate abstraction for type naming
(the "content type")
- You have to declare the content type to the OS ("UTTypeIdentifier") and
how to "sniff" files of this type (file extension, mime type, HFS type and
whatever might come up in the future under "UTTypeTagSpecification"). You
can also declare other information as well (like its type description,
conformance, etc.)
- At this point the OS is able to identify your files, now you can associate
your file type to applications or plug-ins in "CFBundleDocumentTypes":
--
Julien
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden