• 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: Model Object Validation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Model Object Validation


  • Subject: Re: Model Object Validation
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 20 Aug 2008 22:21:24 -0700

On Aug 20, 2008, at 21:37, Chris Idou wrote:

I have a validation method on my object, managed by a NSObjectController.

If I try and tab out of a field that is invalid I get a warning sheet - great.

But if I just hit command-S to save, there is no message.

I could of course tediously call every single validation method in my NSDocument's save method, but is there a more correct way? I've got "continuously updates" and "validates immediately" turned on.

Take a look at -[NSController commitEditing].

_______________________________________________

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: 
 >Model Object Validation (From: Chris Idou <email@hidden>)

  • Prev by Date: Re: NSTableColumn not usable with binder of class NSTextValueBinder?
  • Next by Date: Re: NSTableColumn not usable with binder of class NSTextValueBinder?
  • Previous by thread: Model Object Validation
  • Next by thread: Design Question: Pro & Cons of KVC/KVO
  • Index(es):
    • Date
    • Thread