force end of editing and bindings
force end of editing and bindings
- Subject: force end of editing and bindings
- From: Christian Schneider <email@hidden>
- Date: Fri, 11 Feb 2005 16:55:27 +0100
Hi all,
I've got a text field and a text view in a form. Both are bound to an
object using IB. The content of the form is saved when the user clicks
a button. Now when either the text field or the text view is being
edited when the button is clicked the changes made in the respective
element will not be propagated to the model.
I know I can force the end of the edit in the text field by pressing
return and in the text view by selecting another interface element but
I can't force users to always take care not to have unsubmitted
changes in the UI.
Now the advantage of bindings is to get rid of unnecessary outlets and
glue code, so I'm looking for a solution that is more elegant than -
when the save button is clicked - explicitly telling my model to use
the current value from my text field and text view.
Any hints?
chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden