RE: Does Launch Services honor IC preferred Browser? No, not real ly.
RE: Does Launch Services honor IC preferred Browser? No, not real ly.
- Subject: RE: Does Launch Services honor IC preferred Browser? No, not real ly.
- From: Joe Kelly <email@hidden>
- Date: Mon, 4 Mar 2002 12:32:40 -0800
Of course my tirade is for informational purposes only, as Quinn answers
this question in the very post I'm replying too.
Foot in mouth,
joe
>
-----Original Message-----
>
From: Joe Kelly [mailto:email@hidden]
>
Sent: Monday, March 04, 2002 11:59 AM
>
To: Macintosh Network Programming
>
Subject: Does Launch Services honor IC preferred Browser? No, not
>
really.
>
>
>
Here's what I found when I implemented LaunchServices code in my
>
application:
>
>
First off, TN2017 makes no mention of IC when describing the
>
algorithm used
>
to make its decision.
>
>
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.
>
3) TN2017 says it will consider a native app before a Classic
>
one, so I
>
grabbed OS X iCab, set it as my preferred browser, rebooted
>
my machine (for
>
the benefit of the doubt). When I ran my app, it launched IE.
>
4) Just to be sure, I grabbed the latest *ack* Netscape
>
version (it wouldn't
>
even run without asking me for a screen name, goodness could we please
>
dispense with this AOL crap?). Set it as preferred browser.
>
Ran my app. It
>
launches IE.
>
>
Oh well, for what I'm doing, IE is perfectly suitable.
>
>
joe
>
>
>
>
> -----Original Message-----
>
> From: Quinn [mailto:email@hidden]
>
> Sent: Monday, March 04, 2002 3:28 AM
>
> To: Macintosh Network Programming
>
> Subject: Re: Does Launch Services honor IC preferred Browser?
>
>
>
>
>
> At 10:13 -0800 1/3/02, Duane Murphy wrote:
>
> >I guess it depends on what you're trying to do.
>
>
>
> Indeed. On X, IC is tied into LS as far as *helper
>
applications* go.
>
> So, if you call ICLaunchURL you'll get the user's preferred web
>
> browser. However, it isn't tied into LS (or indeed
>
anything) as far
>
> as extension <-> file type mappings. So if you call
>
ICMapFilename to
>
> set a downloaded file's type and creator and then launch it
>
with LS,
>
> you won't get the same result as if you'd left the type and creator
>
> set to '????' and then launched it with LS.
>
>
>
> S+E
>
> --
>
> Quinn "The Eskimo!"
>
> <http://www.apple.com/developer/>
>
> Apple Developer Technical Support * Networking,
>
> Communications, Hardware
>
> _______________________________________________
>
> 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.
>
_______________________________________________
>
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.
_______________________________________________
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.