• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: key value coding sample code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: key value coding sample code
      • From: Vince DeMarco <email@hidden>
    • Re: key value coding sample code
      • From: Mike Ferris <email@hidden>
  • Prev by Date: Re: more on stable sorting...
  • Next by Date: Re: carbon events in cocoa app...
  • Previous by thread: Re: key value coding sample code
  • Next by thread: Re: key value coding sample code
  • Index(es):
    • Date
    • Thread