IB Array Controller Fetch Predicate with Content Set
IB Array Controller Fetch Predicate with Content Set
- Subject: IB Array Controller Fetch Predicate with Content Set
- From: Steven Riggs <email@hidden>
- Date: Mon, 24 Dec 2007 16:48:29 -0500
In interface builder...
When I place a fetch predicate on an array controller that has it's
parameters bound to the app delegate's model key path
managedObjectContext, it works great.
example that works:
Parent Array Controller
attributes
mode: entity
entity name: Parent
fetch predicate: someParentAttribute == 1
bindings
Parameters
bind to: someApp_AppDelegate
Model Key Path: managedObjectContext
This config brings back only results with someAttribute == 1 just as I
want.
If I have another array controller setup the same but also has it's
controller content set to some other array controller's selection, the
fetch predicate doesn't work.
example that doesn't work:
Child Array Controller
attributes
mode: entity
entity name: Child
fetch predicate: someChildAttribute == 5
bindings
Content Set
bind to: Parent Array Controller
controller key: selection
model key path: childsParent
Parameters
bind to: someApp_AppDelegate
Model Key Path: managedObjectContext
This config brings back all of the child objects associated with the
selected parent (good) regardless of what someChildAttribute is equal
to (bad). The fetch predicate doesn't work.
I'm assuming now that fetch predicates will not work for an array
controller with it's content set. Is this true? Am I just doing it
wrong?
Thanks and Merry Happy Ho Ho!
_______________________________________________
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