• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to check a given input?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to check a given input? (From: Martin Kautz <email@hidden>)

  • Prev by Date: How to check a given input?
  • Next by Date: Re: FIFOs.
  • Previous by thread: How to check a given input?
  • Next by thread: I'll Bite
  • Index(es):
    • Date
    • Thread