gnustep-dev
[Top][All Lists]
Advanced

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

Re[6]: Recent key-value encoding changes to NSObject.


From: Manuel Guesdon
Subject: Re[6]: Recent key-value encoding changes to NSObject.
Date: Mon, 11 Feb 2002 18:54:39 +0100 (CET)

On Mon, 11 Feb 2002 17:38:41 +0000 (GMT) Nicola Pero <address@hidden> wrote:
 >| > Yes, that's the problem. But it works with WO.
 >| 
 >| I think that's ugly silly and confusing.

Yes and no: it's very intuitive.
It's only seems strange when your really try to see how this can works :-)


 >| Anyway, if that is what Apple does and you want to do a similar thing,

Yes :-)


 >| I suggest that you do as follows in your custom subclass -
 >| 
[...]
 >|   /* If there is an ivar, use it.  */
 >| This should support all your needs - 
 >| 
 >|  ivars take precedence over everything else.
 >|  dictionary values take precedence over getXXX.
 >|  getXXX are still used when all else fails.

But getXXX should be called before ivar access (during the valueForKey 
process). :-(


Manuel

--
______________________________________________________________________
Manuel Guesdon - OXYMIUM <address@hidden>
14 rue Jean-Baptiste Clement  -  93200 Saint-Denis  -  France
Tel: +33 1 4940 0999  -  Fax: +33 1 4940 0998




reply via email to

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