• 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
How to check a given input?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to check a given input?


  • Subject: How to check a given input?
  • From: Martin Kautz <email@hidden>
  • Date: Mon, 20 Aug 2001 16:09:06 +0200

Hello all,

please treat me with care if this is off topic. I'm a rookie. :-)
Could someone please help me a little with checking inputs?
I'm using a text field to get data from it.

NSString *romanInput=[fieldInput stringValue];

Actually I want to use it as input field for roman numbers. Ho do I check against wrong inputs (integers or a string containing other chars than M, X, C, V, D, L, M, I?

Well, at second I want to use another textfield as input for integers.

int arabicInput=[fieldInput intValue];

How do I check input against chars, strings and stuff?

TIA,
Martin


  • Follow-Ups:
    • Re: How to check a given input?
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Path of least resistance with NSDocument.
  • Next by Date: Re: How to check a given input?
  • Previous by thread: Re: Path of least resistance with NSDocument.
  • Next by thread: Re: How to check a given input?
  • Index(es):
    • Date
    • Thread