How to use NSPredicate to catch child objects?

Posted by Konstantin on Stack Overflow See other posts from Stack Overflow or by Konstantin
Published on 2010-03-11T00:41:10Z Indexed on 2010/03/12 23:47 UTC
Read the original article Hit count: 468

I'm new to core data and try to get all children objects of various types with one query. Say there's an "Animal" type as parent and "Cat", "Dog" and "Bird" as children. I'd like to get both cats and dogs, but not Birds in single query returned as Animal objects. Is it possible?

© Stack Overflow or respective owner

Related posts about core-data

Related posts about nspredicate