Instance Method


Returns an ordered set containing the results of invoking valueForKey: using key on each of the ordered set’s objects.


- (id)valueForKey:(NSString *)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.


The returned ordered set will not contain any elements corresponding to instances of valueForKey: returning nil, nor will it contain duplicates.

See Also

Key-Value Coding Support

- setValue:forKey:

Invokes setValue:forKey: on each of the receiver's members using the specified value and key

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software