• 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: Bindings and object-pointer keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings and object-pointer keys


  • Subject: Re: Bindings and object-pointer keys
  • From: mmalc crawford <email@hidden>
  • Date: Sun, 30 Dec 2007 15:58:24 -0800


On Dec 30, 2007, at 3:49 PM, Seth Pellegrino wrote:

Dependent keys won't help me here. My problem is that a key in the Person class (namely the job key) is dependent on the keys of another class (namely the title and salary keys of the Job class). I've read the Key Value Coding/Observing documentation, and a fair bit of the Bindings documentation. As yet, I have found no simple way to register dependent key paths, which is what I need to be able to do.

On Leopard: <http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/Foundation/Protocols/NSKeyValueObserving_Protocol/Reference/Reference.html#//apple_ref/occ/clm/NSObject/keyPathsForValuesAffectingValueForKey: >

(Provided that the path doesn't include to-many relationships, which appears to be true in your case.)

I'm afraid my knowledge of Core Data is rather limited. It seems like it would work wonders for managing my data model, but I have a few reservations. Namely, none of the built-in persistent stores meet my needs.

In what way are your needs not met?


How difficult is it to either query the entire object graph (so I can write out a file manually)

It's not clear what you mean.
You save changes by sending the managed objet context a save: message, and the file is saved.


or provide a custom store type?

<http://developer.apple.com/documentation/Cocoa/Conceptual/AtomicStore_Concepts/Introduction/Introduction.html >


On the other end, is there a simple way to purge the existing object graph so it can be read back in programmatically?

<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdUsingMOs.html#//apple_ref/doc/uid/TP40001803-208900 >

Note, though, I wouldn't recommend using Core Data until you have more experience with Cocoa.

mmalc

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Bindings and object-pointer keys
      • From: Seth Pellegrino <email@hidden>
References: 
 >Bindings and object-pointer keys (From: Seth Pellegrino <email@hidden>)
 >Re: Bindings and object-pointer keys (From: "I. Savant" <email@hidden>)
 >Re: Bindings and object-pointer keys (From: Seth Pellegrino <email@hidden>)

  • Prev by Date: Re: Bindings and object-pointer keys
  • Next by Date: Source list tree nodes able to represent different entities
  • Previous by thread: Re: Bindings and object-pointer keys
  • Next by thread: Re: Bindings and object-pointer keys
  • Index(es):
    • Date
    • Thread