Re: List of all supported apps for file type
Re: List of all supported apps for file type
- Subject: Re: List of all supported apps for file type
- From: Dave DeLong <email@hidden>
- Date: Sun, 23 May 2010 17:03:45 -0600
Use LSCopyAllRoleHandlersForContentType to get a list of bundle identifiers. The bundle identifiers you can convert into full paths using NSWorkspace, which also has a method to retrieve an icon that for a file at a full path (which in the case of an app, will return an app icon).
Cheers,
Dave
On May 23, 2010, at 4:57 PM, Trygve Inda wrote:
> I know I have seen this code before but in the last 30 minutes of digging, I
> can't find it.
>
> How can I get a list of bundle identifiers (or paths to an app) for all the
> apps that can open a file of a given type (eg pdf, mp3 etc)
>
> Then, How can I get an icon for these apps?
>
> Basically I want to build a menu of app apps on the system that can open a
> particular file.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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