value(forKey:)
Returns an ordered set containing the results of invoking valueForKey: using key on each of the ordered set’s objects.
Declaration
func value(forKey key: String) -> AnyParameters
- key:
The key to retrieve.
Return Value
The ordered set of the values for the retrieved key. The returned ordered set might not have the same number of members as the receiver.
Discussion
The returned ordered set will not contain any elements corresponding to instances of valueForKey: returning nil, nor will it contain duplicates.