• 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 with query string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSURL with query string (From: "C Sandeep" <email@hidden>)

  • Prev by Date: [Moderator] Re: Override AppleScrollBarVariant on NSScroller?
  • Next by Date: Re: Basic Core Animation question
  • Previous by thread: Re: NSURL with query string
  • Next by thread: KVO strangeness under 10.5
  • Index(es):
    • Date
    • Thread