• 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, NSArraycontrollers and secondary to-many relationships.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data, NSArraycontrollers and secondary to-many relationships.


  • Subject: Re: Core Data, NSArraycontrollers and secondary to-many relationships.
  • From: Steve Steinitz <email@hidden>
  • Date: Tue, 21 Jul 2009 17:09:57 +1000

Hi Sumanth,

On 20/7/09, Sumanth Peddamatham <email@hidden> wrote:

I've spent a few days playing with NSArrayControllers, fiddling with Content Array, Content Set, Content Object settings; tried understanding @distinctUnionOfSets and @distinctUnionOfArrays; but I've hit a wall.

I've never played with @distinctUnionOfSets nor @distinctUnionOfArrays. I commend you for digging in. And, what a great idea to make a jpeg of your model.


Until someone else gives you a better answer, let me suggest a low-tech technique. Write a method on your Session class that returns the set or array that you want, then bind to that.

Hint 1, if you build a MutableSet you get (object-level) uniqueness for free.
Hint 2, if your Model is in a state of flux, consider using mogenerator for overriding your Model classes.


Cheers,

Steve Steinitz

_______________________________________________

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: Core Data, NSArraycontrollers and secondary to-many relationships.
      • From: Sumanth Peddamatham <email@hidden>
  • Prev by Date: Re: [IB] - possible bug [was: how to delete action or outlet?]
  • Next by Date: Re: [IB] - possible bug [was: how to delete action or outlet?]
  • Previous by thread: Re: What are the finer points to programatically loading a view from a NIB and attaching to the default window in MainMenu.xib?
  • Next by thread: Re: Core Data, NSArraycontrollers and secondary to-many relationships.
  • Index(es):
    • Date
    • Thread