On 16 Jul 2009, at 18:59, Richard Frith-Macdonald wrote:

One thing I don't understand about the whole issue of adding ivars is how it is supposed to work with key value coding since, in KVC you can get/set the value of an ivar by name, but with non-fragile ivars you can presumably have multiple ivars with the same name. What does KVC do in that situation?

Break, probably. It will find the first ivar with that name, which will be the one in the subclass. You can, of course, avoid this problem by creating explicit accessors which KVC will find in preference to direct ivar access.

David


_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to