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.