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 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