Combo Box, Core Data & Predicate
Combo Box, Core Data & Predicate
- Subject: Combo Box, Core Data & Predicate
- From: WhiteContainer <email@hidden>
- Date: Tue, 4 Apr 2006 16:29:26 +0200
Hi,
Please any help is welcome...
I want a combo box with the same behavior as those found in IB
bindings panels.
I mean a dynamic list which grows with each new entry of the user and
is able to find a previous entry.
Entity "Person"
Attribute "Category"
I bind a combo box content/content values/value to the
person_ArrayController.
Everything is ok : if the user enters a new category in the field,
the category is available in the Cbox for the next records.
User can also choose a pre-existing category.
The problem : the Cbox lists all the content of the arrayController,
so if the user applies the same category to 2 different records, the
category name appears twice in the Cbox list.
ex : Editing > person a - category "male" > at this point the list
in the Cbox is "male"
person b - category "female" > at this point the list in the Cbox
is "male female"
person c - category "male" > at this point the list in the Cbox is
"male female male"
A solution : I tried to bind the content/content values to a second
person_ArrayController2, filtering the controller with a predicate
which could eliminate the "duplicate", but I couldn't find to good
predicate to write.
So any idea ?
Many thx in advance...
Best Rgds
_______________________________________________
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