• 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: CORE DATA: derived values from several entities and managed object instances ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: dan pahlajani <email@hidden>
  • Date: Mon, 23 Jan 2006 14:50:54 -0800

Thanks Savant. I think half the time to find if something has already been
discussed is to use the proper terms. I wil definitely lookup the discussion

using "sortOrder".

I will also paly with what you have suggested. I have to nail this down
since all the objects in my applications have inter-property, inter-objects,
and inter-entity dependencies. In fact any real world business application
while have these requirements. I hope Core Data will some day address it.

But for now the first release of Core Data is definitely a blessing. :-)

Thanks,
Dan


On 1/19/06, I. Savant <email@hidden> wrote:
>
> 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

References: 
 >CORE DATA: derived values from several entities and managed object instances ?? (From: dan pahlajani <email@hidden>)
 >Re: CORE DATA: derived values from several entities and managed object instances ?? (From: "R. Matthew Emerson" <email@hidden>)
 >Re: CORE DATA: derived values from several entities and managed object instances ?? (From: dan pahlajani <email@hidden>)
 >Re: CORE DATA: derived values from several entities and managed object instances ?? (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: suppressing the scod at startup
  • Next by Date: Re: anotherDockProgram-help
  • Previous by thread: Re: CORE DATA: derived values from several entities and managed object instances ??
  • Next by thread: NSPopupButton content binding and multiple selections
  • Index(es):
    • Date
    • Thread