Re: Model Object Validation
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