Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Objective-c > Re: A "how to d...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 997 of 1039
Post > Topic >>

Re: A "how to do it" query - load a URL using User's browser.

by Sherman Pendley <spamtrap@[EMAIL PROTECTED] > Jun 26, 2008 at 06:37 PM

Don Bruder <dakidd@[EMAIL PROTECTED]
> writes:

> I'm hoping there's a simpler way. Is my hope in vain?

Well, there certainly could have been a simpler way to ask the
question. :-)

Anyway, to answer it:

    NSURL *theURL = [NSURL URLWithString:@[EMAIL PROTECTED]
"http://whatever.example"];
    [[NSWorkspace sharedWorkspace] openURL:theURL];

NSWorkspace will ask Launch Services what app is currently configured
to handle the specified URL scheme.

(This really shouldn't have been posted to c.l.objective-c, btw - it's
a question about Cocoa, not the Objective-C language.)

sherm--

-- 
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
 




 3 Posts in Topic:
A "how to do it" query - load a URL using User's browser.
Don Bruder <dakidd@[EM  2008-06-26 14:14:05 
Re: A "how to do it" query - load a URL using User's browser.
Sherman Pendley <spamt  2008-06-26 18:37:08 
Re: A "how to do it" query - load a URL using User's browser.
Don Bruder <dakidd@[EM  2008-06-26 16:48:28 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 20:09:20 CDT 2008.