• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: List of all supported apps for file type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List of all supported apps for file type


  • Subject: Re: List of all supported apps for file type
  • From: Chaitanya Pandit <email@hidden>
  • Date: Mon, 24 May 2010 10:34:19 +0530

You can do "CFArrayRef applications = LSCopyApplicationURLsForURL((CFURLRef)fileUrl, kLSRolesAll);" to get the applications and then call:

- (BOOL)getInfoForFile:(NSString *)fullPath application:(NSString **)appName type:(NSString **)ty

To get the application details

On May 24, 2010, at 4:27 AM, 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.
>
> Thanks,
>
> Trygve
>
>
> _______________________________________________
>
> 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

_______________________________________________

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

References: 
 >List of all supported apps for file type (From: Trygve Inda <email@hidden>)

  • Prev by Date: Garbage collector
  • Next by Date: Beginner question on controls and NSCopying
  • Previous by thread: Re: List of all supported apps for file type
  • Next by thread: NSDoc's Magic File Watcher Ruins Core Data Migration
  • Index(es):
    • Date
    • Thread