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 PROTECTED]> wrote:

> From: Phil <[EMAIL PROTECTED]>
> Subject: Re: How to get a list of all known file types?
> To: [EMAIL PROTECTED]
> Cc: "j o a r" <[EMAIL PROTECTED]>, [email protected]
> Date: Thursday, November 6, 2008, 6:48 PM
> On Fri, Nov 7, 2008 at 2:12 PM, Chris Idou
> <[EMAIL PROTECTED]> 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 protected])

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 [EMAIL PROTECTED]

Reply via email to