Instance Method

isKindOf(entity:)

Returns a Boolean value that indicates whether the receiver is a sub-entity of another given entity.

Declaration

func isKindOf(entity: NSEntityDescription) -> Bool

Parameters

entity

An entity.

Return Value

true if the receiver is a sub-entity of entity, otherwise false.

See Also

Managing Inheritance

var subentitiesByName: [String : NSEntityDescription]

A dictionary containing the receiver’s sub-entities.

var subentities: [NSEntityDescription]

An array containing the sub-entities of the receiver.

var superentity: NSEntityDescription?

The super-entity of the receiver.