Instance Method

valueForKey:

Returns an array containing the results of invoking valueForKey: using key on each of the array's objects.

Declaration

- (id)valueForKey:(NSString *)key;

Parameters

key

The key to retrieve.

Return Value

The value of the retrieved key.

Discussion

The returned array contains NSNull elements for each object that returns nil.

See Also

Key-Value Coding

- setValue:forKey:

Invokes setValue:forKey: on each of the array's items 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