Re: Finding all apps for
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