Type Method


Returns the entity description that is associated with this subclass.


class func entity() -> NSEntityDescription


This method is only legal to call on subclasses of NSManagedObject that represent a single entity in the model.

See Also

Getting a Managed Object’s Identity

var entity: NSEntityDescription

The entity description of the managed object.

var objectID: NSManagedObjectID

The object ID of the managed object.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software