Re: Core Data, NSArraycontrollers and secondary to-many relationships.
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