Skip navigation.
 
mlRe: Setting the Default Browser?
FROM : Vince DeMarco
DATE : Wed Jan 29 06:16:49 2003

On Tuesday, January 28, 2003, at 2:06 PM, Rams wrote:

> As far as launching the browser goes, I'm using NSWorkspace's openURL.
>  Not portable, but I don't care because I'm not aiming for any
> platform but the mac right now.
>
> What I want to do is set the default browser so that the user can
> change it, without having to go into system preferences to do so. 
> Something like the default browser popup menu in Internet Prefs, but
> located inside my app :)
>
> No, I wasn't aware of JDirect now being unsupported (though, having it
> listed as legacy should probably have clued me in).  That said, what
> is the proper way for my java code to access apple frameworks like
> Launch Services?  JNI?
>
> And while I'm on the topic, I clearly see LSGetApplicationForURL in
> there, but I don't see anything that looks like it might be useful for
> setting the application for a url...
>
> Any suggestions/assistance is appreciated
>


I just asked the engineer on Launch Services, and there is no API to
set the default browser.

The only thing you could do is use the old Internet Config stuff.

vince

> On Tuesday, January 28, 2003, at 04:27  PM, Hall, Michael J. wrote:
>

>>
>>

>>> -----Original Message-----
>>> From:    Rams [SMTP:<email_removed>]
>>> Sent:    Tuesday, January 28, 2003 1:06 PM
>>> To:    <email_removed>
>>> Subject:    Setting the Default Browser?
>>>
>>>

>>     > I'm guessing Launch Services and JDirect.  If this is the case,
>> anyone
>>     > know where I can find primers/sample code?
>>
>>     I think you might be right. Get URL or it might be open url
>> AppleEvents were messed up on this at one point I think. The solution
>> being to invoke the launch services method directly. To the best of
>> my recollection anyhow.
>>     The SignatureToApp class of my macnative package would include some
>> JDirect. I don't have the source immediately handy or I could
>> probably snippet it.
>>     You are aware of the current JDirect caveats though right? Announced
>> on this list non-support past 1.3.
>>     And past user indications that it as Carbon didn't work real well
>> with Cocoa java.
>>
>>     Mike Hall <<email_removed>>
>>     <http://www.spacestar.net/users/mikehall>
>>

>
> --
> "NT 5.0 is the last nail in the Unix coffin. Interestingly, Unix isn't
> in the coffin... It's wondering what the heck is sealing itself into a
> wooden box 6 feet underground..." --Jason McMullan
> _______________________________________________
> cocoa-dev mailing list | <email_removed>
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.

_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlSetting the Default Browser? Rams Jan 28, 07:07
mlRe: Setting the Default Browser? Vince DeMarco Jan 28, 07:30
mlRe: Setting the Default Browser? Rams Jan 28, 23:06
mlRe: Setting the Default Browser? Rams Jan 28, 23:32
mlRe: Setting the Default Browser? Vince DeMarco Jan 29, 06:16
mlRe: Setting the Default Browser? Lorenzo Puleo Jan 29, 15:22
mlRe: Setting the Default Browser? Rams Jan 30, 01:35