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


Mac > Mac Programmer Help > Re: A "how to d...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 3784 of 3882
Post > Topic >>

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

by Don Bruder <dakidd@[EMAIL PROTECTED] > Jun 26, 2008 at 04:48 PM

In article <m1zlp7g6wb.fsf@[EMAIL PROTECTED]
>,
 Sherman Pendley <spamtrap@[EMAIL PROTECTED]
> wrote:

> 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. :-)

<chuckle> Sorry, but I've noted a distinct tendency for folks to give me 
answers that either go zipping right over my head into territory I don't 
even BEGIN to grasp, or don't fit what I'm trying to ask if I don't get 
downright anal with the way I ask the question. Call it "self defense", 
if you will. :) 
 
> 
> 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.

Thanks. That sounds like it could easily be exactly what I need. I'll 
hit the books for NSWorkspace to find out details - another "nook and 
cranny" of Cocoa I haven't explored yet. As someone else noted not too 
long ago, the learning curve for Obj-C isn't so bad, but for Cocoa it's 
pretty much a sheer vertical. I wish they weren't so right about that 
observation!

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

Noted for future. Until now, nobody has mentioned that being a problem.  
Seems like c.l.o-c is pretty much dead 'cept for me and a couple other 
newbies and the "gurus" who answer us, and that it's *MORE OR LESS* 
become semi-synonymous with Cocoa/Mac programming, since that appears to 
be where the bulk of Obj-C programming is happening these days.

(Never mind the fact that I'm still enough of an Obj-C/Cocoa rookie that 
I'm never *REALLY* sure if I'm asking about the language, the framework, 
or a mixture of both - The line between Obj-C and Cocoa is hard, if not 
impossible, for me to spot. Kinda like spotting the line between "The C 
language" and "The C Standard Library")

-- 
Don Bruder - dakidd@[EMAIL PROTECTED]
 - If your "From:" address isn't on my
whitelist,
or the subject of the message doesn't contain the exact text
"PopperAndShadow"
somewhere, any message sent to this address will go in the garbage without
my
ever knowing it arrived. Sorry... <http://www.sonic.net/~dakidd>
for more
info
 




 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 Dec 5 10:43:46 CST 2008.