Re: key value coding sample code
Re: key value coding sample code
- Subject: Re: key value coding sample code
- From: Joost Rekveld <email@hidden>
- Date: Sun, 8 Dec 2002 02:52:10 +0100
Does this help at all, or am I missing your problem completely?
thanks for the reactions so far,
what I understood from the doc is that I have to subclass
NSClassDescription in order to get a list of all keys to which
instances of a certain class respond. (with - attributeKeys, -
inverseRelationshipKey: - toManyRelationshipKeys -
toOneRelationshipKeys)
I don't understand why a separate describing class is a good thing, to
me it seems complicated even though it would be a simple class; why is
it better than having the object itself return such a list ?
Also i don't understand when/how to register such a class description,
would that be part of its 'init' ?
I want to be define a kind of protocol with 'saveState' and 'setState'
as he two most important methods; 'saveState' would make a dictionary
with the important instance variables of an object, 'setState' would
set these. In this way I want to be able to 'animate' objects in a
consistent way...
thanks,
Joost.
-------------------------------------------
Joost Rekveld
-----------
http://www.lumen.nu/rekveld
-------------------------------------------
"The mystery of the world is the visible, not the invisible"
(Oscar Wilde)
-------------------------------------------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.