contentSet filtering on an NSArrayController does not work
contentSet filtering on an NSArrayController does not work
- Subject: contentSet filtering on an NSArrayController does not work
- From: "Txinto Vaz" <email@hidden>
- Date: Thu, 1 Mar 2007 18:24:34 +0000
Hi, I have a property "donotshow" in an entity called A in Core Data. I
have a NSArrayController to manage the objects in this A entity and a
filterPredicate "donotshow!=1" on it so when I switch on the "donotshow" it
disappears from the list of objects shown in the typical NSTableView linked
to the NSArrayController through bindings. Everything works fine at this
point.
If I change the NSArrayController to bind the contentSet to a "to-many"
relationship called "listofAs" of an object of entity B, I can see in the
NSTableView all the objects linked to "listofAs", no matter if "donotshow"
is 1 or 0. So the only thing that changes from one situation to other is
that the NSArrayController is bound using contentSet instead of
contentArray, and the source for this collections is a "to-many"
relationship instead of an array.
Is the filterPredicate expected to work on contentSet the same way as it
does in contentArrays? I have searched in documentation and the only thing
I find is that filterPredicate filters the content of the NSArrayController,
without specifying if these contents come from a set or an array.
Thank you in advance for your help.
Tx.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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