Instance Method

descendantMatchingIdentifierPath:completion:

Finds the context with the given identifier path relative to this context.

Declaration

- (void)descendantMatchingIdentifierPath:(NSArray<NSString *> *)identifierPath completion:(void (^)(CLSContext *context, NSError *error))completion;

Parameters

identifierPath

The identifier path of the context to find, relative to the current context.

completion

A closure the method calls with the found context, or nil if none could be found, and an error indicating the reason for failure, if any.

Discussion

See Also

Managing Context Hierarchy

parent

The direct ancestor of this context.

- removeFromParent

Removes the context from its parent.

- addChildContext:

Adds the specifed context as a child of the context receiving the method call.