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