English 中文(简体)
验证方法的数值是否纠正了标的为ir脏?
原标题:Does correcting a value in an validation method mark the object as dirty?

参考:

If you change the input value in a validate:error: method, you must ensure that you only change the value if it is invalid or uncoerced. The reason is that, since the object and context are now dirtied, Core Data may validate that key again later. If you keep performing a coercion in a validation method, this can therefore produce an infinite loop.

因此,当我对验证方法的价值作修改时,情况就会变幻无常? 我越发越好越好越好越好越好,而且当我改变价值时,情况就会再次恶化,再次失效,而且由于情况不成熟,我也改变了价值,核心数据也证明了这一点。 而且,......永远......这项权利吗? 还是试图说什么是不同的?

最佳回答

这是因为你改变了这一价值。 你引述的警告是,如果你在鉴定方法中不断改变多种价值,你的验证方法应当侧重于某个时候的单一价值,那么你知道你能够进入验证循环。

<>光> 验证方法中强烈反对改变投入价值。

问题回答

暂无回答




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签