• 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
Re: How to force a control to validate ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to force a control to validate ?


  • Subject: Re: How to force a control to validate ?
  • From: mmalc crawford <email@hidden>
  • Date: Tue, 14 Aug 2007 10:22:01 -0700


On Aug 14, 2007, at 10:09 AM, Eric MORAND wrote:

Is there a way to force a control to validate its content ?
I have a dialog sheet with some text fields, bound to a controller. I also have an "OK" button that close the sheet. I want that pressing the "OK" button validate the text fields and close the sheet only if there are no validation errors.


What validation?
Are you using bindings? (If so, is there any reason you're not validating input immediately?)
Are you using Core Data (this may add a further validation constraint)?


mmalc

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How to force a control to validate ? (From: Eric MORAND <email@hidden>)

  • Prev by Date: How to force a control to validate ?
  • Next by Date: Re: bind imageView data to NSArrayController objectAtIndex:
  • Previous by thread: How to force a control to validate ?
  • Next by thread: Re: How to force a control to validate ?
  • Index(es):
    • Date
    • Thread