Documentation Archive Developer
Search

CoreData Changes for Swift

CoreData

Removed NSFetchRequestResultType.init(_: UInt)
Removed NSSnapshotEventType.init(_: UInt)
Added NSCocoaError.CoreDataError
Added NSCocoaError.EntityMigrationPolicyError
Added NSCocoaError.ExternalRecordImportError
Added NSCocoaError.InferredMappingModelError
Added NSCocoaError.ManagedObjectConstraintMergeError
Added NSCocoaError.ManagedObjectContextLockingError
Added NSCocoaError.ManagedObjectExternalRelationshipError
Added NSCocoaError.ManagedObjectMergeError
Added NSCocoaError.ManagedObjectReferentialIntegrityError
Added NSCocoaError.ManagedObjectValidationError
Added NSCocoaError.MigrationCancelledError
Added NSCocoaError.MigrationError
Added NSCocoaError.MigrationManagerDestinationStoreError
Added NSCocoaError.MigrationManagerSourceStoreError
Added NSCocoaError.MigrationMissingMappingModelError
Added NSCocoaError.MigrationMissingSourceModelError
Added NSCocoaError.PersistentStoreCoordinatorLockingError
Added NSCocoaError.PersistentStoreIncompatibleSchemaError
Added NSCocoaError.PersistentStoreIncompatibleVersionHashError
Added NSCocoaError.PersistentStoreIncompleteSaveError
Added NSCocoaError.PersistentStoreInvalidTypeError
Added NSCocoaError.PersistentStoreOpenError
Added NSCocoaError.PersistentStoreOperationError
Added NSCocoaError.PersistentStoreSaveConflictsError
Added NSCocoaError.PersistentStoreSaveError
Added NSCocoaError.PersistentStoreTimeoutError
Added NSCocoaError.PersistentStoreTypeMismatchError
Added NSCocoaError.PersistentStoreUnsupportedRequestTypeError
Added NSCocoaError.SQLiteError
Added NSCocoaError.ValidationDateTooLateError
Added NSCocoaError.ValidationDateTooSoonError
Added NSCocoaError.ValidationInvalidDateError
Added NSCocoaError.ValidationMissingMandatoryPropertyError
Added NSCocoaError.ValidationMultipleErrorsError
Added NSCocoaError.ValidationNumberTooLargeError
Added NSCocoaError.ValidationNumberTooSmallError
Added NSCocoaError.ValidationRelationshipDeniedDeleteError
Added NSCocoaError.ValidationRelationshipExceedsMaximumCountError
Added NSCocoaError.ValidationRelationshipLacksMinimumCountError
Added NSCocoaError.ValidationStringPatternMatchingError
Added NSCocoaError.ValidationStringTooLongError
Added NSCocoaError.ValidationStringTooShortError
Modified NSAtomicStore
Declaration
From
class NSAtomicStore : NSPersistentStore {
    init(persistentStoreCoordinator coordinator: NSPersistentStoreCoordinator?, configurationName configurationName: String?, URL url: NSURL, options options: [NSObject : AnyObject]?)
    func load(_ error: NSErrorPointer) -> Bool
    func save(_ error: NSErrorPointer) -> Bool
    func newCacheNodeForManagedObject(_ managedObject: NSManagedObject) -> NSAtomicStoreCacheNode
    func updateCacheNode(_ node: NSAtomicStoreCacheNode, fromManagedObject managedObject: NSManagedObject)
    func cacheNodes() -> Set<NSObject>
    func addCacheNodes(_ cacheNodes: Set<NSObject>)
    func willRemoveCacheNodes(_ cacheNodes: Set<NSObject>)
    func cacheNodeForObjectID(_ objectID: NSManagedObjectID) -> NSAtomicStoreCacheNode?
    func objectIDForEntity(_ entity: NSEntityDescription, referenceObject data: AnyObject) -> NSManagedObjectID
    func newReferenceObjectForManagedObject(_ managedObject: NSManagedObject) -> AnyObject
    func referenceObjectForObjectID(_ objectID: NSManagedObjectID) -> AnyObject
}
To
class NSAtomicStore : NSPersistentStore {
    init(persistentStoreCoordinator coordinator: NSPersistentStoreCoordinator?, configurationName configurationName: String?, URL url: NSURL, options options: [NSObject : AnyObject]?)
    func load() throws
    func save() throws
    func newCacheNodeForManagedObject(_ managedObject: NSManagedObject) -> NSAtomicStoreCacheNode
    func updateCacheNode(_ node: NSAtomicStoreCacheNode, fromManagedObject managedObject: NSManagedObject)
    func cacheNodes() -> Set<NSAtomicStoreCacheNode>
    func addCacheNodes(_ cacheNodes: Set<NSAtomicStoreCacheNode>)
    func willRemoveCacheNodes(_ cacheNodes: Set<NSAtomicStoreCacheNode>)
    func cacheNodeForObjectID(_ objectID: NSManagedObjectID) -> NSAtomicStoreCacheNode?
    func objectIDForEntity(_ entity: NSEntityDescription, referenceObject data: AnyObject) -> NSManagedObjectID
    func newReferenceObjectForManagedObject(_ managedObject: NSManagedObject) -> AnyObject
    func referenceObjectForObjectID(_ objectID: NSManagedObjectID) -> AnyObject
}

Declaration
From
func addCacheNodes(_ cacheNodes: Set<NSObject>)
To
func addCacheNodes(_ cacheNodes: Set<NSAtomicStoreCacheNode>)

Declaration
From
func cacheNodes() -> Set<NSObject>
To
func cacheNodes() -> Set<NSAtomicStoreCacheNode>

Declaration
From
func load(_ error: NSErrorPointer) -> Bool
To
func load() throws

Declaration
From
func save(_ error: NSErrorPointer) -> Bool
To
func save() throws

Declaration
From
func willRemoveCacheNodes(_ cacheNodes: Set<NSObject>)
To
func willRemoveCacheNodes(_ cacheNodes: Set<NSAtomicStoreCacheNode>)

Raw Value Type
From--
ToUInt

IntroductionRaw Value Type
FromiOS 8.1--
ToiOS 8.0UInt

Raw Value Type
From--
ToUInt

Declaration
From
class NSEntityDescription : NSObject, NSCoding, NSCopying, NSFastEnumeration {
    class func entityForName(_ entityName: String, inManagedObjectContext context: NSManagedObjectContext) -> NSEntityDescription?
    class func insertNewObjectForEntityForName(_ entityName: String, inManagedObjectContext context: NSManagedObjectContext) -> AnyObject
    unowned(unsafe) var managedObjectModel: NSManagedObjectModel { get }
    var managedObjectClassName: String
    var name: String?
    var abstract: Bool
    var subentitiesByName: [NSObject : AnyObject]? { get }
    var subentities: [AnyObject]?
    unowned(unsafe) var superentity: NSEntityDescription? { get }
    var propertiesByName: [NSObject : AnyObject] { get }
    var properties: [AnyObject]
    var userInfo: [NSObject : AnyObject]?
    var attributesByName: [NSObject : AnyObject] { get }
    var relationshipsByName: [NSObject : AnyObject] { get }
    func relationshipsWithDestinationEntity(_ entity: NSEntityDescription) -> [AnyObject]
    func isKindOfEntity(_ entity: NSEntityDescription) -> Bool
    @NSCopying var versionHash: NSData { get }
    var versionHashModifier: String?
    var renamingIdentifier: String
    var compoundIndexes: [AnyObject]?
}
To
class NSEntityDescription : NSObject, NSCoding, NSCopying, NSFastEnumeration {
    class func entityForName(_ entityName: String, inManagedObjectContext context: NSManagedObjectContext) -> NSEntityDescription?
    class func insertNewObjectForEntityForName(_ entityName: String, inManagedObjectContext context: NSManagedObjectContext) -> NSManagedObject
    unowned(unsafe) var managedObjectModel: NSManagedObjectModel { get }
    var managedObjectClassName: String!
    var name: String?
    var abstract: Bool
    var subentitiesByName: [String : NSEntityDescription] { get }
    var subentities: [NSEntityDescription]
    unowned(unsafe) var superentity: NSEntityDescription? { get }
    var propertiesByName: [String : NSPropertyDescription] { get }
    var properties: [NSPropertyDescription]
    var userInfo: [NSObject : AnyObject]?
    var attributesByName: [String : NSAttributeDescription] { get }
    var relationshipsByName: [String : NSRelationshipDescription] { get }
    func relationshipsWithDestinationEntity(_ entity: NSEntityDescription) -> [NSRelationshipDescription]
    func isKindOfEntity(_ entity: NSEntityDescription) -> Bool
    @NSCopying var versionHash: NSData { get }
    var versionHashModifier: String?
    var renamingIdentifier: String?
    var compoundIndexes: [[AnyObject]]
    var uniquenessConstraints: [[AnyObject]]
}

Declaration
From
var attributesByName: [NSObject : AnyObject] { get }
To
var attributesByName: [String : NSAttributeDescription] { get }

Declaration
From
var compoundIndexes: [AnyObject]?
To
var compoundIndexes: [[AnyObject]]

Declaration
From
class func insertNewObjectForEntityForName(_ entityName: String, inManagedObjectContext context: NSManagedObjectContext) -> AnyObject
To
class func insertNewObjectForEntityForName(_ entityName: String, inManagedObjectContext context: NSManagedObjectContext) -> NSManagedObject

Declaration
From
var managedObjectClassName: String
To
var managedObjectClassName: String!

Declaration
From
var properties: [AnyObject]
To
var properties: [NSPropertyDescription]

Declaration
From
var propertiesByName: [NSObject : AnyObject] { get }
To
var propertiesByName: [String : NSPropertyDescription] { get }

Declaration
From
var relationshipsByName: [NSObject : AnyObject] { get }
To
var relationshipsByName: [String : NSRelationshipDescription] { get }

