• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Best 'Cocoa' File Preview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Best 'Cocoa' File Preview (From: David Blanton <email@hidden>)
 >Re: Best 'Cocoa' File Preview (From: Graham Cox <email@hidden>)
 >Re: Best 'Cocoa' File Preview (From: David Blanton <email@hidden>)
 >Re: Best 'Cocoa' File Preview (From: Julien Jalon <email@hidden>)
 >Re: Best 'Cocoa' File Preview (From: David Blanton <email@hidden>)
 >Re: Best 'Cocoa' File Preview (From: David Blanton <email@hidden>)
 >Best 'Cocoa' File Preview (From: Julien Jalon <email@hidden>)
 >Re: Best 'Cocoa' File Preview (From: David Blanton <email@hidden>)
 >Re: Best 'Cocoa' File Preview (From: "Adam R. Maxwell" <email@hidden>)
 >Re: Best 'Cocoa' File Preview (From: David Blanton <email@hidden>)

  • Prev by Date: Re: Saving NSArray of custom objects
  • Next by Date: Re: Cocoa Frontend to SDL App
  • Previous by thread: Re: Best 'Cocoa' File Preview
  • Next by thread: How to prevent NSTableView from reordering rows when clicking at a header cell?
  • Index(es):
    • Date
    • Thread