Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings and object-pointer keys




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to 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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.