• 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
NSURL question (easy (i think))
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSURL question (easy (i think))


  • Subject: NSURL question (easy (i think))
  • From: Mamdouh <email@hidden>
  • Date: Thu, 30 May 2002 00:23:54 +0200

Hi all

I have newbie question about URL handling:

I4m trieng to take the string of a NSTextView and make it into an NSURL, and heres what i4m doing:

NSString *MyUrlString= [MyTextView string];
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://www.%@.com",MyUrlString]];

You can probably guess that i4m trying to replace the %@ with the MyUrlString, but i4m making somekind of typo here, or using a wrong method, but i cant find out what...

I would apriciate if somebody could correct me here!

TIA
Mamdouh
Student/Programmer
Denmark
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSURL question (easy (i think))
      • From: Sherm Pendley <email@hidden>
    • Re: NSURL question (easy (i think))
      • From: Hasan Diwan <email@hidden>
  • Prev by Date: Scoping of functions
  • Next by Date: Objective C <--> COM comparison
  • Previous by thread: Re: Scoping of functions
  • Next by thread: Re: NSURL question (easy (i think))
  • Index(es):
    • Date
    • Thread