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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to