key value validation problem
key value validation problem
- Subject: key value validation problem
- From: Ken Grigsby <email@hidden>
- Date: Tue, 3 Feb 2004 15:07:07 -0600
Hello,
I have a text field with a date formatter attached. If the user deletes
the text and tabs out I want to set the field to the current date so as
not to leave the field empty. My validation method is called when the
user tabs out and the model is updated but the UI is not updated. How
do I get the UI updated?
- (BOOL)validateDate:(id *)ioValue error:(NSError **)outError
{
if (*ioValue == nil)
{
// set date to today
*ioValue = [NSCalendarDate calendarDate];
}
return YES;
}
Ken Grigsby
email@hidden
_______________________________________________
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.