Thanks for the hints Steve!
I think my message has been sitting in the Moderator queue, but I was
able to figure out @distinctUnionOfArrays a few days ago.
My solution was to create tiered NSArrayControllers. One
NSArrayController for the Sessions Entity, a proxy NSArrayController
called "Hosts in Session", and another proxy named "Ports in Session".
"Ports in Session" is bound to "Hosts in Session" using a "Content
Array" binding of '[email protected]'.
Of course, my source is available if anyone's having a similar problem.
Best,
Sumanth Peddamatham
On Jul 21, 2009, at 3:09 AM, Steve Steinitz wrote:
Hi Sumanth,
On 20/7/09, Sumanth Peddamatham <[email protected]> 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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]