Initializer

init(context:)

Initializes a managed object subclass and inserts it into the specified managed object context.

Declaration

convenience init(context moc: NSManagedObjectContext)

Return Value

An initialized instance of the appropriate subclass.

Discussion

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

See Also

Initializing a Managed Object

init(entity: NSEntityDescription, insertInto: NSManagedObjectContext?)

Initializes a managed object from an entity description and inserts it into the specified managed object context.