• 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: Finding all apps for
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding all apps for


  • Subject: Re: Finding all apps for
  • From: Greg Herlihy <email@hidden>
  • Date: Fri, 21 Apr 2006 15:22:01 -0700
  • Thread-topic: Finding all apps for

LSCopyApplicationURLsForURL considers both a file's HFS type and its
extension (as well as its HFS creator) when constructing a list of
applications that can open that file. The precondition for calling
LSCopyApplicationURLsForURL of course is that a file exists at the URL
specified (since there is no point asking which applications can open a file
that does not exist).

I suppose if there were some reason program why a program would need to
obtain a list of applications that could open a file that existed only in
theory, then the program could create a dummy file with the suitable type or
extension in the temporary directory and call LSCopyApplicationURLsForURL
with the URL of this dummy file in order to obtain a list of applications
that could open a file with the same characteristics - if one were to exist.

Greg

On 4/21/06 3:09 AM, "Michael Schmidt" <email@hidden> wrote:

> Hello list,
>
> is there a way to find _all_ applications suitable to open a certain HFS-type
> or
> or file extension? The Launch Services API offers LSGetApplicationForItem and
> LSGetApplicationForInfo, but these functions look only for the _default_ app.
> I'm looking for something similar to LSCopyAllRoleHandlersForContentType. Any
> suggestions?
>
> Best regards


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Finding all apps for (From: Michael Schmidt <email@hidden>)

  • Prev by Date: Re: Getting exact height of NSAttributedString
  • Next by Date: Re: Creating a framework with objective-c and cocoa
  • Previous by thread: Finding all apps for
  • Next by thread: WebView block the outward socket connection in flash player
  • Index(es):
    • Date
    • Thread