- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
有没有办法获取在 NSManagedObject
上使用 addObserver:forKeyPath:options:context:
和选项 NSKeyValueChangeInsertion
添加的对象>?
最佳答案
是的。来自 observeValueForKeyPath:ofObject:change:context:
的文档:
change
A dictionary that describes the changes that have been made to the value of the property at the key path keyPath relative to object. Entries are described in “Keys used by the change dictionary.”
再往下:
NSKeyValueChangeKindKey
An NSNumber object that contains a value corresponding to one of the NSKeyValueChangeKindKey enumerations, indicating what sort of change has occurred.
NSKeyValueChangeIndexesKey
If the value of the NSKeyValueChangeKindKey entry is NSKeyValueChangeInsertion, NSKeyValueChangeRemoval, or NSKeyValueChangeReplacement, the value of this key is an NSIndexSet object that contains the indexes of the inserted, removed, or replaced objects.
关于core-data - CoreData addObserver NSKeyValueChangeInsertion,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4403233/
有没有办法获取在 NSManagedObject 上使用 addObserver:forKeyPath:options:context: 和选项 NSKeyValueChangeInsertion 添
我是一名优秀的程序员,十分优秀!