• 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
Validating NSControl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Validating NSControl


  • Subject: Validating NSControl
  • From: Dietrich Epp <email@hidden>
  • Date: Tue, 10 Sep 2002 21:20:53 -0700

I'm new to the list... forgive me if this was asked yesterday or somesuch.

All right... I got a NSControl to validate its input, but I can still press the OK button in my dialog even when I enter fotzed text into the control (specifically a NSForm tied to a NSNumberFormatter).

What would be nice is a method in NSControl like -(BOOL)isValid, then I could call that from the delegate / notificatoin method -(void)controlTextDidChange:. Apple's docs relating to this are definitely not thorough, and I can't find any sample code.

Am I missing anything obvious?
_______________________________________________
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.

  • Prev by Date: Re: [newbie] NSString code so it won't leak
  • Next by Date: Re: [newbie] NSString code so it won't leak
  • Previous by thread: NSConnection registered names
  • Next by thread: Re: Validating NSControl
  • Index(es):
    • Date
    • Thread