Declaration
From
func relationshipsWithDestinationEntity(_ entity: NSEntityDescription) -> [AnyObject]
To
func relationshipsWithDestinationEntity(_ entity: NSEntityDescription) -> [NSRelationshipDescription]

Declaration
From
var renamingIdentifier: String
To
var renamingIdentifier: String?

Declaration
From
var subentities: [AnyObject]?
To
var subentities: [NSEntityDescription]

Declaration
From
var subentitiesByName: [NSObject : AnyObject]? { get }
To
var subentitiesByName: [String : NSEntityDescription] { get }

Declaration
From
class NSEntityMapping : NSObject {
    var name: String!
    var mappingType: NSEntityMappingType
    var sourceEntityName: String
    @NSCopying var sourceEntityVersionHash: NSData
    var destinationEntityName: String?
    @NSCopying var destinationEntityVersionHash: NSData?
    var attributeMappings: [AnyObject]?
    var relationshipMappings: [AnyObject]
    var sourceExpression: NSExpression?
    var userInfo: [NSObject : AnyObject]?
    var entityMigrationPolicyClassName: String
}
To
class NSEntityMapping : NSObject {
    var name: String!
    var mappingType: NSEntityMappingType
    var sourceEntityName: String?
    @NSCopying var sourceEntityVersionHash: NSData?
    var destinationEntityName: String?
    @NSCopying var destinationEntityVersionHash: NSData?
    var attributeMappings: [NSPropertyMapping]?
    var relationshipMappings: [NSPropertyMapping]?
    var sourceExpression: NSExpression?
    var userInfo: [NSObject : AnyObject]?
    var entityMigrationPolicyClassName: String?
}

Declaration
From
var attributeMappings: [AnyObject]?
To
var attributeMappings: [NSPropertyMapping]?

Declaration
From
var entityMigrationPolicyClassName: String
To
var entityMigrationPolicyClassName: String?

Declaration
From
var relationshipMappings: [AnyObject]
To
var relationshipMappings: [NSPropertyMapping]?

Declaration
From
var sourceEntityName: String
To
var sourceEntityName: String?

Declaration
From
@NSCopying var sourceEntityVersionHash: NSData
To
@NSCopying var sourceEntityVersionHash: NSData?

Raw Value Type
From--
ToUInt

Declaration
From
class NSEntityMigrationPolicy : NSObject {
    func beginEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager, error error: NSErrorPointer) -> Bool
    func createDestinationInstancesForSourceInstance(_ sInstance: NSManagedObject, entityMapping mapping: NSEntityMapping, manager manager: NSMigrationManager, error error: NSErrorPointer) -> Bool
    func endInstanceCreationForEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager, error error: NSErrorPointer) -> Bool
    func createRelationshipsForDestinationInstance(_ dInstance: NSManagedObject, entityMapping mapping: NSEntityMapping, manager manager: NSMigrationManager, error error: NSErrorPointer) -> Bool
    func endRelationshipCreationForEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager, error error: NSErrorPointer) -> Bool
    func performCustomValidationForEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager, error error: NSErrorPointer) -> Bool
    func endEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager, error error: NSErrorPointer) -> Bool
}
To
class NSEntityMigrationPolicy : NSObject {
    func beginEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager) throws
    func createDestinationInstancesForSourceInstance(_ sInstance: NSManagedObject, entityMapping mapping: NSEntityMapping, manager manager: NSMigrationManager) throws
    func endInstanceCreationForEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager) throws
    func createRelationshipsForDestinationInstance(_ dInstance: NSManagedObject, entityMapping mapping: NSEntityMapping, manager manager: NSMigrationManager) throws
    func endRelationshipCreationForEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager) throws
    func performCustomValidationForEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager) throws
    func endEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager) throws
}

Declaration
From
func beginEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager, error error: NSErrorPointer) -> Bool
To
func beginEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager) throws

Declaration
From
func createDestinationInstancesForSourceInstance(_ sInstance: NSManagedObject, entityMapping mapping: NSEntityMapping, manager manager: NSMigrationManager, error error: NSErrorPointer) -> Bool
To
func createDestinationInstancesForSourceInstance(_ sInstance: NSManagedObject, entityMapping mapping: NSEntityMapping, manager manager: NSMigrationManager) throws

Declaration
From
func createRelationshipsForDestinationInstance(_ dInstance: NSManagedObject, entityMapping mapping: NSEntityMapping, manager manager: NSMigrationManager, error error: NSErrorPointer) -> Bool
To
func createRelationshipsForDestinationInstance(_ dInstance: NSManagedObject, entityMapping mapping: NSEntityMapping, manager manager: NSMigrationManager) throws

Declaration
From
func endEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager, error error: NSErrorPointer) -> Bool
To
func endEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager) throws

Declaration
From
func endInstanceCreationForEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager, error error: NSErrorPointer) -> Bool
To
func endInstanceCreationForEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager) throws

Declaration
From
func endRelationshipCreationForEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager, error error: NSErrorPointer) -> Bool
To
func endRelationshipCreationForEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager) throws

Declaration
From
func performCustomValidationForEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager, error error: NSErrorPointer) -> Bool
To
func performCustomValidationForEntityMapping(_ mapping: NSEntityMapping, manager manager: NSMigrationManager) throws

Raw Value Type
From--
ToUInt

Declaration
From
class NSFetchedResultsController : NSObject {
    init(fetchRequest fetchRequest: NSFetchRequest, managedObjectContext context: NSManagedObjectContext, sectionNameKeyPath sectionNameKeyPath: String?, cacheName name: String?)
    func performFetch(_ error: NSErrorPointer) -> Bool
    var fetchRequest: NSFetchRequest { get }
    var managedObjectContext: NSManagedObjectContext { get }
    var sectionNameKeyPath: String? { get }
    var cacheName: String? { get }
    unowned(unsafe) var delegate: NSFetchedResultsControllerDelegate?
    class func deleteCacheWithName(_ name: String?)
    var fetchedObjects: [AnyObject]? { get }
    func objectAtIndexPath(_ indexPath: NSIndexPath) -> AnyObject
    func indexPathForObject(_ object: AnyObject) -> NSIndexPath?
    func sectionIndexTitleForSectionName(_ sectionName: String?) -> String?
    var sectionIndexTitles: [AnyObject] { get }
    var sections: [AnyObject]? { get }
    func sectionForSectionIndexTitle(_ title: String, atIndex sectionIndex: Int) -> Int
}
To
class NSFetchedResultsController : NSObject {
    init(fetchRequest fetchRequest: NSFetchRequest, managedObjectContext context: NSManagedObjectContext, sectionNameKeyPath sectionNameKeyPath: String?, cacheName name: String?)
    func performFetch() throws
    var fetchRequest: NSFetchRequest { get }
    var managedObjectContext: NSManagedObjectContext { get }
    var sectionNameKeyPath: String? { get }
    var cacheName: String? { get }
    unowned(unsafe) var delegate: NSFetchedResultsControllerDelegate?
    class func deleteCacheWithName(_ name: String?)
    var fetchedObjects: [AnyObject]? { get }
    func objectAtIndexPath(_ indexPath: NSIndexPath) -> AnyObject
    func indexPathForObject(_ object: AnyObject) -> NSIndexPath?
    func sectionIndexTitleForSectionName(_ sectionName: String) -> String?
    var sectionIndexTitles: [String] { get }
    var sections: [NSFetchedResultsSectionInfo]? { get }
    func sectionForSectionIndexTitle(_ title: String, atIndex sectionIndex: Int) -> Int
}

Declaration
From
func performFetch(_ error: NSErrorPointer) -> Bool
To
func performFetch() throws

Declaration
From
func sectionIndexTitleForSectionName(_ sectionName: String?) -> String?
To
func sectionIndexTitleForSectionName(_ sectionName: String) -> String?

Declaration
From
var sectionIndexTitles: [AnyObject] { get }
To
var sectionIndexTitles: [String] { get }

Declaration
From
var sections: [AnyObject]? { get }
To
var sections: [NSFetchedResultsSectionInfo]? { get }

DeclarationProtocols
From
protocol NSFetchedResultsControllerDelegate {
    optional func controller(_ controller: NSFetchedResultsController, didChangeObject anObject: AnyObject, atIndexPath indexPath: NSIndexPath?, forChangeType type: NSFetchedResultsChangeType, newIndexPath newIndexPath: NSIndexPath?)
    optional func controller(_ controller: NSFetchedResultsController, didChangeSection sectionInfo: NSFetchedResultsSectionInfo, atIndex sectionIndex: Int, forChangeType type: NSFetchedResultsChangeType)
    optional func controllerWillChangeContent(_ controller: NSFetchedResultsController)
    optional func controllerDidChangeContent(_ controller: NSFetchedResultsController)
    optional func controller(_ controller: NSFetchedResultsController, sectionIndexTitleForSectionName sectionName: String?) -> String?
}
--
To
protocol NSFetchedResultsControllerDelegate : NSObjectProtocol {
    optional func controller(_ controller: NSFetchedResultsController, didChangeObject anObject: AnyObject, atIndexPath indexPath: NSIndexPath?, forChangeType type: NSFetchedResultsChangeType, newIndexPath newIndexPath: NSIndexPath?)
    optional func controller(_ controller: NSFetchedResultsController, didChangeSection sectionInfo: NSFetchedResultsSectionInfo, atIndex sectionIndex: Int, forChangeType type: NSFetchedResultsChangeType)
    optional func controllerWillChangeContent(_ controller: NSFetchedResultsController)
    optional func controllerDidChangeContent(_ controller: NSFetchedResultsController)
    optional func controller(_ controller: NSFetchedResultsController, sectionIndexTitleForSectionName sectionName: String) -> String?
}
NSObjectProtocol

Introduction
FromiOS 8.0
ToiOS 3.0

Introduction
FromiOS 8.0
ToiOS 3.0

Declaration
From
optional func controller(_ controller: NSFetchedResultsController, sectionIndexTitleForSectionName sectionName: String?) -> String?
To
optional func controller(_ controller: NSFetchedResultsController, sectionIndexTitleForSectionName sectionName: String) -> String?

