• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting the Default Browser?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting the Default Browser?


  • Subject: Re: Setting the Default Browser?
  • From: Rams <email@hidden>
  • Date: Tue, 28 Jan 2003 17:06:03 -0500

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

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



-----Original Message-----
From: Rams [SMTP:email@hidden]
Sent: Tuesday, January 28, 2003 1:06 PM
To: email@hidden
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@hidden>
<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@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Setting the Default Browser?
      • From: Vince DeMarco <email@hidden>
  • Prev by Date: Re: Hierarchal Archiving
  • Next by Date: Re: Drawing gradients in views
  • Previous by thread: Re: Setting the Default Browser?
  • Next by thread: Re: Setting the Default Browser?
  • Index(es):
    • Date
    • Thread