• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Open an URL contained in an NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Open an URL contained in an NSString (From: Kevin Callahan <email@hidden>)

  • Prev by Date: Re: cocoa-dev digest, Vol 2 #1177 - 17 msgs
  • Next by Date: Re: Building ObjC and C++ fails on 10.2
  • Previous by thread: Re: Open an URL contained in an NSString
  • Next by thread: Re: Open an URL contained in an NSString
  • Index(es):
    • Date
    • Thread