Introduction
FromiOS 8.0
ToiOS 3.0

Introduction
FromiOS 8.0
ToiOS 3.0

Declaration
From
protocol NSFetchedResultsSectionInfo {
    var name: String? { get }
    var indexTitle: String { get }
    var numberOfObjects: Int { get }
    var objects: [AnyObject] { get }
}
To
protocol NSFetchedResultsSectionInfo {
    var name: String { get }
    var indexTitle: String? { get }
    var numberOfObjects: Int { get }
    var objects: [AnyObject]? { get }
}

Declaration
From
var indexTitle: String { get }
To
var indexTitle: String? { get }

Declaration
From
var name: String? { get }
To
var name: String { get }

Declaration
From
var objects: [AnyObject] { get }
To
var objects: [AnyObject]? { get }

Declaration
From
class NSFetchRequest : NSPersistentStoreRequest, NSCoding {
    convenience init(entityName entityName: String)
    class func fetchRequestWithEntityName(_ entityName: String) -> Self
    init()
    convenience init(entityName entityName: String)
    var entity: NSEntityDescription?
    var entityName: String? { get }
    var predicate: NSPredicate?
    var sortDescriptors: [AnyObject]?
    var fetchLimit: Int
    var affectedStores: [AnyObject]?
    var resultType: NSFetchRequestResultType
    var includesSubentities: Bool
    var includesPropertyValues: Bool
    var returnsObjectsAsFaults: Bool
    var relationshipKeyPathsForPrefetching: [AnyObject]?
    var includesPendingChanges: Bool
    var returnsDistinctResults: Bool
    var propertiesToFetch: [AnyObject]?
    var fetchOffset: Int
    var fetchBatchSize: Int
    var shouldRefreshRefetchedObjects: Bool
    var propertiesToGroupBy: [AnyObject]?
    var havingPredicate: NSPredicate?
}
To
class NSFetchRequest : NSPersistentStoreRequest, NSCoding {
    convenience init(entityName entityName: String)
    class func fetchRequestWithEntityName(_ entityName: String) -> Self
    init()
    convenience init(entityName entityName: String)
    var entity: NSEntityDescription?
    var entityName: String? { get }
    var predicate: NSPredicate?
    var sortDescriptors: [NSSortDescriptor]?
    var fetchLimit: Int
    var affectedStores: [NSPersistentStore]?
    var resultType: NSFetchRequestResultType
    var includesSubentities: Bool
    var includesPropertyValues: Bool
    var returnsObjectsAsFaults: Bool
    var relationshipKeyPathsForPrefetching: [String]?
    var includesPendingChanges: Bool
    var returnsDistinctResults: Bool
    var propertiesToFetch: [AnyObject]?
    var fetchOffset: Int
    var fetchBatchSize: Int
    var shouldRefreshRefetchedObjects: Bool
    var propertiesToGroupBy: [AnyObject]?
    var havingPredicate: NSPredicate?
}

Declaration
From
var affectedStores: [AnyObject]?
To
var affectedStores: [NSPersistentStore]?

Declaration
From
var relationshipKeyPathsForPrefetching: [AnyObject]?
To
var relationshipKeyPathsForPrefetching: [String]?

Declaration
From
var sortDescriptors: [AnyObject]?
To
var sortDescriptors: [NSSortDescriptor]?

DeclarationProtocols
From
struct NSFetchRequestResultType : RawOptionSetType {
    init(_ rawValue: UInt)
    init(rawValue rawValue: UInt)
    static var ManagedObjectResultType: NSFetchRequestResultType { get }
    static var ManagedObjectIDResultType: NSFetchRequestResultType { get }
    static var DictionaryResultType: NSFetchRequestResultType { get }
    static var CountResultType: NSFetchRequestResultType { get }
}
RawOptionSetType
To
struct NSFetchRequestResultType : OptionSetType {
    init(rawValue rawValue: UInt)
    static var ManagedObjectResultType: NSFetchRequestResultType { get }
    static var ManagedObjectIDResultType: NSFetchRequestResultType { get }
    static var DictionaryResultType: NSFetchRequestResultType { get }
    static var CountResultType: NSFetchRequestResultType { get }
}
OptionSetType

Declaration
From
class NSIncrementalStore : NSPersistentStore {
    func loadMetadata(_ error: NSErrorPointer) -> Bool
    func executeRequest(_ request: NSPersistentStoreRequest, withContext context: NSManagedObjectContext, error error: NSErrorPointer) -> AnyObject?
    func newValuesForObjectWithID(_ objectID: NSManagedObjectID, withContext context: NSManagedObjectContext, error error: NSErrorPointer) -> NSIncrementalStoreNode?
    func newValueForRelationship(_ relationship: NSRelationshipDescription, forObjectWithID objectID: NSManagedObjectID, withContext context: NSManagedObjectContext?, error error: NSErrorPointer) -> AnyObject?
    class func identifierForNewStoreAtURL(_ storeURL: NSURL) -> AnyObject
    func obtainPermanentIDsForObjects(_ array: [AnyObject], error error: NSErrorPointer) -> [AnyObject]?
    func managedObjectContextDidRegisterObjectsWithIDs(_ objectIDs: [AnyObject])
    func managedObjectContextDidUnregisterObjectsWithIDs(_ objectIDs: [AnyObject])
    func newObjectIDForEntity(_ entity: NSEntityDescription, referenceObject data: AnyObject) -> NSManagedObjectID
    func referenceObjectForObjectID(_ objectID: NSManagedObjectID) -> AnyObject
}
To
class NSIncrementalStore : NSPersistentStore {
    func loadMetadata() throws
    func executeRequest(_ request: NSPersistentStoreRequest, withContext context: NSManagedObjectContext?) throws -> AnyObject
    func newValuesForObjectWithID(_ objectID: NSManagedObjectID, withContext context: NSManagedObjectContext) throws -> NSIncrementalStoreNode
    func newValueForRelationship(_ relationship: NSRelationshipDescription, forObjectWithID objectID: NSManagedObjectID, withContext context: NSManagedObjectContext?) throws -> AnyObject
    class func identifierForNewStoreAtURL(_ storeURL: NSURL) -> AnyObject
    func obtainPermanentIDsForObjects(_ array: [NSManagedObject]) throws -> [NSManagedObjectID]
    func managedObjectContextDidRegisterObjectsWithIDs(_ objectIDs: [NSManagedObjectID])
    func managedObjectContextDidUnregisterObjectsWithIDs(_ objectIDs: [NSManagedObjectID])
    func newObjectIDForEntity(_ entity: NSEntityDescription, referenceObject data: AnyObject) -> NSManagedObjectID
    func referenceObjectForObjectID(_ objectID: NSManagedObjectID) -> AnyObject
}

Declaration
From
func executeRequest(_ request: NSPersistentStoreRequest, withContext context: NSManagedObjectContext, error error: NSErrorPointer) -> AnyObject?
To
func executeRequest(_ request: NSPersistentStoreRequest, withContext context: NSManagedObjectContext?) throws -> AnyObject

Declaration
From
func loadMetadata(_ error: NSErrorPointer) -> Bool
To
func loadMetadata() throws

Declaration
From
func managedObjectContextDidRegisterObjectsWithIDs(_ objectIDs: [AnyObject])
To
func managedObjectContextDidRegisterObjectsWithIDs(_ objectIDs: [NSManagedObjectID])

Declaration
From
func managedObjectContextDidUnregisterObjectsWithIDs(_ objectIDs: [AnyObject])
To
func managedObjectContextDidUnregisterObjectsWithIDs(_ objectIDs: [NSManagedObjectID])

Declaration
From
func newValueForRelationship(_ relationship: NSRelationshipDescription, forObjectWithID objectID: NSManagedObjectID, withContext context: NSManagedObjectContext?, error error: NSErrorPointer) -> AnyObject?
To
func newValueForRelationship(_ relationship: NSRelationshipDescription, forObjectWithID objectID: NSManagedObjectID, withContext context: NSManagedObjectContext?) throws -> AnyObject

Declaration
From
func newValuesForObjectWithID(_ objectID: NSManagedObjectID, withContext context: NSManagedObjectContext, error error: NSErrorPointer) -> NSIncrementalStoreNode?
To
func newValuesForObjectWithID(_ objectID: NSManagedObjectID, withContext context: NSManagedObjectContext) throws -> NSIncrementalStoreNode

Declaration
From
func obtainPermanentIDsForObjects(_ array: [AnyObject], error error: NSErrorPointer) -> [AnyObject]?
To
func obtainPermanentIDsForObjects(_ array: [NSManagedObject]) throws -> [NSManagedObjectID]

Declaration
From
class NSIncrementalStoreNode : NSObject {
    init(objectID objectID: NSManagedObjectID, withValues values: [NSObject : AnyObject], version version: UInt64)
    func updateWithValues(_ values: [NSObject : AnyObject], version version: UInt64)
    var objectID: NSManagedObjectID { get }
    var version: UInt64 { get }
    func valueForPropertyDescription(_ prop: NSPropertyDescription) -> AnyObject?
}
To
class NSIncrementalStoreNode : NSObject {
    init(objectID objectID: NSManagedObjectID, withValues values: [String : AnyObject], version version: UInt64)
    func updateWithValues(_ values: [String : AnyObject], version version: UInt64)
    var objectID: NSManagedObjectID { get }
    var version: UInt64 { get }
    func valueForPropertyDescription(_ prop: NSPropertyDescription) -> AnyObject?
}

Declaration
From
init(objectID objectID: NSManagedObjectID, withValues values: [NSObject : AnyObject], version version: UInt64)
To
init(objectID objectID: NSManagedObjectID, withValues values: [String : AnyObject], version version: UInt64)

Declaration
From
func updateWithValues(_ values: [NSObject : AnyObject], version version: UInt64)
To
func updateWithValues(_ values: [String : AnyObject], version version: UInt64)

