Re: NSSpeechSynthesizer and empty strings
Re: NSSpeechSynthesizer and empty strings
- Subject: Re: NSSpeechSynthesizer and empty strings
- From: "Michael Ash" <email@hidden>
- Date: Thu, 26 Jun 2008 23:30:37 -0400
On Thu, Jun 26, 2008 at 8:32 PM, Nick Zitzmann <email@hidden> 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.
This is backwards. You can have a string that is "empty" but has
non-zero length, due to the characters it contains being semantically
null.
Logically, an NSString is completely described by the unichars it
contains. If an NSString has length zero then it has no unichars, so
there is no room for any variation.
Mike
_______________________________________________
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