Re: NSSpeechSynthesizer and empty strings
Re: NSSpeechSynthesizer and empty strings
- Subject: Re: NSSpeechSynthesizer and empty strings
- From: Jim Correia <email@hidden>
- Date: Sat, 28 Jun 2008 14:09:11 -0400
On Jun 26, 2008, at 8:32 PM, Nick Zitzmann wrote:
On Jun 26, 2008, at 6:16 PM, William Squires wrote:
Actually, "if ([myString length] == 0)" is probably better, but
just IMHO... :)
No; don't ever do that. It is possible for an NSString to have zero
length but not be empty. See <http://www.cocoabuilder.com/archive/message/cocoa/2004/7/5/111029
> for details.
That isn't what Mike said. He said that it possible for a *non-empty*
string can be semantically equal to @"".
A string with 0 length is, obviously, always empty.
Jim
_______________________________________________
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