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.

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