gnustep-dev
[Top][All Lists]
Advanced

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

Re: NSSound Reimplementation


From: David Chisnall
Subject: Re: NSSound Reimplementation
Date: Thu, 16 Jul 2009 19:04:27 +0100

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




reply via email to

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