Re: Manually updating a data bound value of a bound text field
Re: Manually updating a data bound value of a bound text field
- Subject: Re: Manually updating a data bound value of a bound text field
- From: Ken Thomases <email@hidden>
- Date: Thu, 18 Jun 2009 10:21:52 -0500
On Jun 18, 2009, at 9:49 AM, Ramakrishna Vavilala wrote:
I have a window (displayed as a sheet) with a text field and some
other controls. I can not set the binding mode to continuous so I use
non continuous binding. Everything works fine as long as I press tab
and switch to a different control. However when the the text field is
the key view and I press OK button, then the value of the text field
does not get reflected in the property to which it is bound. I want to
make sure that when the user clicks OK button the property value is
updated. How can I do that apart from making the binding continuous?
Send -commitEditingWithDelegate:didCommitSelector:contextInfo: (or
just -commitEditing) to the controller in the action method of the OK
button.
Cheers,
Ken
_______________________________________________
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