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