Declaration
From
class NSManagedObject : NSObject {
    class func contextShouldIgnoreUnmodeledPropertyChanges() -> Bool
    init(entity entity: NSEntityDescription, insertIntoManagedObjectContext context: NSManagedObjectContext?)
    unowned(unsafe) var managedObjectContext: NSManagedObjectContext? { get }
    var entity: NSEntityDescription { get }
    var objectID: NSManagedObjectID { get }
    var inserted: Bool { get }
    var updated: Bool { get }
    var deleted: Bool { get }
    var hasChanges: Bool { get }
    var fault: Bool { get }
    func hasFaultForRelationshipNamed(_ key: String) -> Bool
    var faultingState: Int { get }
    func willAccessValueForKey(_ key: String?)
    func didAccessValueForKey(_ key: String)
    func willChangeValueForKey(_ key: String)
    func didChangeValueForKey(_ key: String)
    func willChangeValueForKey(_ inKey: String, withSetMutation inMutationKind: NSKeyValueSetMutationKind, usingObjects inObjects: Set<NSObject>)
    func didChangeValueForKey(_ inKey: String, withSetMutation inMutationKind: NSKeyValueSetMutationKind, usingObjects inObjects: Set<NSObject>)
    func awakeFromFetch()
    func awakeFromInsert()
    func awakeFromSnapshotEvents(_ flags: NSSnapshotEventType)
    func prepareForDeletion()
    func willSave()
    func didSave()
    func willTurnIntoFault()
    func didTurnIntoFault()
    func valueForKey(_ key: String) -> AnyObject?
    func setValue(_ value: AnyObject?, forKey key: String)
    func primitiveValueForKey(_ key: String) -> AnyObject?
    func setPrimitiveValue(_ value: AnyObject?, forKey key: String)
    func committedValuesForKeys(_ keys: [AnyObject]?) -> [NSObject : AnyObject]
    func changedValues() -> [NSObject : AnyObject]
    func changedValuesForCurrentEvent() -> [NSObject : AnyObject]
    func validateValue(_ value: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey key: String, error error: NSErrorPointer) -> Bool
    func validateForDelete(_ error: NSErrorPointer) -> Bool
    func validateForInsert(_ error: NSErrorPointer) -> Bool
    func validateForUpdate(_ error: NSErrorPointer) -> Bool
}
To
class NSManagedObject : NSObject {
    class func contextShouldIgnoreUnmodeledPropertyChanges() -> Bool
    init(entity entity: NSEntityDescription, insertIntoManagedObjectContext context: NSManagedObjectContext?)
    unowned(unsafe) var managedObjectContext: NSManagedObjectContext? { get }
    var entity: NSEntityDescription { get }
    var objectID: NSManagedObjectID { get }
    var inserted: Bool { get }
    var updated: Bool { get }
    var deleted: Bool { get }
    var hasChanges: Bool { get }
    var hasPersistentChangedValues: Bool { get }
    var fault: Bool { get }
    func hasFaultForRelationshipNamed(_ key: String) -> Bool
    func objectIDsForRelationshipNamed(_ key: String) -> [NSManagedObjectID]
    var faultingState: Int { get }
    func willAccessValueForKey(_ key: String?)
    func didAccessValueForKey(_ key: String?)
    func willChangeValueForKey(_ key: String)
    func didChangeValueForKey(_ key: String)
    func willChangeValueForKey(_ inKey: String, withSetMutation inMutationKind: NSKeyValueSetMutationKind, usingObjects inObjects: Set<NSObject>)
    func didChangeValueForKey(_ inKey: String, withSetMutation inMutationKind: NSKeyValueSetMutationKind, usingObjects inObjects: Set<NSObject>)
    func awakeFromFetch()
    func awakeFromInsert()
    func awakeFromSnapshotEvents(_ flags: NSSnapshotEventType)
    func prepareForDeletion()
    func willSave()
    func didSave()
    func willTurnIntoFault()
    func didTurnIntoFault()
    func valueForKey(_ key: String) -> AnyObject?
    func setValue(_ value: AnyObject?, forKey key: String)
    func primitiveValueForKey(_ key: String) -> AnyObject?
    func setPrimitiveValue(_ value: AnyObject?, forKey key: String)
    func committedValuesForKeys(_ keys: [String]?) -> [String : AnyObject]
    func changedValues() -> [String : AnyObject]
    func changedValuesForCurrentEvent() -> [String : AnyObject]
    func validateValue(_ value: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey key: String) throws
    func validateForDelete() throws
    func validateForInsert() throws
    func validateForUpdate() throws
}

Declaration
From
func changedValues() -> [NSObject : AnyObject]
To
func changedValues() -> [String : AnyObject]

Declaration
From
func changedValuesForCurrentEvent() -> [NSObject : AnyObject]
To
func changedValuesForCurrentEvent() -> [String : AnyObject]

Declaration
From
func committedValuesForKeys(_ keys: [AnyObject]?) -> [NSObject : AnyObject]
To
func committedValuesForKeys(_ keys: [String]?) -> [String : AnyObject]

Declaration
From
func didAccessValueForKey(_ key: String)
To
func didAccessValueForKey(_ key: String?)

Declaration
From
func validateForDelete(_ error: NSErrorPointer) -> Bool
To
func validateForDelete() throws

Declaration
From
func validateForInsert(_ error: NSErrorPointer) -> Bool
To
func validateForInsert() throws

Declaration
From
func validateForUpdate(_ error: NSErrorPointer) -> Bool
To
func validateForUpdate() throws

Declaration
From
func validateValue(_ value: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey key: String, error error: NSErrorPointer) -> Bool
To
func validateValue(_ value: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey key: String) throws

Declaration
From
class NSManagedObjectContext : NSObject, NSCoding, NSLocking {
    convenience init()
    init(concurrencyType ct: NSManagedObjectContextConcurrencyType)
    func performBlock(_ block: () -> Void)
    func performBlockAndWait(_ block: () -> Void)
    var persistentStoreCoordinator: NSPersistentStoreCoordinator?
    var parentContext: NSManagedObjectContext?
    var name: String?
    var undoManager: NSUndoManager?
    var hasChanges: Bool { get }
    var userInfo: NSMutableDictionary? { get }
    var concurrencyType: NSManagedObjectContextConcurrencyType { get }
    func objectRegisteredForID(_ objectID: NSManagedObjectID) -> NSManagedObject?
    func objectWithID(_ objectID: NSManagedObjectID) -> NSManagedObject
    func existingObjectWithID(_ objectID: NSManagedObjectID, error error: NSErrorPointer) -> NSManagedObject?
    func executeFetchRequest(_ request: NSFetchRequest, error error: NSErrorPointer) -> [AnyObject]?
    func countForFetchRequest(_ request: NSFetchRequest, error error: NSErrorPointer) -> Int
    func executeRequest(_ request: NSPersistentStoreRequest, error error: NSErrorPointer) -> NSPersistentStoreResult?
    func insertObject(_ object: NSManagedObject)
    func deleteObject(_ object: NSManagedObject)
    func refreshObject(_ object: NSManagedObject, mergeChanges flag: Bool)
    func detectConflictsForObject(_ object: NSManagedObject)
    func observeValueForKeyPath(_ keyPath: String?, ofObject object: AnyObject?, change change: [NSObject : AnyObject]?, context context: UnsafeMutablePointer<Void>)
    func processPendingChanges()
    func assignObject(_ object: AnyObject, toPersistentStore store: NSPersistentStore)
    var insertedObjects: Set<NSObject> { get }
    var updatedObjects: Set<NSObject> { get }
    var deletedObjects: Set<NSObject> { get }
    var registeredObjects: Set<NSObject> { get }
    func undo()
    func redo()
    func reset()
    func rollback()
    func save(_ error: NSErrorPointer) -> Bool
    func lock()
    func unlock()
    func tryLock() -> Bool
    var propagatesDeletesAtEndOfEvent: Bool
    var retainsRegisteredObjects: Bool
    var stalenessInterval: NSTimeInterval
    var mergePolicy: AnyObject
    func obtainPermanentIDsForObjects(_ objects: [AnyObject], error error: NSErrorPointer) -> Bool
    func mergeChangesFromContextDidSaveNotification(_ notification: NSNotification)
}
To
class NSManagedObjectContext : NSObject, NSCoding, NSLocking {
    class func new() -> Self
    convenience init()
    init(concurrencyType ct: NSManagedObjectContextConcurrencyType)
    func performBlock(_ block: () -> Void)
    func performBlockAndWait(_ block: () -> Void)
    var persistentStoreCoordinator: NSPersistentStoreCoordinator?
    var parentContext: NSManagedObjectContext?
    var name: String?
    var undoManager: NSUndoManager?
    var hasChanges: Bool { get }
    var userInfo: NSMutableDictionary { get }
    var concurrencyType: NSManagedObjectContextConcurrencyType { get }
    func objectRegisteredForID(_ objectID: NSManagedObjectID) -> NSManagedObject?
    func objectWithID(_ objectID: NSManagedObjectID) -> NSManagedObject
    func existingObjectWithID(_ objectID: NSManagedObjectID) throws -> NSManagedObject
    func executeFetchRequest(_ request: NSFetchRequest) throws -> [AnyObject]
    func countForFetchRequest(_ request: NSFetchRequest, error error: NSErrorPointer) -> Int
    func executeRequest(_ request: NSPersistentStoreRequest) throws -> NSPersistentStoreResult
    func insertObject(_ object: NSManagedObject)
    func deleteObject(_ object: NSManagedObject)
    func refreshObject(_ object: NSManagedObject, mergeChanges flag: Bool)
    func detectConflictsForObject(_ object: NSManagedObject)
    func observeValueForKeyPath(_ keyPath: String?, ofObject object: AnyObject?, change change: [String : AnyObject]?, context context: UnsafeMutablePointer<Void>)
    func processPendingChanges()
    func assignObject(_ object: AnyObject, toPersistentStore store: NSPersistentStore)
    var insertedObjects: Set<NSManagedObject> { get }
    var updatedObjects: Set<NSManagedObject> { get }
    var deletedObjects: Set<NSManagedObject> { get }
    var registeredObjects: Set<NSManagedObject> { get }
    func undo()
    func redo()
    func reset()
    func rollback()
    func save() throws
    func refreshAllObjects()
    func lock()
    func unlock()
    func tryLock() -> Bool
    var propagatesDeletesAtEndOfEvent: Bool
    var retainsRegisteredObjects: Bool
    var shouldDeleteInaccessibleFaults: Bool
    func shouldHandleInaccessibleFault(_ fault: NSManagedObject, forObjectID oid: NSManagedObjectID, triggeredByProperty property: NSPropertyDescription?) -> Bool
    var stalenessInterval: NSTimeInterval
    var mergePolicy: AnyObject
    func obtainPermanentIDsForObjects(_ objects: [NSManagedObject]) throws
    func mergeChangesFromContextDidSaveNotification(_ notification: NSNotification)
    class func mergeChangesFromRemoteContextSave(_ changeNotificationData: [NSObject : AnyObject], intoContexts contexts: [NSManagedObjectContext])
}

