Hi Guys,
Ok, I'm a total newbie to Mac OSX coding but have about 20 years of Wintel Dev experience in various languages. I've just started creating some nice little Cocoa Apps and ventured into Core Data. Now I'm stuck. I have a data model with two related entities (Customer and Cheques 1:M). When I auto-generate the UI by option-dragging each entity to a window, the UI is created no problem and everything works. However, each entity has it's own Search box in the UI. So, searching for customer information in the Customer's search box will retrieve customer data correctly, and the same for the Cheques search box.
What I'm trying to achieve is to only have one search box on the UI, which will search for data in BOTH entities. Can this be done? I was playing around with the predicates for each search box, but couldn't see how I can target both entities in the same predicate.
Any help would be great.
Ok, I'm a total newbie to Mac OSX coding but have about 20 years of Wintel Dev experience in various languages. I've just started creating some nice little Cocoa Apps and ventured into Core Data. Now I'm stuck. I have a data model with two related entities (Customer and Cheques 1:M). When I auto-generate the UI by option-dragging each entity to a window, the UI is created no problem and everything works. However, each entity has it's own Search box in the UI. So, searching for customer information in the Customer's search box will retrieve customer data correctly, and the same for the Cheques search box.
What I'm trying to achieve is to only have one search box on the UI, which will search for data in BOTH entities. Can this be done? I was playing around with the predicates for each search box, but couldn't see how I can target both entities in the same predicate.
Any help would be great.