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


|