Declaration
From
var deletedObjects: Set<NSObject> { get }
To
var deletedObjects: Set<NSManagedObject> { get }

Declaration
From
func executeFetchRequest(_ request: NSFetchRequest, error error: NSErrorPointer) -> [AnyObject]?
To
func executeFetchRequest(_ request: NSFetchRequest) throws -> [AnyObject]

Declaration
From
func executeRequest(_ request: NSPersistentStoreRequest, error error: NSErrorPointer) -> NSPersistentStoreResult?
To
func executeRequest(_ request: NSPersistentStoreRequest) throws -> NSPersistentStoreResult

Declaration
From
func existingObjectWithID(_ objectID: NSManagedObjectID, error error: NSErrorPointer) -> NSManagedObject?
To
func existingObjectWithID(_ objectID: NSManagedObjectID) throws -> NSManagedObject

IntroductionDeprecation
FromiOS 8.0--
ToiOS 3.0iOS 9.0

Declaration
From
var insertedObjects: Set<NSObject> { get }
To
var insertedObjects: Set<NSManagedObject> { get }

Declaration
From
func observeValueForKeyPath(_ keyPath: String?, ofObject object: AnyObject?, change change: [NSObject : AnyObject]?, context context: UnsafeMutablePointer<Void>)
To
func observeValueForKeyPath(_ keyPath: String?, ofObject object: AnyObject?, change change: [String : AnyObject]?, context context: UnsafeMutablePointer<Void>)

Declaration
From
func obtainPermanentIDsForObjects(_ objects: [AnyObject], error error: NSErrorPointer) -> Bool
To
func obtainPermanentIDsForObjects(_ objects: [NSManagedObject]) throws

Declaration
From
var registeredObjects: Set<NSObject> { get }
To
var registeredObjects: Set<NSManagedObject> { get }

Declaration
From
func save(_ error: NSErrorPointer) -> Bool
To
func save() throws

Declaration
From
var updatedObjects: Set<NSObject> { get }
To
var updatedObjects: Set<NSManagedObject> { get }

Declaration
From
var userInfo: NSMutableDictionary? { get }
To
var userInfo: NSMutableDictionary { get }

Raw Value Type
From--
ToUInt

IntroductionDeprecation
FromiOS 8.0--
ToiOS 3.0iOS 9.0

Declaration
From
class NSManagedObjectModel : NSObject, NSCoding, NSCopying, NSFastEnumeration {
    class func mergedModelFromBundles(_ bundles: [AnyObject]?) -> NSManagedObjectModel?
    init?(byMergingModels models: [AnyObject]?) -> NSManagedObjectModel
    class func modelByMergingModels(_ models: [AnyObject]?) -> NSManagedObjectModel?
    init()
    convenience init?(contentsOfURL url: NSURL)
    var entitiesByName: [NSObject : AnyObject] { get }
    var entities: [AnyObject]
    var configurations: [AnyObject] { get }
    func entitiesForConfiguration(_ configuration: String?) -> [AnyObject]?
    func setEntities(_ entities: [AnyObject], forConfiguration configuration: String)
    func setFetchRequestTemplate(_ fetchRequestTemplate: NSFetchRequest?, forName name: String)
    func fetchRequestTemplateForName(_ name: String) -> NSFetchRequest?
    func fetchRequestFromTemplateWithName(_ name: String, substitutionVariables variables: [NSObject : AnyObject]) -> NSFetchRequest?
    var localizationDictionary: [NSObject : AnyObject]?
    class func mergedModelFromBundles(_ bundles: [AnyObject]?, forStoreMetadata metadata: [NSObject : AnyObject]) -> NSManagedObjectModel?
    init?(byMergingModels models: [AnyObject], forStoreMetadata metadata: [NSObject : AnyObject]) -> NSManagedObjectModel
    class func modelByMergingModels(_ models: [AnyObject], forStoreMetadata metadata: [NSObject : AnyObject]) -> NSManagedObjectModel?
    var fetchRequestTemplatesByName: [NSObject : AnyObject] { get }
    var versionIdentifiers: Set<NSObject>
    func isConfiguration(_ configuration: String?, compatibleWithStoreMetadata metadata: [NSObject : AnyObject]?) -> Bool
    var entityVersionHashesByName: [NSObject : AnyObject] { get }
}
To
class NSManagedObjectModel : NSObject, NSCoding, NSCopying, NSFastEnumeration {
    class func mergedModelFromBundles(_ bundles: [NSBundle]?) -> NSManagedObjectModel?
     init?(byMergingModels models: [NSManagedObjectModel]?)
    class func modelByMergingModels(_ models: [NSManagedObjectModel]?) -> NSManagedObjectModel?
    init()
    convenience init?(contentsOfURL url: NSURL)
    var entitiesByName: [String : NSEntityDescription] { get }
    var entities: [NSEntityDescription]
    var configurations: [String] { get }
    func entitiesForConfiguration(_ configuration: String?) -> [NSEntityDescription]?
    func setEntities(_ entities: [NSEntityDescription], forConfiguration configuration: String)
    func setFetchRequestTemplate(_ fetchRequestTemplate: NSFetchRequest?, forName name: String)
    func fetchRequestTemplateForName(_ name: String) -> NSFetchRequest?
    func fetchRequestFromTemplateWithName(_ name: String, substitutionVariables variables: [String : AnyObject]) -> NSFetchRequest?
    var localizationDictionary: [String : String]?
    class func mergedModelFromBundles(_ bundles: [NSBundle]?, forStoreMetadata metadata: [String : AnyObject]) -> NSManagedObjectModel?
     init?(byMergingModels models: [NSManagedObjectModel], forStoreMetadata metadata: [String : AnyObject])
    class func modelByMergingModels(_ models: [NSManagedObjectModel], forStoreMetadata metadata: [String : AnyObject]) -> NSManagedObjectModel?
    var fetchRequestTemplatesByName: [String : NSFetchRequest] { get }
    var versionIdentifiers: Set<NSObject>
    func isConfiguration(_ configuration: String?, compatibleWithStoreMetadata metadata: [String : AnyObject]) -> Bool
    var entityVersionHashesByName: [String : NSData] { get }
}

Declaration
From
var configurations: [AnyObject] { get }
To
var configurations: [String] { get }

Declaration
From
var entities: [AnyObject]
To
var entities: [NSEntityDescription]

Declaration
From
var entitiesByName: [NSObject : AnyObject] { get }
To
var entitiesByName: [String : NSEntityDescription] { get }

Declaration
From
func entitiesForConfiguration(_ configuration: String?) -> [AnyObject]?
To
func entitiesForConfiguration(_ configuration: String?) -> [NSEntityDescription]?

Declaration
From
var entityVersionHashesByName: [NSObject : AnyObject] { get }
To
var entityVersionHashesByName: [String : NSData] { get }

Declaration
From
func fetchRequestFromTemplateWithName(_ name: String, substitutionVariables variables: [NSObject : AnyObject]) -> NSFetchRequest?
To
func fetchRequestFromTemplateWithName(_ name: String, substitutionVariables variables: [String : AnyObject]) -> NSFetchRequest?

Declaration
From
var fetchRequestTemplatesByName: [NSObject : AnyObject] { get }
To
var fetchRequestTemplatesByName: [String : NSFetchRequest] { get }

Declaration
From
init?(byMergingModels models: [AnyObject]?) -> NSManagedObjectModel
To
init?(byMergingModels models: [NSManagedObjectModel]?)

Declaration
From
init?(byMergingModels models: [AnyObject], forStoreMetadata metadata: [NSObject : AnyObject]) -> NSManagedObjectModel
To
init?(byMergingModels models: [NSManagedObjectModel], forStoreMetadata metadata: [String : AnyObject])

Declaration
From
func isConfiguration(_ configuration: String?, compatibleWithStoreMetadata metadata: [NSObject : AnyObject]?) -> Bool
To
func isConfiguration(_ configuration: String?, compatibleWithStoreMetadata metadata: [String : AnyObject]) -> Bool

Declaration
From
var localizationDictionary: [NSObject : AnyObject]?
To
var localizationDictionary: [String : String]?

Declaration
From
class func mergedModelFromBundles(_ bundles: [AnyObject]?) -> NSManagedObjectModel?
To
class func mergedModelFromBundles(_ bundles: [NSBundle]?) -> NSManagedObjectModel?

Declaration
From
class func mergedModelFromBundles(_ bundles: [AnyObject]?, forStoreMetadata metadata: [NSObject : AnyObject]) -> NSManagedObjectModel?
To
class func mergedModelFromBundles(_ bundles: [NSBundle]?, forStoreMetadata metadata: [String : AnyObject]) -> NSManagedObjectModel?

Declaration
From
func setEntities(_ entities: [AnyObject], forConfiguration configuration: String)
To
func setEntities(_ entities: [NSEntityDescription], forConfiguration configuration: String)

