fix compile error:

inheritance from 'AnyObject'
This commit is contained in:
Vladimir
2017-10-07 12:21:27 +08:00
parent ff0c4d94fc
commit 106275b2dd
4 changed files with 4 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ import CoreData
*/ */
@available(OSX 10.12, *) @available(OSX 10.12, *)
@objc @objc
public protocol CSListObserver: class, AnyObject { public protocol CSListObserver: class {
/** /**
Handles processing just before a change to the observed list occurs Handles processing just before a change to the observed list occurs

View File

@@ -40,7 +40,7 @@ import CoreData
*/ */
@available(OSX 10.12, *) @available(OSX 10.12, *)
@objc @objc
public protocol CSObjectObserver: class, AnyObject { public protocol CSObjectObserver: class {
/** /**
Handles processing just before a change to the observed `object` occurs Handles processing just before a change to the observed `object` occurs

View File

@@ -33,7 +33,7 @@ import CoreData
Objective-C Foundation types that are natively supported by Core Data managed attributes all conform to `CoreDataNativeType`. Objective-C Foundation types that are natively supported by Core Data managed attributes all conform to `CoreDataNativeType`.
*/ */
@objc @objc
public protocol CoreDataNativeType: class, NSObjectProtocol, AnyObject {} public protocol CoreDataNativeType: class, NSObjectProtocol {}
// MARK: - NSNumber // MARK: - NSNumber

View File

@@ -31,7 +31,7 @@ import Foundation
/** /**
`CoreStoreObjectiveCType`s are Objective-C accessible classes that represent CoreStore's Swift types. `CoreStoreObjectiveCType`s are Objective-C accessible classes that represent CoreStore's Swift types.
*/ */
public protocol CoreStoreObjectiveCType: class, AnyObject { public protocol CoreStoreObjectiveCType: class {
/** /**
The corresponding Swift type The corresponding Swift type