Then change that and do the right thing. :)

Just add an intermediate NSObjectController to your nib in between your bound field and the file's owner.

Sent from my iPhone

On Jun 18, 2009, at 9:17, Ramakrishna Vavilala <vrk.li...@gmail.com> wrote:

Unfortunately, I used incorrect design by binding text field to
properties of the file's owner (which happens to be a
NWindowController) which does not respond to commitEditing message.
Any other ideas?

On Thu, Jun 18, 2009 at 8:21 AM, Ken Thomases<k...@codeweavers.com> wrote:
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 (Cocoa-dev@lists.apple.com)

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/clarkcox3%40gmail.com

This email sent to clarkc...@gmail.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to