Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: How To Change Default Browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How To Change Default Browser



At 20:43 +0100 20/12/03, Alco Blom wrote:
This was an old message in the list from Fri, 22 Nov 2002 and I guess
in Panther this 'bug' was fixed.

Yes.

However, this behavior actually leads to a problem now because
Mozilla, Netscape 7.1 and Mozilla Firebird now all use the creator
code 'MOZZ'.

If a user has two or three of these browsers, there is a problem.

Right, which is exactly the same problem as we had with the traditional Mac OS version of IC. If you specify applications by creator, and you have multiple applications with the same creator on the system, there's no way for the user to specify which gets launched.

(They should not do that, I agree).

Indeed. Although the problem can occur even if you fix this set of applications to have unique creators. For example, imagine that you have two versions of the same application and you want to set your helper to be the older one.

Using ICSetPref(internetPref, scheme, kICAttrNoChange, (Ptr)&app, size)
seems to work strange now in that when the helper is already set to
'MOZZ' it does not seem to take notice when I try to set it again
to 'MOZZ' but with a different app.name.

Right.

The strange thing is that changing the default web browser in
Safari's preferences DOES work correctly. IT seems able to
update the Internet Config database correctly. But perhaps that
is because it does not use ICSetPref?

When you set the helper via ICSetPref, IC calls through to Launch Services to actually set the helper. The Launch Services API lets you specify an exact application. OTOH, Safari calls LS directly. Unfortunately, the LS API that Safari calls is currently private.

Realistically I don't think that IC is the right place to solve this problem. Rather, we should work on making the LS API public. There's another bug <rdar://problem/2718475> that covers this enhancement. We hope to fix that in the next major OS release.

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
internetconfigdev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/internetconfigdev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: internetconfigdev digest, Vol 3 #31 - 3 msgs (From: Alco Blom <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.