Re: NSURL with query string

2008-04-12 Thread Scott Anguish
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/sea

Re: NSURL with query string

2008-04-12 Thread Jerry Krinock
On 2008 Apr, 12, at 12:24, C Sandeep wrote: However Im not able to find a optimized way to append the query strings "hl" and "q". Any help is apprecaited. Thanks. I've done this many times, by simply combining the query into what you call your baseURL using -[NSString stringWithFormat:]. I

NSURL with query string

2008-04-12 Thread C Sandeep
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 wa