Re: How to get a list of all known file types?
Re: How to get a list of all known file types?
- Subject: Re: How to get a list of all known file types?
- From: Daniel Waylonis <email@hidden>
- Date: Fri, 7 Nov 2008 15:17:34 -0800
On Nov 6, 2008, at 6:48 PM, Phil wrote:
On Fri, Nov 7, 2008 at 2:12 PM, Chris Idou <email@hidden> wrote:
I've got an app which is matching on file types, so I want the user
to be able to say "show me all the... say... MS-Word documents, or
JPeg images" or whatever. So I need to present the user with all
the possible types their system knows about, so they can select
what files they are interested in.
IIRC, this question has come up before and there doesn't appear to be
a way to get a list of all known UTIs from Launch Services.
The 10.4 version of Finder appeared to have some private way of
getting this list, however, the list was mostly useless for browsing
through due to the inordinate number of UTIs that applications/bundles
had declared.
This page:
http://www.cocoadev.com/index.pl?LaunchServices
lists an undocumented way of gathering the URLs for all executable
applications known to LaunchServices on your machine. You could
iterate over the applications, peering inside of their plists and
gather the supported documents types and descriptions.
Dan
-----------------------------------------------------------------
Dan Waylonis email@hidden
nekotech SOFTWARE
http://www.nekotech.com
650.964.2490 Voice / Fax
_______________________________________________
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