On Oct 8, 2009, at 7:32 AM, Matthew Lindfield Seager wrote:

Which makes me now ask, how does everyone else parse unpredictable user input? Do I just try one format after another until I get a non-null date (and hope the interpreted date was what the user meant) or do I go back to
the "not recommended" natural language formatting?

Use a 10.0-style date formatter. They're much better at parsing user- generated date strings than the newer 10.4-style formatters in my experience.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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 arch...@mail-archive.com

Reply via email to