Discarding changes and custom field editor/text field cells
Discarding changes and custom field editor/text field cells
- Subject: Discarding changes and custom field editor/text field cells
- From: Jim Turner <email@hidden>
- Date: Mon, 2 Feb 2009 12:26:23 -0600
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@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