Declaration
From
class NSMappingModel : NSObject {
    init?(fromBundles bundles: [AnyObject]?, forSourceModel sourceModel: NSManagedObjectModel?, destinationModel destinationModel: NSManagedObjectModel?) -> NSMappingModel
    class func mappingModelFromBundles(_ bundles: [AnyObject]?, forSourceModel sourceModel: NSManagedObjectModel?, destinationModel destinationModel: NSManagedObjectModel?) -> NSMappingModel?
    class func inferredMappingModelForSourceModel(_ sourceModel: NSManagedObjectModel, destinationModel destinationModel: NSManagedObjectModel, error error: NSErrorPointer) -> NSMappingModel?
    init?(contentsOfURL url: NSURL?)
    var entityMappings: [AnyObject]?
    var entityMappingsByName: [NSObject : AnyObject] { get }
}
To
class NSMappingModel : NSObject {
     init?(fromBundles bundles: [NSBundle]?, forSourceModel sourceModel: NSManagedObjectModel?, destinationModel destinationModel: NSManagedObjectModel?)
    class func mappingModelFromBundles(_ bundles: [NSBundle]?, forSourceModel sourceModel: NSManagedObjectModel?, destinationModel destinationModel: NSManagedObjectModel?) -> NSMappingModel?
    class func inferredMappingModelForSourceModel(_ sourceModel: NSManagedObjectModel, destinationModel destinationModel: NSManagedObjectModel) throws -> NSMappingModel
    init?(contentsOfURL url: NSURL?)
    var entityMappings: [NSEntityMapping]!
    var entityMappingsByName: [String : NSEntityMapping] { get }
}

Declaration
From
var entityMappings: [AnyObject]?
To
var entityMappings: [NSEntityMapping]!

Declaration
From
var entityMappingsByName: [NSObject : AnyObject] { get }
To
var entityMappingsByName: [String : NSEntityMapping] { get }

Declaration
From
class func inferredMappingModelForSourceModel(_ sourceModel: NSManagedObjectModel, destinationModel destinationModel: NSManagedObjectModel, error error: NSErrorPointer) -> NSMappingModel?
To
class func inferredMappingModelForSourceModel(_ sourceModel: NSManagedObjectModel, destinationModel destinationModel: NSManagedObjectModel) throws -> NSMappingModel

Declaration
From
init?(fromBundles bundles: [AnyObject]?, forSourceModel sourceModel: NSManagedObjectModel?, destinationModel destinationModel: NSManagedObjectModel?) -> NSMappingModel
To
init?(fromBundles bundles: [NSBundle]?, forSourceModel sourceModel: NSManagedObjectModel?, destinationModel destinationModel: NSManagedObjectModel?)

Declaration
From
class NSMergeConflict : NSObject {
    var sourceObject: NSManagedObject { get }
    var objectSnapshot: [NSObject : AnyObject]? { get }
    var cachedSnapshot: [NSObject : AnyObject] { get }
    var persistedSnapshot: [NSObject : AnyObject]? { get }
    var newVersionNumber: Int { get }
    var oldVersionNumber: Int { get }
    init(source srcObject: NSManagedObject, newVersion newvers: Int, oldVersion oldvers: Int, cachedSnapshot cachesnap: [NSObject : AnyObject], persistedSnapshot persnap: [NSObject : AnyObject]?)
}
To
class NSMergeConflict : NSObject {
    var sourceObject: NSManagedObject { get }
    var objectSnapshot: [String : AnyObject]? { get }
    var cachedSnapshot: [String : AnyObject]? { get }
    var persistedSnapshot: [String : AnyObject]? { get }
    var newVersionNumber: Int { get }
    var oldVersionNumber: Int { get }
    init(source srcObject: NSManagedObject, newVersion newvers: Int, oldVersion oldvers: Int, cachedSnapshot cachesnap: [String : AnyObject]?, persistedSnapshot persnap: [String : AnyObject]?)
    convenience init()
}

Declaration
From
var cachedSnapshot: [NSObject : AnyObject] { get }
To
var cachedSnapshot: [String : AnyObject]? { get }

Declaration
From
init(source srcObject: NSManagedObject, newVersion newvers: Int, oldVersion oldvers: Int, cachedSnapshot cachesnap: [NSObject : AnyObject], persistedSnapshot persnap: [NSObject : AnyObject]?)
To
init(source srcObject: NSManagedObject, newVersion newvers: Int, oldVersion oldvers: Int, cachedSnapshot cachesnap: [String : AnyObject]?, persistedSnapshot persnap: [String : AnyObject]?)

Declaration
From
var objectSnapshot: [NSObject : AnyObject]? { get }
To
var objectSnapshot: [String : AnyObject]? { get }

Declaration
From
var persistedSnapshot: [NSObject : AnyObject]? { get }
To
var persistedSnapshot: [String : AnyObject]? { get }

Modified NSMergePolicy
Declaration
From
class NSMergePolicy : NSObject {
    var mergeType: NSMergePolicyType { get }
    init(mergeType ty: NSMergePolicyType)
    func resolveConflicts(_ list: [AnyObject], error error: NSErrorPointer) -> Bool
}
To
class NSMergePolicy : NSObject {
    var mergeType: NSMergePolicyType { get }
    init(mergeType ty: NSMergePolicyType)
    convenience init()
    func resolveConflicts(_ list: [AnyObject]) throws
    func resolveOptimisticLockingVersionConflicts(_ list: [NSMergeConflict]) throws
    func resolveConstraintConflicts(_ list: [NSConstraintConflict]) throws
}

Declaration
From
func resolveConflicts(_ list: [AnyObject], error error: NSErrorPointer) -> Bool
To
func resolveConflicts(_ list: [AnyObject]) throws

Raw Value Type
From--
ToUInt

Declaration
From
class NSMigrationManager : NSObject {
    init(sourceModel sourceModel: NSManagedObjectModel, destinationModel destinationModel: NSManagedObjectModel)
    func migrateStoreFromURL(_ sourceURL: NSURL, type sStoreType: String, options sOptions: [NSObject : AnyObject]?, withMappingModel mappings: NSMappingModel?, toDestinationURL dURL: NSURL, destinationType dStoreType: String, destinationOptions dOptions: [NSObject : AnyObject]?, error error: NSErrorPointer) -> Bool
    var usesStoreSpecificMigrationManager: Bool
    func reset()
    var mappingModel: NSMappingModel { get }
    var sourceModel: NSManagedObjectModel { get }
    var destinationModel: NSManagedObjectModel { get }
    var sourceContext: NSManagedObjectContext { get }
    var destinationContext: NSManagedObjectContext { get }
    func sourceEntityForEntityMapping(_ mEntity: NSEntityMapping) -> NSEntityDescription?
    func destinationEntityForEntityMapping(_ mEntity: NSEntityMapping) -> NSEntityDescription?
    func associateSourceInstance(_ sourceInstance: NSManagedObject, withDestinationInstance destinationInstance: NSManagedObject, forEntityMapping entityMapping: NSEntityMapping)
    func destinationInstancesForEntityMappingNamed(_ mappingName: String, sourceInstances sourceInstances: [AnyObject]?) -> [AnyObject]
    func sourceInstancesForEntityMappingNamed(_ mappingName: String, destinationInstances destinationInstances: [AnyObject]?) -> [AnyObject]
    var currentEntityMapping: NSEntityMapping { get }
    var migrationProgress: Float { get }
    var userInfo: [NSObject : AnyObject]?
    func cancelMigrationWithError(_ error: NSError)
}
To
class NSMigrationManager : NSObject {
    init(sourceModel sourceModel: NSManagedObjectModel, destinationModel destinationModel: NSManagedObjectModel)
    func migrateStoreFromURL(_ sourceURL: NSURL, type sStoreType: String, options sOptions: [NSObject : AnyObject]?, withMappingModel mappings: NSMappingModel?, toDestinationURL dURL: NSURL, destinationType dStoreType: String, destinationOptions dOptions: [NSObject : AnyObject]?) throws
    var usesStoreSpecificMigrationManager: Bool
    func reset()
    var mappingModel: NSMappingModel { get }
    var sourceModel: NSManagedObjectModel { get }
    var destinationModel: NSManagedObjectModel { get }
    var sourceContext: NSManagedObjectContext { get }
    var destinationContext: NSManagedObjectContext { get }
    func sourceEntityForEntityMapping(_ mEntity: NSEntityMapping) -> NSEntityDescription?
    func destinationEntityForEntityMapping(_ mEntity: NSEntityMapping) -> NSEntityDescription?
    func associateSourceInstance(_ sourceInstance: NSManagedObject, withDestinationInstance destinationInstance: NSManagedObject, forEntityMapping entityMapping: NSEntityMapping)
    func destinationInstancesForEntityMappingNamed(_ mappingName: String, sourceInstances sourceInstances: [NSManagedObject]?) -> [NSManagedObject]
    func sourceInstancesForEntityMappingNamed(_ mappingName: String, destinationInstances destinationInstances: [NSManagedObject]?) -> [NSManagedObject]
    var currentEntityMapping: NSEntityMapping { get }
    var migrationProgress: Float { get }
    var userInfo: [NSObject : AnyObject]?
    func cancelMigrationWithError(_ error: NSError)
}

Declaration
From
func destinationInstancesForEntityMappingNamed(_ mappingName: String, sourceInstances sourceInstances: [AnyObject]?) -> [AnyObject]
To
func destinationInstancesForEntityMappingNamed(_ mappingName: String, sourceInstances sourceInstances: [NSManagedObject]?) -> [NSManagedObject]

Declaration
From
func migrateStoreFromURL(_ sourceURL: NSURL, type sStoreType: String, options sOptions: [NSObject : AnyObject]?, withMappingModel mappings: NSMappingModel?, toDestinationURL dURL: NSURL, destinationType dStoreType: String, destinationOptions dOptions: [NSObject : AnyObject]?, error error: NSErrorPointer) -> Bool
To
func migrateStoreFromURL(_ sourceURL: NSURL, type sStoreType: String, options sOptions: [NSObject : AnyObject]?, withMappingModel mappings: NSMappingModel?, toDestinationURL dURL: NSURL, destinationType dStoreType: String, destinationOptions dOptions: [NSObject : AnyObject]?) throws

