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

Model Object Validation


  • Subject: Model Object Validation
  • From: Chris Idou <email@hidden>
  • Date: Wed, 20 Aug 2008 21:37:23 -0700 (PDT)

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.






_______________________________________________

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

  • Follow-Ups:
    • Re: Model Object Validation
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Can't create pointer to custom class
  • Next by Date: Re: Core Data - "Items cannot be deleted from X"
  • Previous by thread: Re: Core Data - "Items cannot be deleted from X"
  • Next by thread: Re: Model Object Validation
  • Index(es):
    • Date
    • Thread