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: Scott Ribe <email@hidden>
- Date: Sun, 23 May 2010 20:51:43 -0600
On May 23, 2010, at 5:03 PM, Dave DeLong wrote:
> Use LSCopyAllRoleHandlersForContentType to get a list of bundle identifiers.
No, don't. It's really lame, and returns obviously incomplete results. Maybe it only returns Cocoa apps; maybe it only returns apps that specify the type via explicit UTI and ignores type extensions & codes. Whatever, it's wrong for even common types like PDF & TIFF.
As far as I can, the only way to even come close to getting a list of apps that can open a file type, is to use a dummy file with the appropriate extension, and call LSCopyApplicationURLsForURL.
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
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