Re: How to check a given input?
Re: How to check a given input?
- Subject: Re: How to check a given input?
- From: Ondra Cada <email@hidden>
- Date: Mon, 20 Aug 2001 16:17:18 +0200
Martin,
>
>>>>> Martin Kautz (MK) wrote at Mon, 20 Aug 2001 16:09:06 +0200:
MK> NSString *romanInput=[fieldInput stringValue];
MK>
MK> Actually I want to use it as input field for roman numbers. Ho do I
MK> check against wrong inputs (integers or a string containing other chars
MK> than M, X, C, V, D, L, M, I?
You want to write your own NSFormatter subclass, I guess (unless there is
some 3rd party one available). See NSFormatter.html.
MK> Well, at second I want to use another textfield as input for integers.
MK>
MK> int arabicInput=[fieldInput intValue];
MK>
MK> How do I check input against chars, strings and stuff?
NSNumberFormatter.html.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc