Re: Open an URL contained in an NSString
Re: Open an URL contained in an NSString
- Subject: Re: Open an URL contained in an NSString
- From: Isaac Sherman <email@hidden>
- Date: Fri, 30 Aug 2002 14:08:08 -0400
on 8/30/02 1:32 PM, the method -(id)email@hidden:(id)
sender:@"Arthur VIGAN"; returned:
>
Hi,
>
>
I would like to open an URL contained in an NSString directly from an
>
application. My strings is made like that:
>
>
NSString *myURL = [NSString stringWithFormat:@"%@%@", @"http://anURL",
>
@"aUserInformationAddedToURL"]
>
>
How can I launch the web browser and open it?
>
>
Thanks in advance,
>
>
Arthur
NSWorkspace's openURL: should work fine. You may need to use [NSURL
URLWithString:myURL], but I'm not sure.
HTH,
--
Isaac Sherman
MotaSoft Software
http://homepage.mac.com/huperzoevs/
_______________________________________________
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.