Validating NSControl
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.