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: Kevin Callahan <email@hidden>
- Date: Fri, 30 Aug 2002 12:49:06 -0700
On Friday, August 30, 2002, at 11:00 AM, Kevin Callahan wrote:
>
[[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString:myURL]];
oops .. use the above if myURL is a string .. such as
@"
http://www.apple.com"
if it's an NSURL, then just pass the NSURL to openURL:
Sorry for any confusion .
Kevin
>
>
Kevin
>
>
On Friday, August 30, 2002, at 10:32 AM, Arthur VIGAN wrote:
>
>
> 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
>
> _______________________________________________
>
> 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.
>
>
>
>
- Kevin
>
o#?
>
_______________________________________________
>
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.
>
- Kevin
o#?
_______________________________________________
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.