Re: Force bindings to sync

2009-03-25 Thread Sidney San Martín
Thanks for the quick responses, Kyle and Jim. I really dove into bindings, so I wasn't sure where to turn in the docs, but -commitEditing does just the trick. Jonathan, thank you for the information and sample code. I'll read up. -Sidney On Mar 25, 2009, at 5:18 PM, Kyle Sluder wrote: On W

Re: Force bindings to sync

2009-03-25 Thread jonat...@mugginsoft.com
On 25 Mar 2009, at 21:07, Sidney San Martín wrote: I'm trying out Cocoa bindings in my application, mostly on NSTextFields, and am running into a small glitch. While my object is updated just fine when a field loses focus, nothing happens when the window is closed or a button is clicked:

Re: Force bindings to sync

2009-03-25 Thread Jim Correia
On Mar 25, 2009, at 5:07 PM, Sidney San Martín wrote: While my object is updated just fine when a field loses focus, nothing happens when the window is closed or a button is clicked: the last-edited field is always out of sync. How can I force the focused element to "commit" its changes?

Re: Force bindings to sync

2009-03-25 Thread Kyle Sluder
On Wed, Mar 25, 2009 at 5:07 PM, Sidney San Martín wrote: > While my object is updated just fine when a field loses focus, nothing > happens when the window is closed or a button is clicked: the last-edited > field is always out of sync. How can I force the focused element to "commit" > its change