Declaration
From
func sourceInstancesForEntityMappingNamed(_ mappingName: String, destinationInstances destinationInstances: [AnyObject]?) -> [AnyObject]
To
func sourceInstancesForEntityMappingNamed(_ mappingName: String, destinationInstances destinationInstances: [NSManagedObject]?) -> [NSManagedObject]

Declaration
From
class NSPersistentStore : NSObject {
    class func metadataForPersistentStoreWithURL(_ url: NSURL, error error: NSErrorPointer) -> [NSObject : AnyObject]?
    class func setMetadata(_ metadata: [NSObject : AnyObject]?, forPersistentStoreWithURL url: NSURL, error error: NSErrorPointer) -> Bool
    class func migrationManagerClass() -> AnyClass
    init(persistentStoreCoordinator root: NSPersistentStoreCoordinator, configurationName name: String?, URL url: NSURL, options options: [NSObject : AnyObject]?)
    func loadMetadata(_ error: NSErrorPointer) -> Bool
    weak var persistentStoreCoordinator: NSPersistentStoreCoordinator? { get }
    var configurationName: String { get }
    var options: [NSObject : AnyObject]? { get }
    var URL: NSURL?
    var identifier: String!
    var type: String { get }
    var readOnly: Bool
    var metadata: [NSObject : AnyObject]!
    func didAddToPersistentStoreCoordinator(_ coordinator: NSPersistentStoreCoordinator)
    func willRemoveFromPersistentStoreCoordinator(_ coordinator: NSPersistentStoreCoordinator)
}
To
class NSPersistentStore : NSObject {
    class func metadataForPersistentStoreWithURL(_ url: NSURL) throws -> [String : AnyObject]
    class func setMetadata(_ metadata: [String : AnyObject]?, forPersistentStoreWithURL url: NSURL) throws
    class func migrationManagerClass() -> AnyClass
    init(persistentStoreCoordinator root: NSPersistentStoreCoordinator?, configurationName name: String?, URL url: NSURL, options options: [NSObject : AnyObject]?)
    convenience init()
    func loadMetadata() throws
    weak var persistentStoreCoordinator: NSPersistentStoreCoordinator? { get }
    var configurationName: String { get }
    var options: [NSObject : AnyObject]? { get }
    var URL: NSURL?
    var identifier: String!
    var type: String { get }
    var readOnly: Bool
    var metadata: [String : AnyObject]!
    func didAddToPersistentStoreCoordinator(_ coordinator: NSPersistentStoreCoordinator)
    func willRemoveFromPersistentStoreCoordinator(_ coordinator: NSPersistentStoreCoordinator?)
}

Declaration
From
init(persistentStoreCoordinator root: NSPersistentStoreCoordinator, configurationName name: String?, URL url: NSURL, options options: [NSObject : AnyObject]?)
To
init(persistentStoreCoordinator root: NSPersistentStoreCoordinator?, configurationName name: String?, URL url: NSURL, options options: [NSObject : AnyObject]?)

Declaration
From
func loadMetadata(_ error: NSErrorPointer) -> Bool
To
func loadMetadata() throws

Declaration
From
var metadata: [NSObject : AnyObject]!
To
var metadata: [String : AnyObject]!

Declaration
From
class func metadataForPersistentStoreWithURL(_ url: NSURL, error error: NSErrorPointer) -> [NSObject : AnyObject]?
To
class func metadataForPersistentStoreWithURL(_ url: NSURL) throws -> [String : AnyObject]

Declaration
From
class func setMetadata(_ metadata: [NSObject : AnyObject]?, forPersistentStoreWithURL url: NSURL, error error: NSErrorPointer) -> Bool
To
class func setMetadata(_ metadata: [String : AnyObject]?, forPersistentStoreWithURL url: NSURL) throws

Declaration
From
func willRemoveFromPersistentStoreCoordinator(_ coordinator: NSPersistentStoreCoordinator)
To
func willRemoveFromPersistentStoreCoordinator(_ coordinator: NSPersistentStoreCoordinator?)

Declaration
From
class NSPersistentStoreCoordinator : NSObject, NSLocking {
    init(managedObjectModel model: NSManagedObjectModel)
    var managedObjectModel: NSManagedObjectModel { get }
    var persistentStores: [AnyObject] { get }
    var name: String!
    func persistentStoreForURL(_ URL: NSURL) -> NSPersistentStore?
    func URLForPersistentStore(_ store: NSPersistentStore) -> NSURL
    func setURL(_ url: NSURL, forPersistentStore store: NSPersistentStore) -> Bool
    func addPersistentStoreWithType(_ storeType: String, configuration configuration: String?, URL storeURL: NSURL?, options options: [NSObject : AnyObject]?, error error: NSErrorPointer) -> NSPersistentStore?
    func removePersistentStore(_ store: NSPersistentStore, error error: NSErrorPointer) -> Bool
    func setMetadata(_ metadata: [NSObject : AnyObject]?, forPersistentStore store: NSPersistentStore)
    func metadataForPersistentStore(_ store: NSPersistentStore) -> [NSObject : AnyObject]
    func managedObjectIDForURIRepresentation(_ url: NSURL) -> NSManagedObjectID?
    func executeRequest(_ request: NSPersistentStoreRequest, withContext context: NSManagedObjectContext, error error: NSErrorPointer) -> AnyObject?
    class func registeredStoreTypes() -> [NSObject : AnyObject]
    class func registerStoreClass(_ storeClass: AnyClass?, forStoreType storeType: String)
    class func metadataForPersistentStoreOfType(_ storeType: String?, URL url: NSURL, error error: NSErrorPointer) -> [NSObject : AnyObject]?
    class func setMetadata(_ metadata: [NSObject : AnyObject]?, forPersistentStoreOfType storeType: String?, URL url: NSURL, error error: NSErrorPointer) -> Bool
    class func removeUbiquitousContentAndPersistentStoreAtURL(_ storeURL: NSURL, options options: [NSObject : AnyObject]?, error error: NSErrorPointer) -> Bool
    func migratePersistentStore(_ store: NSPersistentStore, toURL URL: NSURL, options options: [NSObject : AnyObject]?, withType storeType: String, error error: NSErrorPointer) -> NSPersistentStore?
    func performBlock(_ block: () -> Void)
    func performBlockAndWait(_ block: () -> Void)
    func lock()
    func unlock()
    func tryLock() -> Bool
}
To
class NSPersistentStoreCoordinator : NSObject, NSLocking {
    init(managedObjectModel model: NSManagedObjectModel)
    var managedObjectModel: NSManagedObjectModel { get }
    var persistentStores: [NSPersistentStore] { get }
    var name: String?
    func persistentStoreForURL(_ URL: NSURL) -> NSPersistentStore?
    func URLForPersistentStore(_ store: NSPersistentStore) -> NSURL
    func setURL(_ url: NSURL, forPersistentStore store: NSPersistentStore) -> Bool
    func addPersistentStoreWithType(_ storeType: String, configuration configuration: String?, URL storeURL: NSURL?, options options: [NSObject : AnyObject]?) throws -> NSPersistentStore
    func removePersistentStore(_ store: NSPersistentStore) throws
    func setMetadata(_ metadata: [String : AnyObject]?, forPersistentStore store: NSPersistentStore)
    func metadataForPersistentStore(_ store: NSPersistentStore) -> [String : AnyObject]
    func managedObjectIDForURIRepresentation(_ url: NSURL) -> NSManagedObjectID?
    func executeRequest(_ request: NSPersistentStoreRequest, withContext context: NSManagedObjectContext) throws -> AnyObject
    class func registeredStoreTypes() -> [String : NSValue]
    class func registerStoreClass(_ storeClass: AnyClass, forStoreType storeType: String)
    class func metadataForPersistentStoreOfType(_ storeType: String, URL url: NSURL, options options: [NSObject : AnyObject]?) throws -> [String : AnyObject]
    class func setMetadata(_ metadata: [String : AnyObject]?, forPersistentStoreOfType storeType: String, URL url: NSURL, options options: [NSObject : AnyObject]?) throws
    class func metadataForPersistentStoreOfType(_ storeType: String?, URL url: NSURL) throws -> [String : AnyObject]
    class func setMetadata(_ metadata: [String : AnyObject]?, forPersistentStoreOfType storeType: String?, URL url: NSURL) throws
    class func removeUbiquitousContentAndPersistentStoreAtURL(_ storeURL: NSURL, options options: [NSObject : AnyObject]?) throws
    func migratePersistentStore(_ store: NSPersistentStore, toURL URL: NSURL, options options: [NSObject : AnyObject]?, withType storeType: String) throws -> NSPersistentStore
    func destroyPersistentStoreAtURL(_ url: NSURL, withType storeType: String, options options: [NSObject : AnyObject]?) throws
    func replacePersistentStoreAtURL(_ destinationURL: NSURL, destinationOptions destinationOptions: [NSObject : AnyObject]?, withPersistentStoreFromURL sourceURL: NSURL, sourceOptions sourceOptions: [NSObject : AnyObject]?, storeType storeType: String) throws
    func performBlock(_ block: () -> Void)
    func performBlockAndWait(_ block: () -> Void)
    func lock()
    func unlock()
    func tryLock() -> Bool
}

Declaration
From
func addPersistentStoreWithType(_ storeType: String, configuration configuration: String?, URL storeURL: NSURL?, options options: [NSObject : AnyObject]?, error error: NSErrorPointer) -> NSPersistentStore?
To
func addPersistentStoreWithType(_ storeType: String, configuration configuration: String?, URL storeURL: NSURL?, options options: [NSObject : AnyObject]?) throws -> NSPersistentStore

