I am using Xcode 4, and I can't find a way to work with the graphical predicate builder. Is it still there? How do I use it? Where is the documentation on this?
Thanks
When creating new iOS project, select Use Core Data Xcode will add some boilerplate code for core data in AppDelegate and create a blank .xcdatamodeld if you tick this option.
There are 3 ways to create a PredicateBuilder: This method corresponds to the following code: Where (item > true). If we apply this predicate to our employee lists, it will return all employees. The application of a predicate created via PredicateBuilder is explained later in this article.
Sadly, this utopia doesn't exist; however, tools are available, including PredicateBuilder that makes things work well with minimal effort. Queries that are consistent, with the same criteria at all times can typically be constructed in a manner that will support complex queries without hesitation.
In a perfect world, all of your EF Queries will be simplistic and not require complex logic, and the EF system itself will generate high-quality & performant queries in the process. Sadly, this utopia doesn't exist; however, tools are available, including PredicateBuilder that makes things work well with minimal effort.
In XCode 4, highlight your model, then:
Choose Editor -> Add Fetch Request
Then highlight it (rename if you like). The Predicate Builder is in the right pane:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With