• 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: iPhone: validate a NSString for US zipcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iPhone: validate a NSString for US zipcode


  • Subject: Re: iPhone: validate a NSString for US zipcode
  • From: Chris Williams <email@hidden>
  • Date: Thu, 7 Jan 2010 14:25:56 -0500
  • Acceptlanguage: en-US
  • Thread-topic: iPhone: validate a NSString for US zipcode

As someone who lives in a zip code that was added in 2004, yet STILL shows up as invalid in countless databases, I can't stress this point enough.  Do not maintain data yourself that someone else has a reason/motivation and the resources to maintain.  Just send it to the service, and catch the fail.  Really.  Please.

________________________________
From: Keary Suska <email@hidden>

What do you mean, "will work"? That the weather service will accept it? Does the service respond that the zip code isn't usable, for whatever reason?

Otherwise, searching 42k+ will be very quick if you put it into a sqllite database. But then you will have to maintain the database, continually update it, and possibly correct it.
_______________________________________________

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: 
 >Re: iPhone: validate a NSString for US zipcode (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: Problems Fading Out Music
  • Next by Date: A password strength checker
  • Previous by thread: Re: iPhone: validate a NSString for US zipcode
  • Next by thread: Re: iPhone: validate a NSString for US zipcode
  • Index(es):
    • Date
    • Thread