如何从的NSTextField到核心数据属性,而无需编辑文本字段后preSS返回或选项卡添加数据? [英] How to add data from an NSTextField to a Core Data Attribute without having to press Return or Tab after editing the TextField?

查看:208
本文介绍了如何从的NSTextField到核心数据属性,而无需编辑文本字段后preSS返回或选项卡添加数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用3 NSTextFields片和Cancel-和OK键式编辑核心数据实体的属性。
在NSTextFields输入的文本中的核心数据实体或仅更新,如果我preSS选项卡或书面的NSTextField返回后,如果我专注另一个的NSTextField用鼠标。如果我只是在和的NSTextField preSS确定键式输入的文本丢失输入文本。

I use a sheet with 3 NSTextFields and a Cancel- and OK-Button to edit the attributes of a Core Data Entity. The text entered in the NSTextFields is only updated in the Core Data Entity if i press Tab or Return after writing in the NSTextField or if i focus another NSTextField with the mouse. If i just enter text in an NSTextField and press the OK-Button the entered text is lost.

有一些属性,我可以在Interface Builder设置来改变这种行为的NSTextField?

Is there some attribute i can set in Interface Builder to change this NSTextField behaviour?

推荐答案

在我的情况,答案是检查中的NSTextField的值绑定连续更新值选项。
对于其他的答案同样的问题,请参见:红毛衣博客 - 保持响应:的http:/ /www.red-sweater.com/blog/229/stay-responsive

The answer in my case is to check the "continuously updates value" option in the NSTextField’s value binding. For other answers to the same problem see: Red Sweater Blog — Stay Responsive: http://www.red-sweater.com/blog/229/stay-responsive

这篇关于如何从的NSTextField到核心数据属性,而无需编辑文本字段后preSS返回或选项卡添加数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