Re: NSURL question (Its working! Thanks for the help!)
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.