nano-store 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/README.md +3 -1
- data/Rakefile +1 -1
- data/lib/nano_store.rb +1 -1
- data/lib/nano_store/model.rb +11 -7
- data/lib/nano_store/version.rb +1 -1
- data/spec/model_spec.rb +2 -5
- data/vendor/Podfile.lock +4 -4
- data/vendor/Pods/BuildHeaders/NanoStore/NSFNanoGlobals.h +3 -1
- data/vendor/Pods/BuildHeaders/NanoStore/NSFNanoPredicate.h +5 -5
- data/vendor/Pods/BuildHeaders/NanoStore/NSFNanoSearch.h +4 -2
- data/vendor/Pods/Documentation/NanoStore/docset-installed.txt +4 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Info.plist +33 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoBag.html +2266 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoEngine.html +4708 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoExpression.html +818 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoObject.html +1781 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoPredicate.html +800 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoResult.html +1054 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoSearch.html +2544 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoSortDescriptor.html +713 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoStore.html +3723 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFOrderedDictionary.html +312 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Protocols/NSFNanoObjectProtocol.html +651 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/css/styles.css +584 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/css/stylesPrint.css +22 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/hierarchy.html +106 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/img/button_bar_background.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/img/disclosure.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/img/disclosure_open.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/img/library_background.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/img/title_background.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/index.html +654 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Nodes.xml +92 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens1.xml +596 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens10.xml +48 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens11.xml +118 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens2.xml +1209 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens3.xml +158 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens4.xml +455 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens5.xml +166 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens6.xml +246 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens7.xml +821 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens8.xml +125 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens9.xml +1082 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/docSet.dsidx +0 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/docSet.mom +0 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/docSet.skidx +0 -0
- data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/docSet.toc +0 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoBag.html +2266 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoEngine.html +4708 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoExpression.html +818 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoObject.html +1781 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoPredicate.html +800 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoResult.html +1054 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoSearch.html +2544 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoSortDescriptor.html +713 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoStore.html +3723 -0
- data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFOrderedDictionary.html +312 -0
- data/vendor/Pods/Documentation/NanoStore/html/Protocols/NSFNanoObjectProtocol.html +651 -0
- data/vendor/Pods/Documentation/NanoStore/html/css/styles.css +584 -0
- data/vendor/Pods/Documentation/NanoStore/html/css/stylesPrint.css +22 -0
- data/vendor/Pods/Documentation/NanoStore/html/hierarchy.html +106 -0
- data/vendor/Pods/Documentation/NanoStore/html/img/button_bar_background.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/html/img/disclosure.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/html/img/disclosure_open.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/html/img/library_background.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/html/img/title_background.png +0 -0
- data/vendor/Pods/Documentation/NanoStore/html/index.html +654 -0
- data/vendor/Pods/Headers/NanoStore/NSFNanoGlobals.h +3 -1
- data/vendor/Pods/Headers/NanoStore/NSFNanoPredicate.h +5 -5
- data/vendor/Pods/Headers/NanoStore/NSFNanoSearch.h +4 -2
- data/vendor/Pods/NanoStore/Classes/Public/NSFNanoGlobals.h +3 -1
- data/vendor/Pods/NanoStore/Classes/Public/NSFNanoGlobals.m +1 -0
- data/vendor/Pods/NanoStore/Classes/Public/NSFNanoPredicate.h +5 -5
- data/vendor/Pods/NanoStore/Classes/Public/NSFNanoPredicate.m +15 -14
- data/vendor/Pods/NanoStore/Classes/Public/NSFNanoSearch.h +4 -2
- data/vendor/Pods/NanoStore/Classes/Public/NSFNanoSearch.m +95 -20
- data/vendor/Pods/Pods.bridgesupport +708 -700
- data/vendor/Pods/Pods.xcconfig +3 -3
- metadata +62 -4
@@ -0,0 +1,800 @@
|
|
1
|
+
<!DOCTYPE HTML>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
|
5
|
+
<title>NSFNanoPredicate Class Reference</title>
|
6
|
+
<meta id="xcode-display" name="xcode-display" content="render"/>
|
7
|
+
<meta name="viewport" content="width=550" />
|
8
|
+
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
|
9
|
+
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
|
10
|
+
<meta name="generator" content="appledoc 2.0.5 (build 789)" />
|
11
|
+
</head>
|
12
|
+
<body>
|
13
|
+
<header id="top_header">
|
14
|
+
<div id="library" class="hideInXcode">
|
15
|
+
<h1><a id="libraryTitle" href="../index.html">NanoStore 2.5.7 </a></h1>
|
16
|
+
<a id="developerHome" href="../index.html">Tito Ciuro</a>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div id="title" role="banner">
|
20
|
+
<h1 class="hideInXcode">NSFNanoPredicate Class Reference</h1>
|
21
|
+
</div>
|
22
|
+
<ul id="headerButtons" role="toolbar">
|
23
|
+
<li id="toc_button">
|
24
|
+
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
|
25
|
+
</li>
|
26
|
+
<li id="jumpto_button" role="navigation">
|
27
|
+
<select id="jumpTo">
|
28
|
+
<option value="top">Jump To…</option>
|
29
|
+
|
30
|
+
<option value="overview">Overview</option>
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
<option value="tasks">Tasks</option>
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
<option value="properties">Properties</option>
|
42
|
+
|
43
|
+
<option value="//api/name/column"> column</option>
|
44
|
+
|
45
|
+
<option value="//api/name/match"> match</option>
|
46
|
+
|
47
|
+
<option value="//api/name/value"> value</option>
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
<option value="class_methods">Class Methods</option>
|
53
|
+
|
54
|
+
<option value="//api/name/predicateWithColumn:matching:value:"> + predicateWithColumn:matching:value:</option>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
<option value="instance_methods">Instance Methods</option>
|
60
|
+
|
61
|
+
<option value="//api/name/JSONDescription"> - JSONDescription</option>
|
62
|
+
|
63
|
+
<option value="//api/name/description"> - description</option>
|
64
|
+
|
65
|
+
<option value="//api/name/initWithColumn:matching:value:"> - initWithColumn:matching:value:</option>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
</select>
|
70
|
+
</li>
|
71
|
+
</ul>
|
72
|
+
</header>
|
73
|
+
<nav id="tocContainer" class="isShowingTOC">
|
74
|
+
<ul id="toc" role="tree">
|
75
|
+
|
76
|
+
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
|
82
|
+
|
83
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating and Initializing a Predicate">Creating and Initializing a Predicate</a></span></li>
|
84
|
+
|
85
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Miscellaneous">Miscellaneous</a></span></li>
|
86
|
+
|
87
|
+
</ul></li>
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
|
94
|
+
|
95
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/column">column</a></span></li>
|
96
|
+
|
97
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/match">match</a></span></li>
|
98
|
+
|
99
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/value">value</a></span></li>
|
100
|
+
|
101
|
+
</ul></li>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
|
106
|
+
|
107
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/predicateWithColumn:matching:value:">predicateWithColumn:matching:value:</a></span></li>
|
108
|
+
|
109
|
+
</ul></li>
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
|
114
|
+
|
115
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/JSONDescription">JSONDescription</a></span></li>
|
116
|
+
|
117
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/description">description</a></span></li>
|
118
|
+
|
119
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithColumn:matching:value:">initWithColumn:matching:value:</a></span></li>
|
120
|
+
|
121
|
+
</ul></li>
|
122
|
+
|
123
|
+
|
124
|
+
</ul>
|
125
|
+
</nav>
|
126
|
+
<article>
|
127
|
+
<div id="contents" class="isShowingTOC" role="main">
|
128
|
+
<a title="NSFNanoPredicate Class Reference" name="top"></a>
|
129
|
+
<div class="main-navigation navigation-top">
|
130
|
+
<ul>
|
131
|
+
<li><a href="../index.html">Index</a></li>
|
132
|
+
<li><a href="../hierarchy.html">Hierarchy</a></li>
|
133
|
+
</ul>
|
134
|
+
</div>
|
135
|
+
<div id="header">
|
136
|
+
<div class="section-header">
|
137
|
+
<h1 class="title title-header">NSFNanoPredicate Class Reference</h1>
|
138
|
+
</div>
|
139
|
+
</div>
|
140
|
+
<div id="container">
|
141
|
+
|
142
|
+
<div class="section section-specification"><table cellspacing="0"><tbody>
|
143
|
+
<tr>
|
144
|
+
<td class="specification-title">Inherits from</td>
|
145
|
+
<td class="specification-value">NSObject</td>
|
146
|
+
</tr><tr>
|
147
|
+
<td class="specification-title">Declared in</td>
|
148
|
+
<td class="specification-value">NSFNanoPredicate.h</td>
|
149
|
+
</tr>
|
150
|
+
</tbody></table></div>
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
<div class="section section-overview">
|
156
|
+
<a title="Overview" name="overview"></a>
|
157
|
+
<h2 class="subtitle subtitle-overview">Overview</h2>
|
158
|
+
<p>@class NSFNanoPredicate
|
159
|
+
* A predicate is an element of an expression used to perform complex queries.
|
160
|
+
*
|
161
|
+
* @note
|
162
|
+
* A predicate must be added to a <a href="../Classes/NSFNanoExpression.html">NSFNanoExpression</a>.
|
163
|
+
*
|
164
|
+
* @details <b>Example:</b>
|
165
|
+
@code
|
166
|
+
// Instantiate a NanoStore and open it
|
167
|
+
<a href="../Classes/NSFNanoStore.html">NSFNanoStore</a> *nanoStore = [<a href="../Classes/NSFNanoStore.html">NSFNanoStore</a> createAndOpenStoreWithType:NSFMemoryStoreType path:nil error:nil];</p>
|
168
|
+
|
169
|
+
<p>// Add some data to the document store
|
170
|
+
NSDictionary <em>info = …;
|
171
|
+
<a href="../Classes/NSFNanoObject.html">NSFNanoObject</a> </em>object = [NSFNanoObject nanoObjectWithDictionary:info];
|
172
|
+
[nanoStore addObject:object error:nil];</p>
|
173
|
+
|
174
|
+
<p>// Prepare the expression
|
175
|
+
NSFNanoPredicate <em>attribute = [NSFNanoPredicate predicateWithColumn:NSFAttributeColumn matching:NSFEqualTo value:@“FirstName”];
|
176
|
+
NSFNanoPredicate </em><a href="#//api/name/value">value</a> = [NSFNanoPredicate predicateWithColumn:NSFValueColumn matching:NSFEqualTo value:@“Hobbes”];
|
177
|
+
<a href="../Classes/NSFNanoExpression.html">NSFNanoExpression</a> *expression = [NSFNanoExpression expressionWithPredicate:predicateAttribute];
|
178
|
+
[expression addPredicate:predicateValue withOperator:NSFAnd];</p>
|
179
|
+
|
180
|
+
<p>// Setup the search with the document store and a given expression
|
181
|
+
<a href="../Classes/NSFNanoSearch.html">NSFNanoSearch</a> *search = [NSFNanoSearch searchWithStore:nanoStore];
|
182
|
+
[search setExpressions:[NSArray arrayWithObject:expression]];</p>
|
183
|
+
|
184
|
+
<p>// Obtain the matching objects
|
185
|
+
NSDictionary *searchResults = [search searchObjectsWithReturnType:NSFReturnObjects error:nil];</p>
|
186
|
+
|
187
|
+
<p>// Close the document store
|
188
|
+
[nanoStore closeWithError:nil];
|
189
|
+
@endcode
|
190
|
+
*
|
191
|
+
* @see \link <a href="../Classes/NSFNanoExpression.html">NSFNanoExpression</a>::expressionWithPredicate: + (<a href="../Classes/NSFNanoExpression.html">NSFNanoExpression</a><em>)expressionWithPredicate:(NSFNanoPredicate </em>)thePredicate \endlink
|
192
|
+
* @see \link <a href="../Classes/NSFNanoExpression.html">NSFNanoExpression</a>::initWithPredicate: – (id)initWithPredicate:(NSFNanoPredicate <em>)thePredicate \endlink
|
193
|
+
* @see \link <a href="../Classes/NSFNanoExpression.html">NSFNanoExpression</a>::addPredicate:withOperator: – (void)addPredicate:(NSFNanoPredicate </em>)thePredicate withOperator:(NSFOperator)theOperator \endlink</p>
|
194
|
+
|
195
|
+
<p>\cond</p>
|
196
|
+
</div>
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
<div class="section section-tasks">
|
203
|
+
<a title="Tasks" name="tasks"></a>
|
204
|
+
<h2 class="subtitle subtitle-tasks">Tasks</h2>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
<h3 class="subsubtitle task-title">Other Methods</h3>
|
209
|
+
|
210
|
+
<ul class="task-list">
|
211
|
+
<li>
|
212
|
+
<span class="tooltip">
|
213
|
+
<code><a href="#//api/name/column"> column</a></code>
|
214
|
+
<span class="tooltip"><ul>
|
215
|
+
<li>The type of column being referenced.</li>
|
216
|
+
</ul>
|
217
|
+
</span>
|
218
|
+
</span>
|
219
|
+
<span class="task-item-suffix">property</span>
|
220
|
+
|
221
|
+
</li><li>
|
222
|
+
<span class="tooltip">
|
223
|
+
<code><a href="#//api/name/match"> match</a></code>
|
224
|
+
<span class="tooltip"><ul>
|
225
|
+
<li>The comparison operator to be used.</li>
|
226
|
+
</ul>
|
227
|
+
</span>
|
228
|
+
</span>
|
229
|
+
<span class="task-item-suffix">property</span>
|
230
|
+
|
231
|
+
</li><li>
|
232
|
+
<span class="tooltip">
|
233
|
+
<code><a href="#//api/name/value"> value</a></code>
|
234
|
+
<span class="tooltip"><ul>
|
235
|
+
<li>The value to be used for comparison.</li>
|
236
|
+
</ul>
|
237
|
+
</span>
|
238
|
+
</span>
|
239
|
+
<span class="task-item-suffix">property</span>
|
240
|
+
|
241
|
+
</li>
|
242
|
+
</ul>
|
243
|
+
|
244
|
+
|
245
|
+
<a title="Creating and Initializing a Predicate" name="task_Creating and Initializing a Predicate"></a>
|
246
|
+
<h3 class="subsubtitle task-title">Creating and Initializing a Predicate</h3>
|
247
|
+
|
248
|
+
<ul class="task-list">
|
249
|
+
<li>
|
250
|
+
<span class="tooltip">
|
251
|
+
<code><a href="#//api/name/predicateWithColumn:matching:value:">+ predicateWithColumn:matching:value:</a></code>
|
252
|
+
<span class="tooltip"><p>Creates and returns a predicate.</p></span>
|
253
|
+
</span>
|
254
|
+
|
255
|
+
|
256
|
+
</li><li>
|
257
|
+
<span class="tooltip">
|
258
|
+
<code><a href="#//api/name/initWithColumn:matching:value:">– initWithColumn:matching:value:</a></code>
|
259
|
+
<span class="tooltip"><p>Initializes a newly allocated predicate.</p></span>
|
260
|
+
</span>
|
261
|
+
|
262
|
+
|
263
|
+
</li>
|
264
|
+
</ul>
|
265
|
+
|
266
|
+
|
267
|
+
<a title="Miscellaneous" name="task_Miscellaneous"></a>
|
268
|
+
<h3 class="subsubtitle task-title">Miscellaneous</h3>
|
269
|
+
|
270
|
+
<ul class="task-list">
|
271
|
+
<li>
|
272
|
+
<span class="tooltip">
|
273
|
+
<code><a href="#//api/name/description">– description</a></code>
|
274
|
+
<span class="tooltip"><p>Returns a string representation of the predicate.</p></span>
|
275
|
+
</span>
|
276
|
+
|
277
|
+
|
278
|
+
</li><li>
|
279
|
+
<span class="tooltip">
|
280
|
+
<code><a href="#//api/name/JSONDescription">– JSONDescription</a></code>
|
281
|
+
<span class="tooltip"><p>Returns a JSON representation of the predicate.</p></span>
|
282
|
+
</span>
|
283
|
+
|
284
|
+
|
285
|
+
</li>
|
286
|
+
</ul>
|
287
|
+
|
288
|
+
</div>
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
<div class="section section-methods">
|
295
|
+
<a title="Properties" name="properties"></a>
|
296
|
+
<h2 class="subtitle subtitle-methods">Properties</h2>
|
297
|
+
|
298
|
+
<div class="section-method">
|
299
|
+
<a name="//api/name/column" title="column"></a>
|
300
|
+
<h3 class="subsubtitle method-title">column</h3>
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
<div class="method-subsection brief-description">
|
305
|
+
<ul>
|
306
|
+
<li>The type of column being referenced.</li>
|
307
|
+
</ul>
|
308
|
+
|
309
|
+
</div>
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign, readonly) NSFTableColumnType column</code></div>
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
<div class="method-subsection discussion-section">
|
324
|
+
<h4 class="method-subtitle">Discussion</h4>
|
325
|
+
<ul>
|
326
|
+
<li>The type of column being referenced.</li>
|
327
|
+
</ul>
|
328
|
+
|
329
|
+
</div>
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
<div class="method-subsection declared-in-section">
|
338
|
+
<h4 class="method-subtitle">Declared In</h4>
|
339
|
+
<code class="declared-in-ref">NSFNanoPredicate.h</code><br />
|
340
|
+
</div>
|
341
|
+
|
342
|
+
|
343
|
+
</div>
|
344
|
+
|
345
|
+
<div class="section-method">
|
346
|
+
<a name="//api/name/match" title="match"></a>
|
347
|
+
<h3 class="subsubtitle method-title">match</h3>
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
<div class="method-subsection brief-description">
|
352
|
+
<ul>
|
353
|
+
<li>The comparison operator to be used.</li>
|
354
|
+
</ul>
|
355
|
+
|
356
|
+
</div>
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign, readonly) NSFMatchType match</code></div>
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
<div class="method-subsection discussion-section">
|
371
|
+
<h4 class="method-subtitle">Discussion</h4>
|
372
|
+
<ul>
|
373
|
+
<li>The comparison operator to be used.</li>
|
374
|
+
</ul>
|
375
|
+
|
376
|
+
</div>
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
<div class="method-subsection declared-in-section">
|
385
|
+
<h4 class="method-subtitle">Declared In</h4>
|
386
|
+
<code class="declared-in-ref">NSFNanoPredicate.h</code><br />
|
387
|
+
</div>
|
388
|
+
|
389
|
+
|
390
|
+
</div>
|
391
|
+
|
392
|
+
<div class="section-method">
|
393
|
+
<a name="//api/name/value" title="value"></a>
|
394
|
+
<h3 class="subsubtitle method-title">value</h3>
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
<div class="method-subsection brief-description">
|
399
|
+
<ul>
|
400
|
+
<li>The value to be used for comparison.</li>
|
401
|
+
</ul>
|
402
|
+
|
403
|
+
</div>
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) id value</code></div>
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
<div class="method-subsection discussion-section">
|
418
|
+
<h4 class="method-subtitle">Discussion</h4>
|
419
|
+
<ul>
|
420
|
+
<li>The value to be used for comparison.</li>
|
421
|
+
</ul>
|
422
|
+
|
423
|
+
</div>
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
<div class="method-subsection declared-in-section">
|
432
|
+
<h4 class="method-subtitle">Declared In</h4>
|
433
|
+
<code class="declared-in-ref">NSFNanoPredicate.h</code><br />
|
434
|
+
</div>
|
435
|
+
|
436
|
+
|
437
|
+
</div>
|
438
|
+
|
439
|
+
</div>
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
<div class="section section-methods">
|
444
|
+
<a title="Class Methods" name="class_methods"></a>
|
445
|
+
<h2 class="subtitle subtitle-methods">Class Methods</h2>
|
446
|
+
|
447
|
+
<div class="section-method">
|
448
|
+
<a name="//api/name/predicateWithColumn:matching:value:" title="predicateWithColumn:matching:value:"></a>
|
449
|
+
<h3 class="subsubtitle method-title">predicateWithColumn:matching:value:</h3>
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
<div class="method-subsection brief-description">
|
454
|
+
<p>Creates and returns a predicate.</p>
|
455
|
+
</div>
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
<div class="method-subsection method-declaration"><code>+ (NSFNanoPredicate *)predicateWithColumn:(NSFTableColumnType)<em>theType</em> matching:(NSFMatchType)<em>theMatch</em> value:(id)<em>theValue</em></code></div>
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
<div class="method-subsection arguments-section parameters">
|
464
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
465
|
+
|
466
|
+
<dl class="argument-def parameter-def">
|
467
|
+
<dt><em>theType</em></dt>
|
468
|
+
<dd><p>is the <a href="#//api/name/column">column</a> type. Can be \link Globals::NSFKeyColumn NSFKeyColumn \endlink, \link Globals::NSFAttributeColumn NSFAttributeColumn \endlink or \link Globals::NSFValueColumn NSFValueColumn \endlink.</p></dd>
|
469
|
+
</dl>
|
470
|
+
|
471
|
+
<dl class="argument-def parameter-def">
|
472
|
+
<dt><em>theMatch</em></dt>
|
473
|
+
<dd><p>is the <a href="#//api/name/match">match</a> operator.</p></dd>
|
474
|
+
</dl>
|
475
|
+
|
476
|
+
<dl class="argument-def parameter-def">
|
477
|
+
<dt><em>theValue</em></dt>
|
478
|
+
<dd><p>can be an NSString or [NSNull null]</p></dd>
|
479
|
+
</dl>
|
480
|
+
|
481
|
+
</div>
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
<div class="method-subsection return">
|
486
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
487
|
+
<p>A predicate which can be used in an <a href="../Classes/NSFNanoExpression.html">NSFNanoExpression</a>.</p>
|
488
|
+
</div>
|
489
|
+
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
<div class="method-subsection discussion-section">
|
495
|
+
<h4 class="method-subtitle">Discussion</h4>
|
496
|
+
<p>Creates and returns a predicate.</p>
|
497
|
+
</div>
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
<div class="method-subsection see-also-section">
|
504
|
+
<h4 class="method-subtitle">See Also</h4>
|
505
|
+
<ul>
|
506
|
+
|
507
|
+
<li><code><p>\link <a href="#//api/name/initWithColumn:matching:value:">– initWithColumn:matching:value:</a> – (id)initWithColumn:(NSFTableColumnType)theType matching:(NSFMatchType)theMatch value:(NSString *)theValue \endlink</p></code></li>
|
508
|
+
|
509
|
+
</ul>
|
510
|
+
</div>
|
511
|
+
|
512
|
+
|
513
|
+
|
514
|
+
<div class="method-subsection declared-in-section">
|
515
|
+
<h4 class="method-subtitle">Declared In</h4>
|
516
|
+
<code class="declared-in-ref">NSFNanoPredicate.h</code><br />
|
517
|
+
</div>
|
518
|
+
|
519
|
+
|
520
|
+
</div>
|
521
|
+
|
522
|
+
</div>
|
523
|
+
|
524
|
+
|
525
|
+
|
526
|
+
<div class="section section-methods">
|
527
|
+
<a title="Instance Methods" name="instance_methods"></a>
|
528
|
+
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
|
529
|
+
|
530
|
+
<div class="section-method">
|
531
|
+
<a name="//api/name/JSONDescription" title="JSONDescription"></a>
|
532
|
+
<h3 class="subsubtitle method-title">JSONDescription</h3>
|
533
|
+
|
534
|
+
|
535
|
+
|
536
|
+
<div class="method-subsection brief-description">
|
537
|
+
<p>Returns a JSON representation of the predicate.</p>
|
538
|
+
</div>
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
<div class="method-subsection method-declaration"><code>- (NSString *)JSONDescription</code></div>
|
543
|
+
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
|
550
|
+
|
551
|
+
|
552
|
+
<div class="method-subsection discussion-section">
|
553
|
+
<h4 class="method-subtitle">Discussion</h4>
|
554
|
+
<p>Returns a JSON representation of the predicate.</p><div class="note"><p><strong>Note:</strong> Check properties <a href="#//api/name/column">column</a>, <a href="#//api/name/match">match</a> and <a href="#//api/name/value">value</a> to find out the current state of the predicate.</p></div>
|
555
|
+
</div>
|
556
|
+
|
557
|
+
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
<div class="method-subsection declared-in-section">
|
564
|
+
<h4 class="method-subtitle">Declared In</h4>
|
565
|
+
<code class="declared-in-ref">NSFNanoPredicate.h</code><br />
|
566
|
+
</div>
|
567
|
+
|
568
|
+
|
569
|
+
</div>
|
570
|
+
|
571
|
+
<div class="section-method">
|
572
|
+
<a name="//api/name/description" title="description"></a>
|
573
|
+
<h3 class="subsubtitle method-title">description</h3>
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
<div class="method-subsection brief-description">
|
578
|
+
<p>Returns a string representation of the predicate.</p>
|
579
|
+
</div>
|
580
|
+
|
581
|
+
|
582
|
+
|
583
|
+
<div class="method-subsection method-declaration"><code>- (NSString *)description</code></div>
|
584
|
+
|
585
|
+
|
586
|
+
|
587
|
+
|
588
|
+
|
589
|
+
|
590
|
+
|
591
|
+
|
592
|
+
|
593
|
+
<div class="method-subsection discussion-section">
|
594
|
+
<h4 class="method-subtitle">Discussion</h4>
|
595
|
+
<p>Returns a string representation of the predicate.</p><div class="note"><p><strong>Note:</strong> Check properties <a href="#//api/name/column">column</a>, <a href="#//api/name/match">match</a> and <a href="#//api/name/value">value</a> to find out the current state of the predicate.</p></div>
|
596
|
+
</div>
|
597
|
+
|
598
|
+
|
599
|
+
|
600
|
+
|
601
|
+
|
602
|
+
|
603
|
+
|
604
|
+
<div class="method-subsection declared-in-section">
|
605
|
+
<h4 class="method-subtitle">Declared In</h4>
|
606
|
+
<code class="declared-in-ref">NSFNanoPredicate.h</code><br />
|
607
|
+
</div>
|
608
|
+
|
609
|
+
|
610
|
+
</div>
|
611
|
+
|
612
|
+
<div class="section-method">
|
613
|
+
<a name="//api/name/initWithColumn:matching:value:" title="initWithColumn:matching:value:"></a>
|
614
|
+
<h3 class="subsubtitle method-title">initWithColumn:matching:value:</h3>
|
615
|
+
|
616
|
+
|
617
|
+
|
618
|
+
<div class="method-subsection brief-description">
|
619
|
+
<p>Initializes a newly allocated predicate.</p>
|
620
|
+
</div>
|
621
|
+
|
622
|
+
|
623
|
+
|
624
|
+
<div class="method-subsection method-declaration"><code>- (id)initWithColumn:(NSFTableColumnType)<em>theType</em> matching:(NSFMatchType)<em>theMatch</em> value:(id)<em>theValue</em></code></div>
|
625
|
+
|
626
|
+
|
627
|
+
|
628
|
+
<div class="method-subsection arguments-section parameters">
|
629
|
+
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
630
|
+
|
631
|
+
<dl class="argument-def parameter-def">
|
632
|
+
<dt><em>theType</em></dt>
|
633
|
+
<dd><p>is the <a href="#//api/name/column">column</a> type. Can be \link Globals::NSFKeyColumn NSFKeyColumn \endlink, \link Globals::NSFAttributeColumn NSFAttributeColumn \endlink or \link Globals::NSFValueColumn NSFValueColumn \endlink.</p></dd>
|
634
|
+
</dl>
|
635
|
+
|
636
|
+
<dl class="argument-def parameter-def">
|
637
|
+
<dt><em>theMatch</em></dt>
|
638
|
+
<dd><p>is the <a href="#//api/name/match">match</a> operator.</p></dd>
|
639
|
+
</dl>
|
640
|
+
|
641
|
+
<dl class="argument-def parameter-def">
|
642
|
+
<dt><em>theValue</em></dt>
|
643
|
+
<dd><p>can be an NSString or [NSNull null]</p></dd>
|
644
|
+
</dl>
|
645
|
+
|
646
|
+
</div>
|
647
|
+
|
648
|
+
|
649
|
+
|
650
|
+
<div class="method-subsection return">
|
651
|
+
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
652
|
+
<p>A predicate which can be used in an <a href="../Classes/NSFNanoExpression.html">NSFNanoExpression</a>.</p>
|
653
|
+
</div>
|
654
|
+
|
655
|
+
|
656
|
+
|
657
|
+
|
658
|
+
|
659
|
+
<div class="method-subsection discussion-section">
|
660
|
+
<h4 class="method-subtitle">Discussion</h4>
|
661
|
+
<p>Initializes a newly allocated predicate.</p>
|
662
|
+
</div>
|
663
|
+
|
664
|
+
|
665
|
+
|
666
|
+
|
667
|
+
|
668
|
+
<div class="method-subsection see-also-section">
|
669
|
+
<h4 class="method-subtitle">See Also</h4>
|
670
|
+
<ul>
|
671
|
+
|
672
|
+
<li><code><p>\link <a href="#//api/name/predicateWithColumn:matching:value:">+ predicateWithColumn:matching:value:</a> + (NSFNanoPredicate<em>)predicateWithColumn:(NSFTableColumnType)theType matching:(NSFMatchType)theMatch value:(NSString </em>)theValue \endlink</p></code></li>
|
673
|
+
|
674
|
+
</ul>
|
675
|
+
</div>
|
676
|
+
|
677
|
+
|
678
|
+
|
679
|
+
<div class="method-subsection declared-in-section">
|
680
|
+
<h4 class="method-subtitle">Declared In</h4>
|
681
|
+
<code class="declared-in-ref">NSFNanoPredicate.h</code><br />
|
682
|
+
</div>
|
683
|
+
|
684
|
+
|
685
|
+
</div>
|
686
|
+
|
687
|
+
</div>
|
688
|
+
|
689
|
+
|
690
|
+
</div>
|
691
|
+
<div class="main-navigation navigation-bottom">
|
692
|
+
<ul>
|
693
|
+
<li><a href="../index.html">Index</a></li>
|
694
|
+
<li><a href="../hierarchy.html">Hierarchy</a></li>
|
695
|
+
</ul>
|
696
|
+
</div>
|
697
|
+
<div id="footer">
|
698
|
+
<hr />
|
699
|
+
<div class="footer-copyright">
|
700
|
+
<p><span class="copyright">© 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-01-22)</span><br />
|
701
|
+
|
702
|
+
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
|
703
|
+
|
704
|
+
</div>
|
705
|
+
</div>
|
706
|
+
</div>
|
707
|
+
</article>
|
708
|
+
<script type="text/javascript">
|
709
|
+
function jumpToChange()
|
710
|
+
{
|
711
|
+
window.location.hash = this.options[this.selectedIndex].value;
|
712
|
+
}
|
713
|
+
|
714
|
+
function toggleTOC()
|
715
|
+
{
|
716
|
+
var contents = document.getElementById('contents');
|
717
|
+
var tocContainer = document.getElementById('tocContainer');
|
718
|
+
|
719
|
+
if (this.getAttribute('class') == 'open')
|
720
|
+
{
|
721
|
+
this.setAttribute('class', '');
|
722
|
+
contents.setAttribute('class', '');
|
723
|
+
tocContainer.setAttribute('class', '');
|
724
|
+
|
725
|
+
window.name = "hideTOC";
|
726
|
+
}
|
727
|
+
else
|
728
|
+
{
|
729
|
+
this.setAttribute('class', 'open');
|
730
|
+
contents.setAttribute('class', 'isShowingTOC');
|
731
|
+
tocContainer.setAttribute('class', 'isShowingTOC');
|
732
|
+
|
733
|
+
window.name = "";
|
734
|
+
}
|
735
|
+
return false;
|
736
|
+
}
|
737
|
+
|
738
|
+
function toggleTOCEntryChildren(e)
|
739
|
+
{
|
740
|
+
e.stopPropagation();
|
741
|
+
var currentClass = this.getAttribute('class');
|
742
|
+
if (currentClass == 'children') {
|
743
|
+
this.setAttribute('class', 'children open');
|
744
|
+
}
|
745
|
+
else if (currentClass == 'children open') {
|
746
|
+
this.setAttribute('class', 'children');
|
747
|
+
}
|
748
|
+
return false;
|
749
|
+
}
|
750
|
+
|
751
|
+
function tocEntryClick(e)
|
752
|
+
{
|
753
|
+
e.stopPropagation();
|
754
|
+
return true;
|
755
|
+
}
|
756
|
+
|
757
|
+
function init()
|
758
|
+
{
|
759
|
+
var selectElement = document.getElementById('jumpTo');
|
760
|
+
selectElement.addEventListener('change', jumpToChange, false);
|
761
|
+
|
762
|
+
var tocButton = document.getElementById('table_of_contents');
|
763
|
+
tocButton.addEventListener('click', toggleTOC, false);
|
764
|
+
|
765
|
+
var taskTreeItem = document.getElementById('task_treeitem');
|
766
|
+
if (taskTreeItem.getElementsByTagName('li').length > 0)
|
767
|
+
{
|
768
|
+
taskTreeItem.setAttribute('class', 'children');
|
769
|
+
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
|
770
|
+
}
|
771
|
+
|
772
|
+
var tocList = document.getElementById('toc');
|
773
|
+
|
774
|
+
var tocEntries = tocList.getElementsByTagName('li');
|
775
|
+
for (var i = 0; i < tocEntries.length; i++) {
|
776
|
+
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
|
777
|
+
}
|
778
|
+
|
779
|
+
var tocLinks = tocList.getElementsByTagName('a');
|
780
|
+
for (var i = 0; i < tocLinks.length; i++) {
|
781
|
+
tocLinks[i].addEventListener('click', tocEntryClick, false);
|
782
|
+
}
|
783
|
+
|
784
|
+
if (window.name == "hideTOC") {
|
785
|
+
toggleTOC.call(tocButton);
|
786
|
+
}
|
787
|
+
}
|
788
|
+
|
789
|
+
window.onload = init;
|
790
|
+
|
791
|
+
// If showing in Xcode, hide the TOC and Header
|
792
|
+
if (navigator.userAgent.match(/xcode/i)) {
|
793
|
+
document.getElementById("contents").className = "hideInXcode"
|
794
|
+
document.getElementById("tocContainer").className = "hideInXcode"
|
795
|
+
document.getElementById("top_header").className = "hideInXcode"
|
796
|
+
}
|
797
|
+
|
798
|
+
</script>
|
799
|
+
</body>
|
800
|
+
</html>
|