kMDItemKind (was: How to get a list of all known file types?)
kMDItemKind (was: How to get a list of all known file types?)
- Subject: kMDItemKind (was: How to get a list of all known file types?)
- From: Chris Idou <email@hidden>
- Date: Thu, 6 Nov 2008 21:49:22 -0800 (PST)
What is and where can you get the descriptions that are found in Spotlight's kMDItemKind attribute? They don't seem to be the same ones that UTTypeCopyDescription returns. I printed out all the built in UTTypeCopyDescription descriptions for built in UTIs, and they don't have more than a passing resemblance to what Spotlight lists in kMDItemKind.
Can you somehow convert from UTI to this description? How are these descriptions related, if at all to UTIs? Is there a way to get all the possible values for kMDItemKind from spotlight? I read all the spotlight docos and don't feel enlightened.
--- On Thu, 11/6/08, Phil <email@hidden> wrote:
> From: Phil <email@hidden>
> Subject: Re: How to get a list of all known file types?
> To: email@hidden
> Cc: "j o a r" <email@hidden>, email@hidden
> Date: Thursday, November 6, 2008, 6:48 PM
> 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.
>
> Phil
_______________________________________________
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