Declaration
From
func executeRequest(_ request: NSPersistentStoreRequest, withContext context: NSManagedObjectContext, error error: NSErrorPointer) -> AnyObject?
To
func executeRequest(_ request: NSPersistentStoreRequest, withContext context: NSManagedObjectContext) throws -> AnyObject

Declaration
From
func metadataForPersistentStore(_ store: NSPersistentStore) -> [NSObject : AnyObject]
To
func metadataForPersistentStore(_ store: NSPersistentStore) -> [String : AnyObject]

DeclarationDeprecation
From
class func metadataForPersistentStoreOfType(_ storeType: String?, URL url: NSURL, error error: NSErrorPointer) -> [NSObject : AnyObject]?
--
To
class func metadataForPersistentStoreOfType(_ storeType: String?, URL url: NSURL) throws -> [String : AnyObject]
iOS 9.0

Declaration
From
func migratePersistentStore(_ store: NSPersistentStore, toURL URL: NSURL, options options: [NSObject : AnyObject]?, withType storeType: String, error error: NSErrorPointer) -> NSPersistentStore?
To
func migratePersistentStore(_ store: NSPersistentStore, toURL URL: NSURL, options options: [NSObject : AnyObject]?, withType storeType: String) throws -> NSPersistentStore

Declaration
From
var name: String!
To
var name: String?

Declaration
From
var persistentStores: [AnyObject] { get }
To
var persistentStores: [NSPersistentStore] { get }

Declaration
From
class func registeredStoreTypes() -> [NSObject : AnyObject]
To
class func registeredStoreTypes() -> [String : NSValue]

Declaration
From
class func registerStoreClass(_ storeClass: AnyClass?, forStoreType storeType: String)
To
class func registerStoreClass(_ storeClass: AnyClass, forStoreType storeType: String)

Declaration
From
func removePersistentStore(_ store: NSPersistentStore, error error: NSErrorPointer) -> Bool
To
func removePersistentStore(_ store: NSPersistentStore) throws

Declaration
From
class func removeUbiquitousContentAndPersistentStoreAtURL(_ storeURL: NSURL, options options: [NSObject : AnyObject]?, error error: NSErrorPointer) -> Bool
To
class func removeUbiquitousContentAndPersistentStoreAtURL(_ storeURL: NSURL, options options: [NSObject : AnyObject]?) throws

Declaration
From
func setMetadata(_ metadata: [NSObject : AnyObject]?, forPersistentStore store: NSPersistentStore)
To
func setMetadata(_ metadata: [String : AnyObject]?, forPersistentStore store: NSPersistentStore)

DeclarationDeprecation
From
class func setMetadata(_ metadata: [NSObject : AnyObject]?, forPersistentStoreOfType storeType: String?, URL url: NSURL, error error: NSErrorPointer) -> Bool
--
To
class func setMetadata(_ metadata: [String : AnyObject]?, forPersistentStoreOfType storeType: String?, URL url: NSURL) throws
iOS 9.0

Declaration
From
class NSPersistentStoreRequest : NSObject, NSCopying {
    var affectedStores: [AnyObject]?
    var requestType: NSPersistentStoreRequestType { get }
}
To
class NSPersistentStoreRequest : NSObject, NSCopying {
    var affectedStores: [NSPersistentStore]?
    var requestType: NSPersistentStoreRequestType { get }
}

Declaration
From
var affectedStores: [AnyObject]?
To
var affectedStores: [NSPersistentStore]?

DeclarationRaw Value Type
From
enum NSPersistentStoreRequestType : UInt {
    case FetchRequestType
    case SaveRequestType
    case BatchUpdateRequestType
}
--
To
enum NSPersistentStoreRequestType : UInt {
    case FetchRequestType
    case SaveRequestType
    case BatchUpdateRequestType
    case BatchDeleteRequestType
}
UInt

Raw Value Type
From--
ToUInt

Declaration
From
class NSPropertyDescription : NSObject, NSCoding, NSCopying {
    unowned(unsafe) var entity: NSEntityDescription { get }
    var name: String
    var optional: Bool
    var transient: Bool
    var validationPredicates: [AnyObject] { get }
    var validationWarnings: [AnyObject] { get }
    func setValidationPredicates(_ validationPredicates: [AnyObject]?, withValidationWarnings validationWarnings: [AnyObject]?)
    var userInfo: [NSObject : AnyObject]?
    var indexed: Bool
    @NSCopying var versionHash: NSData { get }
    var versionHashModifier: String?
    var indexedBySpotlight: Bool
    var storedInExternalRecord: Bool
    var renamingIdentifier: String?
}
To
class NSPropertyDescription : NSObject, NSCoding, NSCopying {
    unowned(unsafe) var entity: NSEntityDescription { get }
    var name: String
    var optional: Bool
    var transient: Bool
    var validationPredicates: [NSPredicate] { get }
    var validationWarnings: [AnyObject] { get }
    func setValidationPredicates(_ validationPredicates: [NSPredicate]?, withValidationWarnings validationWarnings: [String]?)
    var userInfo: [NSObject : AnyObject]?
    var indexed: Bool
    @NSCopying var versionHash: NSData { get }
    var versionHashModifier: String?
    var indexedBySpotlight: Bool
    var storedInExternalRecord: Bool
    var renamingIdentifier: String?
}

Declaration
From
func setValidationPredicates(_ validationPredicates: [AnyObject]?, withValidationWarnings validationWarnings: [AnyObject]?)
To
func setValidationPredicates(_ validationPredicates: [NSPredicate]?, withValidationWarnings validationWarnings: [String]?)

Declaration
From
var validationPredicates: [AnyObject] { get }
To
var validationPredicates: [NSPredicate] { get }

Declaration
From
class NSSaveChangesRequest : NSPersistentStoreRequest {
    init(insertedObjects insertedObjects: Set<NSObject>?, updatedObjects updatedObjects: Set<NSObject>?, deletedObjects deletedObjects: Set<NSObject>?, lockedObjects lockedObjects: Set<NSObject>?)
    var insertedObjects: Set<NSObject>? { get }
    var updatedObjects: Set<NSObject>? { get }
    var deletedObjects: Set<NSObject>? { get }
    var lockedObjects: Set<NSObject>? { get }
}
To
class NSSaveChangesRequest : NSPersistentStoreRequest {
    init(insertedObjects insertedObjects: Set<NSManagedObject>?, updatedObjects updatedObjects: Set<NSManagedObject>?, deletedObjects deletedObjects: Set<NSManagedObject>?, lockedObjects lockedObjects: Set<NSManagedObject>?)
    var insertedObjects: Set<NSManagedObject>? { get }
    var updatedObjects: Set<NSManagedObject>? { get }
    var deletedObjects: Set<NSManagedObject>? { get }
    var lockedObjects: Set<NSManagedObject>? { get }
}

Declaration
From
var deletedObjects: Set<NSObject>? { get }
To
var deletedObjects: Set<NSManagedObject>? { get }

Declaration
From
init(insertedObjects insertedObjects: Set<NSObject>?, updatedObjects updatedObjects: Set<NSObject>?, deletedObjects deletedObjects: Set<NSObject>?, lockedObjects lockedObjects: Set<NSObject>?)
To
init(insertedObjects insertedObjects: Set<NSManagedObject>?, updatedObjects updatedObjects: Set<NSManagedObject>?, deletedObjects deletedObjects: Set<NSManagedObject>?, lockedObjects lockedObjects: Set<NSManagedObject>?)

Declaration
From
var insertedObjects: Set<NSObject>? { get }
To
var insertedObjects: Set<NSManagedObject>? { get }

Declaration
From
var lockedObjects: Set<NSObject>? { get }
To
var lockedObjects: Set<NSManagedObject>? { get }

Declaration
From
var updatedObjects: Set<NSObject>? { get }
To
var updatedObjects: Set<NSManagedObject>? { get }

DeclarationProtocols
From
struct NSSnapshotEventType : RawOptionSetType {
    init(_ rawValue: UInt)
    init(rawValue rawValue: UInt)
    static var UndoInsertion: NSSnapshotEventType { get }
    static var UndoDeletion: NSSnapshotEventType { get }
    static var UndoUpdate: NSSnapshotEventType { get }
    static var Rollback: NSSnapshotEventType { get }
    static var Refresh: NSSnapshotEventType { get }
    static var MergePolicy: NSSnapshotEventType { get }
}
RawOptionSetType
To
struct NSSnapshotEventType : OptionSetType {
    init(rawValue rawValue: UInt)
    static var UndoInsertion: NSSnapshotEventType { get }
    static var UndoDeletion: NSSnapshotEventType { get }
    static var UndoUpdate: NSSnapshotEventType { get }
    static var Rollback: NSSnapshotEventType { get }
    static var Refresh: NSSnapshotEventType { get }
    static var MergePolicy: NSSnapshotEventType { get }
}
OptionSetType

Declaration
From
var NSErrorMergePolicy: AnyObject!
To
var NSErrorMergePolicy: AnyObject

DeclarationIntroduction
From
var NSFetchRequestExpressionType: Int { get }
iOS 8.0
To
let NSFetchRequestExpressionType: NSExpressionType
iOS 9.0

Declaration
From
var NSMergeByPropertyObjectTrumpMergePolicy: AnyObject!
To
var NSMergeByPropertyObjectTrumpMergePolicy: AnyObject

Declaration
From
var NSMergeByPropertyStoreTrumpMergePolicy: AnyObject!
To
var NSMergeByPropertyStoreTrumpMergePolicy: AnyObject

Declaration
From
var NSOverwriteMergePolicy: AnyObject!
To
var NSOverwriteMergePolicy: AnyObject

Declaration
From
typealias NSPersistentStoreAsynchronousFetchResultCompletionBlock = (NSAsynchronousFetchResult!) -> Void
To
typealias NSPersistentStoreAsynchronousFetchResultCompletionBlock = (NSAsynchronousFetchResult) -> Void

Declaration
From
var NSRollbackMergePolicy: AnyObject!
To
var NSRollbackMergePolicy: AnyObject