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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to