• 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
Use of KVC Array operators
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Use of KVC Array operators


  • Subject: Use of KVC Array operators
  • From: Eli Bach <email@hidden>
  • Date: Thu, 11 Mar 2010 20:34:48 -0700

The operators mentioned on this page, particularly "@unionOfSets".

<http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/KeyValueCoding/Concepts/ArrayOperators.html>

I have the following Core Data object's setup

ClassA  	ClassB		ClassC
relationA  -->	relationB --> relation C

where each of the relations is a many to one [one class A, many class B, and one class B, many class C].
Not all ClassB's will have ClassC objects attached to them

I have an instance of classA, and I want an NSArrayController with all the ClassC objects for all the ClassB objects that are related to that specific instance of ClassA, preferably in a way that uses KVO instead of programmatically updating with fetches/predicates/etc.

What would be the right way to bind the NSArrayController, assuming the nib owner has an instance of classA:

ie:

bind content set to

File Owner.instanceOfA.?

Thanks,

Eli

_______________________________________________

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: Use of KVC Array operators
      • From: Aaron Burghardt <email@hidden>
    • Re: Use of KVC Array operators
      • From: Alexander Spohr <email@hidden>
  • Prev by Date: Re: View does not get refreshed after Window deminimized...
  • Next by Date: Re: Switching methods in private classes in Apple frameworks
  • Previous by thread: Re: Core Data: inverse relationship not updated until next Run Loop
  • Next by thread: Re: Use of KVC Array operators
  • Index(es):
    • Date
    • Thread