Hi All,
I made the core-data tutorial and I try now to go a little deeper in the concept.
So i replaced the search-Field (and it's search-predicates) by a popup bound to an Array-Controller of the Employees like this: - Content: bind to EmployeesPopUpController / controller Key: arranged-Objects / Model Key Path: none - Content Value: bind to EmployeesPopUpController / controller Key: arranged-Objects / Model Key Path: fullNameAndID - Selected Index: bind to EmployeesPopUpController / controller Key: selection-Index / Model Key Path: none
Then i bounded the EmployeesArrayController's Filter Predicate to the EmployeesPopUpController's selected Objects using a custom Transformer that return an appropriate NS-Predicate when it receive an entity (Employee) and nothing if no Employee is select in the popUp.
This work fine, it's great.
But i can't figure out how to handle a null place Holder in my popUp ? If i choose "Insert a Null PlaceHolder when i bind the Content of the popUP the bound of Selected Index refuse the "null choice" In fact i don't know how to bind the selection of the popUp accordingly to the presence of a Null Place Holder ?
It seems i can't insert programatically a "no selection Element" in the array-Controller since this controller use the managedObjectContext and its content-Set is bound to a "Department" entity ( DepartmentController / Selection / Employee )
I did not find help in the archives and i am stuck to this since 3 days, any help would be appreciated.
|