9 lines
271 B
Swift
9 lines
271 B
Swift
import Foundation
|
|
|
|
extension NSManagedObject {
|
|
public func hasChangedValuesForCurrentEventForKeys(_ keys: Set<String>) -> Bool {
|
|
let changedKeys = Set<String>(changedValuesForCurrentEvent().keys)
|
|
return !changedKeys.intersection(keys).isEmpty
|
|
}
|
|
}
|