• 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: Get list of possible applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get list of possible applications


  • Subject: Re: Get list of possible applications
  • From: Gerd Knops <email@hidden>
  • Date: Sat, 19 Apr 2008 11:55:56 -0500


On Apr 19, 2008, at 11:03 AM, Daniel wrote:
Hi to all,

is there a way to query all the possible applications (the one which
is shown in the list "Open With") of a specific file from Cocoa?

This returns an array with URLs of applicable applications for a file of a given URL:

- (NSArray *)applicationsForURL:(NSURL *)url {

return (NSArray *)LSCopyApplicationURLsForURL((CFURLRef)url,kLSRolesAll);
}


Gerd

_______________________________________________

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


  • Follow-Ups:
    • Re: Get list of possible applications
      • From: Chris Hanson <email@hidden>
References: 
 >Get list of possible applications (From: Daniel <email@hidden>)

  • Prev by Date: Should a Method set NSError* to nil when No Error?
  • Next by Date: Re: Subclassing
  • Previous by thread: Get list of possible applications
  • Next by thread: Re: Get list of possible applications
  • Index(es):
    • Date
    • Thread