Re: NSURL with query string
Re: NSURL with query string
- Subject: Re: NSURL with query string
- From: Scott Anguish <email@hidden>
- Date: Sun, 13 Apr 2008 01:33:29 -0400
On Apr 12, 2008, at 3:24 PM, C Sandeep wrote:
Greetings,
For my application, I need to form a NSURL, which looks something
like this:
http://www.google.com/search?hl=en&q=test
I have the following code:
NSURL *url = [NSURL URLWithString: baseUrl]; //where baseUrl is
http://www.google.com/search
However Im not able to find a optimized way to append the query
strings "hl" and "q". Any help is apprecaited. Thanks.
if you're asking if NSURL has a way of specifying (and encoding)
parameters for a query, the answer is no.
This is definitely something worth filing a bug about.
I'd also be surprised if someone on the list hasn't solved this and
created a category on NSURL to implement this. Anyone able to offer
that type of solution?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden