• 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: CoreData Relationships and Array Controllers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData Relationships and Array Controllers


  • Subject: Re: CoreData Relationships and Array Controllers
  • From: Amy Gibbs <email@hidden>
  • Date: Tue, 04 Oct 2011 09:49:44 +0100

On 2 Oct 2011, at 8:02PM, Quincey Morris wrote:

However, the task of finding all the products for a customer seems to be perfectly suited to a Core Data fetch. You should be able to set a suitable fetch predicate on the array controller. You'd still have to deal with the issue of how you know to update the display when the customer-product information changes, but that's always an issue for data that's structured by to-many relationships, and you'd likely have to solve the problem anyway.

Thank You. It didn't seem like the right way to do it. I'm not much of a programmer I'm afraid, and this is an app just for me.


I've googled a Core Data Fetch, and I have got the Hillegass book (2nd and 3rd editions) but I can't quite work out what I need to do?

Do I need to use the intermediate ArrayController? Looking at it from the other direction it seems quite different. Product - >>customerOrderITems->CustomerOrders->Customer doesn't end in a to- many relationship, so I'm actually trying to limit the products to ones with the selected customer at the end of the keypath. Or, I'm looking at limiting the CustomerOrderITems to ones with the selected customer at the end of the chain, then actually displaying the related productTitle (product attribute) for those items.

This filter/fetch only needs to change when the selected customer changes, so it would be good to have this as a separate arrayController?

If anyone could point me in the direction of a good fetching explanation or tutorial that would be great.

Thanks

Amy
_______________________________________________

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: CoreData Relationships and Array Controllers
      • From: Quincey Morris <email@hidden>
References: 
 >CoreData Relationships and Array Controllers (From: Amy Gibbs <email@hidden>)
 >Re: CoreData Relationships and Array Controllers (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Retain/Release and Properties clarification
  • Next by Date: printing and the responder chain
  • Previous by thread: Re: CoreData Relationships and Array Controllers
  • Next by thread: Re: CoreData Relationships and Array Controllers
  • Index(es):
    • Date
    • Thread