• 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: NSURL question (Its working! Thanks for the help!)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURL question (Its working! Thanks for the help!)


  • Subject: Re: NSURL question (Its working! Thanks for the help!)
  • From: Mamdouh <email@hidden>
  • Date: Fri, 31 May 2002 18:35:47 +0200

Hi sherm and all others that helped me on this!

Thanks you (all) so much for clearing things up and for your help!

I used the CF method sherm sent to me, and saw it in action at <http://cocoa.mamasam.com>, and it all stood clear to, i implimented it, and it worked great! It basicly does the hole % URL tyhing for you!

And to others, here is what you need for making a URL that has spaces in it:

myString=(NSString*)CFURLCreateStringByAddingPercentEscapes(NULL,
(CFStringRef) [MyTextView string], NULL, NULL, kCFStringEncodingUTF8);

Then make a NSWorksapaceManager URL method refering to the string that FURLCreateStringByAddingPercentEscapes just converted for you! A little ala:

[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString: myString]];

Thank you very very much for the help!

Mamdouh
_______________________________________________
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: NSURL question (not so easy (i think)) (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Simple font question
  • Next by Date: runtime/compile-time access to ivar names as strings
  • Previous by thread: Re: NSURL question (not so easy (i think))
  • Next by thread: Searching for whole words
  • Index(es):
    • Date
    • Thread