Re: NSString ASCII filter
Re: NSString ASCII filter
- Subject: Re: NSString ASCII filter
- From: "Sean McBride" <email@hidden>
- Date: Tue, 12 Feb 2008 15:04:05 -0500
- Organization: Rogue Research
On 2/12/08 11:58 AM, James Hober said:
>What is the simplest, reasonably efficient way to determine if an
>NSString contains a non-ASCII character
How about:
BOOL foo = [string canBeConvertedToEncoding:
NSASCIIStringEncoding];
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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