Re: Does Launch Services honor IC preferred Browser? No, not really.
Re: Does Launch Services honor IC preferred Browser? No, not really.
- Subject: Re: Does Launch Services honor IC preferred Browser? No, not really.
- From: Chris Silverberg <email@hidden>
- Date: Mon, 04 Mar 2002 12:51:59 -0800
- Organization: Aladdin Systems, Inc.
on 3/4/02 11:58 AM, Joe Kelly at email@hidden wrote:
>
In my code, I ask LS to give me the url to the app it thinks is suitable for
>
viewing HTML:
>
>
LSGetApplicationForInfo(kLSUnknownType, kLSUnknownCreator, CFSTR("html"),
>
kLSRolesViewer, nil, &appURL)
>
>
Then I store the direct object url in an array, setup the LSLaunchURLSpec,
>
and call:
>
>
LSOpenFromURLSpec(&spec, nil);
>
>
1) I run my app with no change to IC prefs. It launches IE with the correct
>
URL.
>
2) I change IC's preferred browser to a Classic Netscrape version. When my
>
app runs, it once again launches IE.
I think we're confusing what the default browser setting does. When you
specify the default browser, you are associating a browser with the _HTTP
protocol_. So when an application calls 'ICLaunchURL' and specifies an
"
http://" url, the browser selected as the default will be launched.
The association for a .html document is separate and distinct from the
browser setting. In this case, you are specifying the application
associated with the ".html" file extension. Changing the default browser
should not alter the behavior for opening .html files. (In my case, I've
selected BBEdit as my preferred application for .html files... while
Explorer is my preferred browser).
-Chris
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.