On Thu, 18 Jun 2009 07:49:15 -0700, Ramakrishna Vavilala
<vrk.li...@gmail.com> said:
>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?

Have the OK button set the window's first responder to nil? m.

-- 
matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

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