NSManagedObject features are now fully supported for CoreStoreObject types. MacOSX 10.12 onwards now support ListMonitors and ObjectMonitors

This commit is contained in:
John Estropia
2017-04-07 20:14:13 +09:00
parent 4aa1a63f9a
commit c0ae129b22
58 changed files with 1172 additions and 803 deletions

View File

@@ -39,10 +39,10 @@ import CoreData
let person = transaction.create(Into<MyPersonEntity>("Configuration1"))
```
*/
public struct Into<T: ManagedObjectProtocol>: Hashable {
public struct Into<T: DynamicObject>: Hashable {
/**
The associated `NSManagedObject` or `ManagedObject` entity class
The associated `NSManagedObject` or `CoreStoreObject` entity class
*/
public let entityClass: T.Type
@@ -103,7 +103,7 @@ public struct Into<T: ManagedObjectProtocol>: Hashable {
// MARK: Equatable
public static func == <U: ManagedObjectProtocol, V: ManagedObjectProtocol>(lhs: Into<U>, rhs: Into<V>) -> Bool {
public static func == <U: DynamicObject, V: DynamicObject>(lhs: Into<U>, rhs: Into<V>) -> Bool {
return lhs.entityClass == rhs.entityClass
&& lhs.configuration == rhs.configuration