Pushing Bindings to Far?
Pushing Bindings to Far?
- Subject: Pushing Bindings to Far?
- From: Francisco Tolmasky <email@hidden>
- Date: Thu, 17 Feb 2005 02:23:02 -0800
I'm having an interesting problem with bindings, and I hope I'm simply
doing something incorrectly. Here's my situation. I have one
NSMutableArray that contains my base set of objects, the an
NSArrayController that holds it that I use for filtering purposes in my
table view. However, I also divide up the objects into separate
categories, each with their own table view, and thus have separate
NSArrayControllers for them as well (think of them as "smart groups"
like in iTunes if you will):
NSCustomArrayController *global;
NSCustomArrayController *categoryA;
[global bind: @"content" toObject: someObject withKeyPath: @"objects"
options: nil];
// so far so good, this works and my filtering works
[categoryA bind:@"content" toObject: global withKeyPath:
@"arrangedObjects" options: nil];
// heres the problem.
Now, my first table view with all objects works great, everything shows
up, etc. The problem is the separate category tables views. When I
filter globally, the filters should trickle down to them too, since
they are bound to arrangedObjects of the global controller. And this
happens... kind of. It seems to be less responsive. The table views
connected to the category controllers dont "live update", you have to
click on them to see the effects (almost as if reloadData isn't being
called?). On top of that, there is this weird effect where if you
click quickly on the table view its as if a cell appears for a split
second. Now, I know that I could simply make each category controller
filter independently, but this seems like too much work/not good
design/costly. I really like the elegance of this layout, does anyone
know what's up?
Thanks in advance,
Francisco Tolmasky
email@hidden
http://www-scf.usc.edu/~tolmasky
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden