0

I have some NSTextField on the NSWindow. And I set up the binding of the NSTextField to shared user defaults controller. The problem is, when I type in the text field and close the window (Cmd + W), the value is not written to the shared user defaults controller.

But it works when I focus other text field.

So how to force the binding to update? Thanks!

Screenshot here:

enter image description here

HKTonyLee
  • 3,111
  • 23
  • 34

1 Answers1

0

OK I find the answer. It is because the binding is not continuous. I have to enable "Continuously Updates Value".

enter image description here

HKTonyLee
  • 3,111
  • 23
  • 34