Instance Method

keysOfEntriesPassingTest:

Returns the set of keys whose corresponding value satisfies a constraint described by a block object.

Declaration

- (NSSet<KeyType> *)keysOfEntriesPassingTest:(BOOL (^)(KeyType key, ObjectType obj, BOOL *stop))predicate;

Parameters

predicate

A block object that specifies constraints for values in the dictionary.

Return Value

The set of keys whose corresponding value satisfies predicate.

See Also

Filtering Dictionaries

- keysOfEntriesWithOptions:passingTest:

Returns the set of keys whose corresponding value satisfies a constraint described by a block object.