Re: NSString searching for zero
Re: NSString searching for zero
- Subject: Re: NSString searching for zero
- From: Claudius Sailer <email@hidden>
- Date: Sun, 22 Sep 2002 15:19:12 +0200
Am Sonntag, 22.09.02 um 14:47 Uhr schrieb Jonathan Jackel:
How about :
If ([text isEqualToString:@"0000"]);
Or, if spaces in text should be disregarded:
If ([[text stringByTrimmingCharactersInSet:
[NSCharacterSet whitespaceCharacterSet]]
isEqualToString:@"0000"]);
zero is not 0. Zero means the ASCII-Character 0 thats a different ;-))
So when I insert the NSString in an Editfield and make ### around I get
### ### so it seems that there are 4 blank, but this aren't blanks!!!
Claudius
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.