One Logo Pool Ball
CoreData · IOS API REFERENCE

NSMappingModel

class · iOS 3.0+ · SDK 27.1

class NSMappingModel

Members (6)

static · iOS 3.0+

inferredMappingModel

TypeScript
static inferredMappingModel(sourceModel: NSManagedObjectModel, destinationModel: NSManagedObjectModel): NSMappingModel
Swift declaration
class func inferredMappingModel(forSourceModel sourceModel: NSManagedObjectModel, destinationModel: NSManagedObjectModel) throws -> NSMappingModel
init · iOS 3.0+

init

TypeScript
static initFromForSourceModelDestinationModel(bundles?: (Array<_Foundation_Bundle>) | null, sourceModel?: (NSManagedObjectModel) | null, destinationModel?: (NSManagedObjectModel) | null): (NSMappingModel) | null
Swift declaration
init?(from bundles: [Bundle]?, forSourceModel sourceModel: NSManagedObjectModel?, destinationModel: NSManagedObjectModel?)
init · iOS 3.0+

init

TypeScript
static initContentsOf(url?: (string) | null): (NSMappingModel) | null
Swift declaration
init?(contentsOf url: URL?)
get · iOS 3.0+

entityMappings

TypeScript
get entityMappings(): (Array<NSEntityMapping>) | null
Swift declaration
var entityMappings: [NSEntityMapping]! { get set }
set · iOS 3.0+

entityMappings

TypeScript
set entityMappings(value: (Array<NSEntityMapping>) | null)
Swift declaration
var entityMappings: [NSEntityMapping]! { get set }
get · iOS 3.0+

entityMappingsByName

TypeScript
get entityMappingsByName(): Record<string, NSEntityMapping>
Swift declaration
var entityMappingsByName: [String : NSEntityMapping] { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NSMappingModel.init()

inherited init: cannot prove legal (class declares 4 custom initializers)

All CoreData types →