Predicates Programming Guide
OSXDEV
Predicates provide a general means of specifying queries in Cocoa. The predicate system is capable of handling a large number of domains, not just—for example—Core Data or Spotlight. This document describes predicates in general, their use, their syntax, and their limitations.
[편집] 이 문서를 읽어야 하는 사람은
You should read this document if your application needs to filter objects or to set up queries retrieving objects using Core Data.
[편집] 이 문서의 구성
The following articles explain the basics of predicates in Cocoa, explain how to create and use predicate objects, and define the predicate syntax:
- “Predicate Basics” describes the fundamental aspects of the technology.
- “Creating Predicates” describes how to correctly instantiate predicates programmatically and how to retrieve them from a managed object model.
- “Using Predicates” explains how to use predicates and discusses some issues related to performance.
- “Comparison of NSPredicate and Spotlight Query Strings” compares NSPredicate and Spotlight queries.
- “Predicate Format String Syntax” describes the syntax of the predicate format string.
- “BNF Definition of Cocoa Predicates” provides a definition of Cocoa predicates in Backus-Naur Form notation.
| 번역자 | 사용자:LingoStar |
| 원본문서링크 | http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/predicates.html (Last Updated - 2007-12-11) |




