support transformable values

This commit is contained in:
John Estropia committed 2017-04-21 19:35:29 +09:00
1 parent 274a54451a
commit e6aa72fb5f
13 files changed
+495 -117

No files matched your search

@@ -38,7 +38,7 @@ public extension NSManagedObject {
- returns: the primitive value for the KVC key
*/
@objc
public func cs_accessValueForKVCKey(_ kvcKey: KeyPath) -> CoreDataNativeType? {
public func cs_accessValueForKVCKey(_ kvcKey: KeyPath) -> Any? {
return self.getValue(forKvcKey: kvcKey)
}
@@ -50,7 +50,7 @@ public extension NSManagedObject {
- parameter KVCKey: the KVC key
*/
@objc
public func cs_setValue(_ value: CoreDataNativeType?, forKVCKey KVCKey: KeyPath) {
public func cs_setValue(_ value: Any?, forKVCKey KVCKey: KeyPath) {
self.setValue(value, forKvcKey: KVCKey)
}