Returns an array of predicate templates for the given attribute key paths for a given entity.
SDK
- macOS 10.5+
Framework
- App
Kit
Declaration
class func templates(withAttributeKeyPaths keyPaths: [String], in entityDescription: NSEntity Description) -> [NSPredicate Editor Row Template]
Parameters
keyPaths
An array of attribute key paths originating at
entity
. The key paths may cross relationships but must terminate in attributes.Description entityDescription
A Core Data entity description.
Return Value
An array of predicate templates for key
originating at entity
.
Discussion
This method determines which key paths in the entity description can use the same views (that is, share the same attribute type). For each of these groups, it instantiates individual templates via init(left
.