Mac Developer Library

Developer

CoreData Framework Reference NSPropertyMapping Class Reference

Options
Deployment Target:

On This Page
Language:

NSPropertyMapping

Instances of NSPropertyMapping specify in a mapping model how to map from a property in a source entity to a property in a destination entity.

Inheritance


Conforms To


Import Statement


Swift

import CoreData

Objective-C

@import CoreData;

Availability


Available in OS X v10.5 and later.
  • name name Property

    The name of the property in the destination entity for the receiver.

    Declaration

    Swift

    var name: String?

    Objective-C

    @property(copy) NSString *name

    Import Statement

    Objective-C

    @import CoreData;

    Swift

    import CoreData

    Availability

    Available in OS X v10.5 and later.

  • The value expression for the receiver.

    Declaration

    Swift

    var valueExpression: NSExpression?

    Objective-C

    @property(strong) NSExpression *valueExpression

    Discussion

    The expression is used to create the value for the destination property.

    Import Statement

    Objective-C

    @import CoreData;

    Swift

    import CoreData

    Availability

    Available in OS X v10.5 and later.

  • userInfo userInfo Property

    The user info for the receiver.

    Declaration

    Swift

    var userInfo: [NSObject : AnyObject]?

    Objective-C

    @property(strong) NSDictionary *userInfo

    Import Statement

    Objective-C

    @import CoreData;

    Swift

    import CoreData

    Availability

    Available in OS X v10.5 and later.