Re: CORE DATA: derived values from several entities and managed object instances ??
Re: CORE DATA: derived values from several entities and managed object instances ??
- Subject: Re: CORE DATA: derived values from several entities and managed object instances ??
- From: "I. Savant" <email@hidden>
- Date: Thu, 19 Jan 2006 08:25:58 -0500
Dan:
Ordered sets in Core Data has been discussed on this list
previously. Since Core Data does use sets and not arrays, you will
need to define a "sortOrder" (or some similar name) attribute on your
model and maintain the index yourself. When you fetch your data set,
just sort them by sortOrder and you're all "set".
--
I.S.
On Jan 18, 2006, at 5:54 PM, dan pahlajani wrote:
Yes, i have read ALL the documentation. Also if you are refering to
the
FAQ # 2, it shows how to access to-many related objects as "set" and
not as an array. I am interested in accessing array.
-Thanks,
--Dan
On 1/18/06, R. Matthew Emerson <email@hidden> wrote:
On Jan 18, 2006, at 4:56 PM, dan pahlajani wrote:
Several of the managed objects in my app have derived values (values
calculated from other attributes) just like a fullName being driven
from
first and last names.
However, many a times the derived value is calculated using the
attributes
of several entities AND many a times the derived values is
calculated using
same attribute of an entity but from a set of managed object
instances of
the entity.
Have you seen the following link?
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
Articles/cdFAQ.html#//apple_ref/doc/uid/TP40001802-
DontLinkElementID_13
While registering to receive change notifications from the MOC may
get you more information than you would really like to see, if your
managed objects are not changing too frequently, this may be a
workable way of keeping your derived values up-to-date.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden