How to add data from an NSTextField to a basic data attribute without having to press Return or Tab after editing a TextField?

I use a sheet with 3 NSTextFields and a Cancel and OK button to edit the Core Data Entity attributes. Text entered in NSTextFields is updated only in the Core Data Entity if I press Tab or Return after writing to NSTextField or if I focus another NSTextField with the mouse. If I just enter text into NSTextField and click OK, the entered text will be lost.

Is there any attribute that I can set in Interface Builder to change this NSTextField behavior?

+2
source share
1 answer

The answer in my case is to check the "constantly update value" parameter in the binding of the NSTextFields value. For other answers to the same problem, see: Red Sweater Blog - Be Responsive: http://www.red-sweater.com/blog/229/stay-responsive

+2
source

Source: https://habr.com/ru/post/1299196/


All Articles