bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

valueForKey: on an NSArray


From: Jonathan B. Leffert
Subject: valueForKey: on an NSArray
Date: Thu, 4 Apr 2002 23:59:53 -0800
User-agent: Mutt/1.2i

Given an NSArray *a, the following explodes

[a valueForKey: @"foo"];

because NSArray doesn't respond to -foo or -_getFoo or -getFoo when
valueForKey: on an array should return the array represented by calling
valueForKey: on all the objects in the array.  That is, valueForKey: on an
array is the array representing the aggregate of values for the given key.

Thoughts?

Jonathan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]