When one gets a validation error on a value received through a binding (the standard "Discard Change", "OK" dialog), what gets called when the user chooses to discard?
The situation I have is a table with a custom text field cell, editable through a custom field editor. When I get a validation error and click OK, the cursor returns to the edit field without changing the value currently entered, which is what I would expect. When I discard the change, I am again returned to the edit field with the currently entered value. I expect the value would return to the previous value (as it does in a test app with no custom text field cells or field editors), so I'm gonna go out on a limb here and say I need to implement something in my custom editor or text field cell... I'm just not sure what. The binding is set to validate immediately, so it's not like the value has changed underneath me. And the KVC documentation on validation doesn't really talk about how the value is reverted, only about how the error dialog is presented to the user. I appreciate any insight (or links to documentation I'm just not seeing). -- Jim http://nukethemfromorbit.com _______________________________________________ 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]
