On Nov 25, 2009, at 8:31 AM, lorenzo7...@gmail.com wrote:

> So is there a way to validate a string before passing it to URLWithString?

Depends on what you want to do. If you want URLs of a specific scheme, check 
the -scheme property of the resulting NSURL. That will weed out degenerate 
cases like "foo".

—Jens_______________________________________________

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