• 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
key value validation problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: key value validation problem
      • From: "Louis C. Sacha" <email@hidden>
    • Re: key value validation problem
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Finder Icon Badging...
  • Next by Date: panelSelectionDidChange: on 10.2?
  • Previous by thread: Re: Newbie thread question
  • Next by thread: Re: key value validation problem
  • Index(es):
    • Date
    • Thread