Hi David,

Glad you got it to work.

On Tue, Jul 14, 2009 at 3:34 AM, David Blanton <aired...@tularosa.net>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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to