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

References: 
 >Open an URL contained in an NSString (From: Arthur VIGAN <email@hidden>)

  • Prev by Date: Re: Open an URL contained in an NSString
  • Next by Date: Re: Executing A Shell Script...
  • 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