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,1054 @@
1
+ <!DOCTYPE HTML>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
5
+ <title>NSFNanoResult 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">NSFNanoResult 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/error">&nbsp;&nbsp;&nbsp;&nbsp;error</option>
44
+
45
+ <option value="//api/name/numberOfRows">&nbsp;&nbsp;&nbsp;&nbsp;numberOfRows</option>
46
+
47
+
48
+
49
+
50
+ <option value="class_methods">Class Methods</option>
51
+
52
+ <option value="//api/name/_resultWithDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;+ _resultWithDictionary:</option>
53
+
54
+ <option value="//api/name/_resultWithError:">&nbsp;&nbsp;&nbsp;&nbsp;+ _resultWithError:</option>
55
+
56
+
57
+
58
+
59
+ <option value="instance_methods">Instance Methods</option>
60
+
61
+ <option value="//api/name/JSONDescription">&nbsp;&nbsp;&nbsp;&nbsp;- JSONDescription</option>
62
+
63
+ <option value="//api/name/_calculateNumberOfRows">&nbsp;&nbsp;&nbsp;&nbsp;- _calculateNumberOfRows</option>
64
+
65
+ <option value="//api/name/_initWithDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;- _initWithDictionary:</option>
66
+
67
+ <option value="//api/name/_initWithError:">&nbsp;&nbsp;&nbsp;&nbsp;- _initWithError:</option>
68
+
69
+ <option value="//api/name/_reset">&nbsp;&nbsp;&nbsp;&nbsp;- _reset</option>
70
+
71
+ <option value="//api/name/_setError:">&nbsp;&nbsp;&nbsp;&nbsp;- _setError:</option>
72
+
73
+ <option value="//api/name/columns">&nbsp;&nbsp;&nbsp;&nbsp;- columns</option>
74
+
75
+ <option value="//api/name/description">&nbsp;&nbsp;&nbsp;&nbsp;- description</option>
76
+
77
+ <option value="//api/name/firstValue">&nbsp;&nbsp;&nbsp;&nbsp;- firstValue</option>
78
+
79
+ <option value="//api/name/valueAtIndex:forColumn:">&nbsp;&nbsp;&nbsp;&nbsp;- valueAtIndex:forColumn:</option>
80
+
81
+ <option value="//api/name/valuesForColumn:">&nbsp;&nbsp;&nbsp;&nbsp;- valuesForColumn:</option>
82
+
83
+ <option value="//api/name/writeToFile:">&nbsp;&nbsp;&nbsp;&nbsp;- writeToFile:</option>
84
+
85
+
86
+
87
+ </select>
88
+ </li>
89
+ </ul>
90
+ </header>
91
+ <nav id="tocContainer" class="isShowingTOC">
92
+ <ul id="toc" role="tree">
93
+
94
+ <li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
95
+
96
+
97
+
98
+
99
+ <li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
100
+
101
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Accessors">Accessors</a></span></li>
102
+
103
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Exporting the Results to a File">Exporting the Results to a File</a></span></li>
104
+
105
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Miscellaneous">Miscellaneous</a></span></li>
106
+
107
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Private Methods">Private Methods</a></span></li>
108
+
109
+ </ul></li>
110
+
111
+
112
+
113
+
114
+
115
+ <li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
116
+
117
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/error">error</a></span></li>
118
+
119
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/numberOfRows">numberOfRows</a></span></li>
120
+
121
+ </ul></li>
122
+
123
+
124
+
125
+ <li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
126
+
127
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_resultWithDictionary:">_resultWithDictionary:</a></span></li>
128
+
129
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_resultWithError:">_resultWithError:</a></span></li>
130
+
131
+ </ul></li>
132
+
133
+
134
+
135
+ <li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
136
+
137
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/JSONDescription">JSONDescription</a></span></li>
138
+
139
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_calculateNumberOfRows">_calculateNumberOfRows</a></span></li>
140
+
141
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_initWithDictionary:">_initWithDictionary:</a></span></li>
142
+
143
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_initWithError:">_initWithError:</a></span></li>
144
+
145
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_reset">_reset</a></span></li>
146
+
147
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/_setError:">_setError:</a></span></li>
148
+
149
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/columns">columns</a></span></li>
150
+
151
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/description">description</a></span></li>
152
+
153
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/firstValue">firstValue</a></span></li>
154
+
155
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/valueAtIndex:forColumn:">valueAtIndex:forColumn:</a></span></li>
156
+
157
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/valuesForColumn:">valuesForColumn:</a></span></li>
158
+
159
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/writeToFile:">writeToFile:</a></span></li>
160
+
161
+ </ul></li>
162
+
163
+
164
+ </ul>
165
+ </nav>
166
+ <article>
167
+ <div id="contents" class="isShowingTOC" role="main">
168
+ <a title="NSFNanoResult Class Reference" name="top"></a>
169
+ <div class="main-navigation navigation-top">
170
+ <ul>
171
+ <li><a href="../index.html">Index</a></li>
172
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
173
+ </ul>
174
+ </div>
175
+ <div id="header">
176
+ <div class="section-header">
177
+ <h1 class="title title-header">NSFNanoResult Class Reference</h1>
178
+ </div>
179
+ </div>
180
+ <div id="container">
181
+
182
+ <div class="section section-specification"><table cellspacing="0"><tbody>
183
+ <tr>
184
+ <td class="specification-title">Inherits from</td>
185
+ <td class="specification-value">NSObject</td>
186
+ </tr><tr>
187
+ <td class="specification-title">Declared in</td>
188
+ <td class="specification-value">NSFNanoResult.h</td>
189
+ </tr>
190
+ </tbody></table></div>
191
+
192
+
193
+
194
+
195
+ <div class="section section-overview">
196
+ <a title="Overview" name="overview"></a>
197
+ <h2 class="subtitle subtitle-overview">Overview</h2>
198
+ <p>@class NSFNanoResult
199
+ * A unit that describes the result of a search.
200
+ *
201
+ * @note
202
+ * The NanoResult is the object representation of a SQL result set. From it, you can obtain the number of rows, the column names and their
203
+ * associated values.
204
+ *
205
+ * @par
206
+ * After obtaining a NanoResult, it&rsquo;s always a good idea to check whether the <i>error</i> property is nil. If so, the result can be assumed to be
207
+ * correct. Otherwise, <i>error</i> will point to the main cause of failure.
208
+ *
209
+ * @details <b>Example:</b>
210
+ @code
211
+ // Instantiate a NanoStore and open it
212
+ <a href="../Classes/NSFNanoStore.html">NSFNanoStore</a> *nanoStore = [<a href="../Classes/NSFNanoStore.html">NSFNanoStore</a> createAndOpenStoreWithType:NSFMemoryStoreType path:nil error:nil];</p>
213
+
214
+ <p>// Add some data to the document store
215
+ NSDictionary <em>info = &hellip;;
216
+ <a href="../Classes/NSFNanoBag.html">NSFNanoBag</a> </em>bag = <a href="../Classes/NSFNanoBag.html#//api/name/bag">[NSFNanoBag bag]</a>;
217
+ <a href="../Classes/NSFNanoObject.html">NSFNanoObject</a> <em>obj1 = [NSFNanoObject nanoObjectWithDictionary:info];
218
+ <a href="../Classes/NSFNanoObject.html">NSFNanoObject</a> </em>obj2 = [NSFNanoObject nanoObjectWithDictionary:info];
219
+ [nanoStore addObjectsFromArray:[NSArray arrayWithObjects:obj1, obj2, nil] error:nil];</p>
220
+
221
+ <p>// Instantiate a search and execute the SQL statement
222
+ <a href="../Classes/NSFNanoSearch.html">NSFNanoSearch</a> <em>search = [NSFNanoSearch searchWithStore:nanoStore];
223
+ NSFNanoResult </em>result = [search executeSQL:@&ldquo;SELECT COUNT(*) FROM NSFKEYS&rdquo;];</p>
224
+
225
+ <p>// Obtain the result (given as an NSString)
226
+ NSString *value = [result firstValue];</p>
227
+
228
+ <p>// Close the document store
229
+ [nanoStore closeWithError:nil];
230
+ @endcode</p>
231
+
232
+ <p>\cond</p>
233
+ </div>
234
+
235
+
236
+
237
+
238
+
239
+ <div class="section section-tasks">
240
+ <a title="Tasks" name="tasks"></a>
241
+ <h2 class="subtitle subtitle-tasks">Tasks</h2>
242
+
243
+
244
+
245
+ <h3 class="subsubtitle task-title">Other Methods</h3>
246
+
247
+ <ul class="task-list">
248
+ <li>
249
+ <span class="tooltip">
250
+ <code><a href="#//api/name/numberOfRows">&nbsp;&nbsp;numberOfRows</a></code>
251
+ <span class="tooltip"><ul>
252
+ <li>Number of rows contained in the result set.</li>
253
+ </ul>
254
+ </span>
255
+ </span>
256
+ <span class="task-item-suffix">property</span>
257
+
258
+ </li><li>
259
+ <span class="tooltip">
260
+ <code><a href="#//api/name/error">&nbsp;&nbsp;error</a></code>
261
+ <span class="tooltip"><ul>
262
+ <li>A reference to the error encountered while processing the request, otherwise nil if the request was successful.</li>
263
+ </ul>
264
+ </span>
265
+ </span>
266
+ <span class="task-item-suffix">property</span>
267
+
268
+ </li>
269
+ </ul>
270
+
271
+
272
+ <a title="Accessors" name="task_Accessors"></a>
273
+ <h3 class="subsubtitle task-title">Accessors</h3>
274
+
275
+ <ul class="task-list">
276
+ <li>
277
+ <span class="tooltip">
278
+ <code><a href="#//api/name/columns">&ndash;&nbsp;columns</a></code>
279
+ <span class="tooltip"><p>Returns a new array containing the columns.</p></span>
280
+ </span>
281
+
282
+
283
+ </li><li>
284
+ <span class="tooltip">
285
+ <code><a href="#//api/name/valueAtIndex:forColumn:">&ndash;&nbsp;valueAtIndex:forColumn:</a></code>
286
+ <span class="tooltip"><p>Returns a new array containing the values for a given column.</p></span>
287
+ </span>
288
+
289
+
290
+ </li><li>
291
+ <span class="tooltip">
292
+ <code><a href="#//api/name/valuesForColumn:">&ndash;&nbsp;valuesForColumn:</a></code>
293
+ <span class="tooltip"><p>Returns a new array containing the values for a given column.</p></span>
294
+ </span>
295
+
296
+
297
+ </li><li>
298
+ <span class="tooltip">
299
+ <code><a href="#//api/name/firstValue">&ndash;&nbsp;firstValue</a></code>
300
+ <span class="tooltip"><p>Returns the first value.</p></span>
301
+ </span>
302
+
303
+
304
+ </li>
305
+ </ul>
306
+
307
+
308
+ <a title="Exporting the Results to a File" name="task_Exporting the Results to a File"></a>
309
+ <h3 class="subsubtitle task-title">Exporting the Results to a File</h3>
310
+
311
+ <ul class="task-list">
312
+ <li>
313
+ <span class="tooltip">
314
+ <code><a href="#//api/name/writeToFile:">&ndash;&nbsp;writeToFile:</a></code>
315
+ <span class="tooltip"><p>Saves the result to a file.</p></span>
316
+ </span>
317
+
318
+
319
+ </li>
320
+ </ul>
321
+
322
+
323
+ <a title="Miscellaneous" name="task_Miscellaneous"></a>
324
+ <h3 class="subsubtitle task-title">Miscellaneous</h3>
325
+
326
+ <ul class="task-list">
327
+ <li>
328
+ <span class="tooltip">
329
+ <code><a href="#//api/name/description">&ndash;&nbsp;description</a></code>
330
+ <span class="tooltip"><p>Returns a string representation of the result.</p></span>
331
+ </span>
332
+
333
+
334
+ </li><li>
335
+ <span class="tooltip">
336
+ <code><a href="#//api/name/JSONDescription">&ndash;&nbsp;JSONDescription</a></code>
337
+ <span class="tooltip"><p>Returns a JSON representation of the result.</p></span>
338
+ </span>
339
+
340
+
341
+ </li>
342
+ </ul>
343
+
344
+
345
+ <a title="Private Methods" name="task_Private Methods"></a>
346
+ <h3 class="subsubtitle task-title">Private Methods</h3>
347
+
348
+ <ul class="task-list">
349
+ <li>
350
+ <span class="tooltip">
351
+ <code><a href="#//api/name/_resultWithDictionary:">+&nbsp;_resultWithDictionary:</a></code>
352
+
353
+ </span>
354
+
355
+
356
+ </li><li>
357
+ <span class="tooltip">
358
+ <code><a href="#//api/name/_resultWithError:">+&nbsp;_resultWithError:</a></code>
359
+
360
+ </span>
361
+
362
+
363
+ </li><li>
364
+ <span class="tooltip">
365
+ <code><a href="#//api/name/_initWithDictionary:">&ndash;&nbsp;_initWithDictionary:</a></code>
366
+
367
+ </span>
368
+
369
+
370
+ </li><li>
371
+ <span class="tooltip">
372
+ <code><a href="#//api/name/_initWithError:">&ndash;&nbsp;_initWithError:</a></code>
373
+
374
+ </span>
375
+
376
+
377
+ </li><li>
378
+ <span class="tooltip">
379
+ <code><a href="#//api/name/_setError:">&ndash;&nbsp;_setError:</a></code>
380
+
381
+ </span>
382
+
383
+
384
+ </li><li>
385
+ <span class="tooltip">
386
+ <code><a href="#//api/name/_reset">&ndash;&nbsp;_reset</a></code>
387
+
388
+ </span>
389
+
390
+
391
+ </li><li>
392
+ <span class="tooltip">
393
+ <code><a href="#//api/name/_calculateNumberOfRows">&ndash;&nbsp;_calculateNumberOfRows</a></code>
394
+
395
+ </span>
396
+
397
+
398
+ </li>
399
+ </ul>
400
+
401
+ </div>
402
+
403
+
404
+
405
+
406
+
407
+ <div class="section section-methods">
408
+ <a title="Properties" name="properties"></a>
409
+ <h2 class="subtitle subtitle-methods">Properties</h2>
410
+
411
+ <div class="section-method">
412
+ <a name="//api/name/error" title="error"></a>
413
+ <h3 class="subsubtitle method-title">error</h3>
414
+
415
+
416
+
417
+ <div class="method-subsection brief-description">
418
+ <ul>
419
+ <li>A reference to the error encountered while processing the request, otherwise nil if the request was successful.</li>
420
+ </ul>
421
+
422
+ </div>
423
+
424
+
425
+
426
+ <div class="method-subsection method-declaration"><code>@property (nonatomic, strong, readonly) NSError *error</code></div>
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+ <div class="method-subsection discussion-section">
437
+ <h4 class="method-subtitle">Discussion</h4>
438
+ <ul>
439
+ <li>A reference to the error encountered while processing the request, otherwise nil if the request was successful.</li>
440
+ </ul>
441
+
442
+ </div>
443
+
444
+
445
+
446
+
447
+
448
+
449
+
450
+ <div class="method-subsection declared-in-section">
451
+ <h4 class="method-subtitle">Declared In</h4>
452
+ <code class="declared-in-ref">NSFNanoResult.h</code><br />
453
+ </div>
454
+
455
+
456
+ </div>
457
+
458
+ <div class="section-method">
459
+ <a name="//api/name/numberOfRows" title="numberOfRows"></a>
460
+ <h3 class="subsubtitle method-title">numberOfRows</h3>
461
+
462
+
463
+
464
+ <div class="method-subsection brief-description">
465
+ <ul>
466
+ <li>Number of rows contained in the result set.</li>
467
+ </ul>
468
+
469
+ </div>
470
+
471
+
472
+
473
+ <div class="method-subsection method-declaration"><code>@property (nonatomic, assign, readonly) NSUInteger numberOfRows</code></div>
474
+
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+
483
+ <div class="method-subsection discussion-section">
484
+ <h4 class="method-subtitle">Discussion</h4>
485
+ <ul>
486
+ <li>Number of rows contained in the result set.</li>
487
+ </ul>
488
+
489
+ </div>
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+ <div class="method-subsection declared-in-section">
498
+ <h4 class="method-subtitle">Declared In</h4>
499
+ <code class="declared-in-ref">NSFNanoResult.h</code><br />
500
+ </div>
501
+
502
+
503
+ </div>
504
+
505
+ </div>
506
+
507
+
508
+
509
+ <div class="section section-methods">
510
+ <a title="Class Methods" name="class_methods"></a>
511
+ <h2 class="subtitle subtitle-methods">Class Methods</h2>
512
+
513
+ <div class="section-method">
514
+ <a name="//api/name/_resultWithDictionary:" title="_resultWithDictionary:"></a>
515
+ <h3 class="subsubtitle method-title">_resultWithDictionary:</h3>
516
+
517
+
518
+
519
+ <div class="method-subsection method-declaration"><code>+ (NSFNanoResult *)_resultWithDictionary:(NSDictionary *)<em>results</em></code></div>
520
+
521
+
522
+ </div>
523
+
524
+ <div class="section-method">
525
+ <a name="//api/name/_resultWithError:" title="_resultWithError:"></a>
526
+ <h3 class="subsubtitle method-title">_resultWithError:</h3>
527
+
528
+
529
+
530
+ <div class="method-subsection method-declaration"><code>+ (NSFNanoResult *)_resultWithError:(NSError *)<em>error</em></code></div>
531
+
532
+
533
+ </div>
534
+
535
+ </div>
536
+
537
+
538
+
539
+ <div class="section section-methods">
540
+ <a title="Instance Methods" name="instance_methods"></a>
541
+ <h2 class="subtitle subtitle-methods">Instance Methods</h2>
542
+
543
+ <div class="section-method">
544
+ <a name="//api/name/JSONDescription" title="JSONDescription"></a>
545
+ <h3 class="subsubtitle method-title">JSONDescription</h3>
546
+
547
+
548
+
549
+ <div class="method-subsection brief-description">
550
+ <p>Returns a JSON representation of the result.</p>
551
+ </div>
552
+
553
+
554
+
555
+ <div class="method-subsection method-declaration"><code>- (NSString *)JSONDescription</code></div>
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+
564
+
565
+ <div class="method-subsection discussion-section">
566
+ <h4 class="method-subtitle">Discussion</h4>
567
+ <p>Returns a JSON representation of the result.</p>
568
+ </div>
569
+
570
+
571
+
572
+
573
+
574
+
575
+
576
+ <div class="method-subsection declared-in-section">
577
+ <h4 class="method-subtitle">Declared In</h4>
578
+ <code class="declared-in-ref">NSFNanoResult.h</code><br />
579
+ </div>
580
+
581
+
582
+ </div>
583
+
584
+ <div class="section-method">
585
+ <a name="//api/name/_calculateNumberOfRows" title="_calculateNumberOfRows"></a>
586
+ <h3 class="subsubtitle method-title">_calculateNumberOfRows</h3>
587
+
588
+
589
+
590
+ <div class="method-subsection method-declaration"><code>- (void)_calculateNumberOfRows</code></div>
591
+
592
+
593
+ </div>
594
+
595
+ <div class="section-method">
596
+ <a name="//api/name/_initWithDictionary:" title="_initWithDictionary:"></a>
597
+ <h3 class="subsubtitle method-title">_initWithDictionary:</h3>
598
+
599
+
600
+
601
+ <div class="method-subsection method-declaration"><code>- (id)_initWithDictionary:(NSDictionary *)<em>results</em></code></div>
602
+
603
+
604
+ </div>
605
+
606
+ <div class="section-method">
607
+ <a name="//api/name/_initWithError:" title="_initWithError:"></a>
608
+ <h3 class="subsubtitle method-title">_initWithError:</h3>
609
+
610
+
611
+
612
+ <div class="method-subsection method-declaration"><code>- (id)_initWithError:(NSError *)<em>error</em></code></div>
613
+
614
+
615
+ </div>
616
+
617
+ <div class="section-method">
618
+ <a name="//api/name/_reset" title="_reset"></a>
619
+ <h3 class="subsubtitle method-title">_reset</h3>
620
+
621
+
622
+
623
+ <div class="method-subsection method-declaration"><code>- (void)_reset</code></div>
624
+
625
+
626
+ </div>
627
+
628
+ <div class="section-method">
629
+ <a name="//api/name/_setError:" title="_setError:"></a>
630
+ <h3 class="subsubtitle method-title">_setError:</h3>
631
+
632
+
633
+
634
+ <div class="method-subsection method-declaration"><code>- (void)_setError:(NSError *)<em>error</em></code></div>
635
+
636
+
637
+ </div>
638
+
639
+ <div class="section-method">
640
+ <a name="//api/name/columns" title="columns"></a>
641
+ <h3 class="subsubtitle method-title">columns</h3>
642
+
643
+
644
+
645
+ <div class="method-subsection brief-description">
646
+ <p>Returns a new array containing the columns.</p>
647
+ </div>
648
+
649
+
650
+
651
+ <div class="method-subsection method-declaration"><code>- (NSArray *)columns</code></div>
652
+
653
+
654
+
655
+
656
+
657
+ <div class="method-subsection return">
658
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
659
+ <p>An array with the columns retrieved from the result set.</p>
660
+ </div>
661
+
662
+
663
+
664
+
665
+
666
+ <div class="method-subsection discussion-section">
667
+ <h4 class="method-subtitle">Discussion</h4>
668
+ <p>Returns a new array containing the columns.</p>
669
+ </div>
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+ <div class="method-subsection declared-in-section">
678
+ <h4 class="method-subtitle">Declared In</h4>
679
+ <code class="declared-in-ref">NSFNanoResult.h</code><br />
680
+ </div>
681
+
682
+
683
+ </div>
684
+
685
+ <div class="section-method">
686
+ <a name="//api/name/description" title="description"></a>
687
+ <h3 class="subsubtitle method-title">description</h3>
688
+
689
+
690
+
691
+ <div class="method-subsection brief-description">
692
+ <p>Returns a string representation of the result.</p>
693
+ </div>
694
+
695
+
696
+
697
+ <div class="method-subsection method-declaration"><code>- (NSString *)description</code></div>
698
+
699
+
700
+
701
+
702
+
703
+
704
+
705
+
706
+
707
+ <div class="method-subsection discussion-section">
708
+ <h4 class="method-subtitle">Discussion</h4>
709
+ <p>Returns a string representation of the result.</p>
710
+ </div>
711
+
712
+
713
+
714
+
715
+
716
+
717
+
718
+ <div class="method-subsection declared-in-section">
719
+ <h4 class="method-subtitle">Declared In</h4>
720
+ <code class="declared-in-ref">NSFNanoResult.h</code><br />
721
+ </div>
722
+
723
+
724
+ </div>
725
+
726
+ <div class="section-method">
727
+ <a name="//api/name/firstValue" title="firstValue"></a>
728
+ <h3 class="subsubtitle method-title">firstValue</h3>
729
+
730
+
731
+
732
+ <div class="method-subsection brief-description">
733
+ <p>Returns the first value.</p>
734
+ </div>
735
+
736
+
737
+
738
+ <div class="method-subsection method-declaration"><code>- (NSString *)firstValue</code></div>
739
+
740
+
741
+
742
+
743
+
744
+ <div class="method-subsection return">
745
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
746
+ <p>The value of the first element from the result set.</p>
747
+ </div>
748
+
749
+
750
+
751
+
752
+
753
+ <div class="method-subsection discussion-section">
754
+ <h4 class="method-subtitle">Discussion</h4>
755
+ <p>Returns the first value.</p>
756
+ </div>
757
+
758
+
759
+
760
+
761
+
762
+
763
+
764
+ <div class="method-subsection declared-in-section">
765
+ <h4 class="method-subtitle">Declared In</h4>
766
+ <code class="declared-in-ref">NSFNanoResult.h</code><br />
767
+ </div>
768
+
769
+
770
+ </div>
771
+
772
+ <div class="section-method">
773
+ <a name="//api/name/valueAtIndex:forColumn:" title="valueAtIndex:forColumn:"></a>
774
+ <h3 class="subsubtitle method-title">valueAtIndex:forColumn:</h3>
775
+
776
+
777
+
778
+ <div class="method-subsection brief-description">
779
+ <p>Returns a new array containing the values for a given column.</p>
780
+ </div>
781
+
782
+
783
+
784
+ <div class="method-subsection method-declaration"><code>- (NSString *)valueAtIndex:(NSUInteger)<em>theIndex</em> forColumn:(NSString *)<em>theColumn</em></code></div>
785
+
786
+
787
+
788
+ <div class="method-subsection arguments-section parameters">
789
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
790
+
791
+ <dl class="argument-def parameter-def">
792
+ <dt><em>theIndex</em></dt>
793
+ <dd><p>is the index of the value in the result set.</p></dd>
794
+ </dl>
795
+
796
+ <dl class="argument-def parameter-def">
797
+ <dt><em>theColumn</em></dt>
798
+ <dd><p>is the name of the column in the result set.</p></dd>
799
+ </dl>
800
+
801
+ </div>
802
+
803
+
804
+
805
+ <div class="method-subsection return">
806
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
807
+ <p>An array with the values associated with a given column.
808
+ @throws NSRangeException is thrown if the index is out of bounds.</p>
809
+ </div>
810
+
811
+
812
+
813
+
814
+
815
+ <div class="method-subsection discussion-section">
816
+ <h4 class="method-subtitle">Discussion</h4>
817
+ <p>Returns a new array containing the values for a given column.</p>
818
+ </div>
819
+
820
+
821
+
822
+
823
+
824
+
825
+
826
+ <div class="method-subsection declared-in-section">
827
+ <h4 class="method-subtitle">Declared In</h4>
828
+ <code class="declared-in-ref">NSFNanoResult.h</code><br />
829
+ </div>
830
+
831
+
832
+ </div>
833
+
834
+ <div class="section-method">
835
+ <a name="//api/name/valuesForColumn:" title="valuesForColumn:"></a>
836
+ <h3 class="subsubtitle method-title">valuesForColumn:</h3>
837
+
838
+
839
+
840
+ <div class="method-subsection brief-description">
841
+ <p>Returns a new array containing the values for a given column.</p>
842
+ </div>
843
+
844
+
845
+
846
+ <div class="method-subsection method-declaration"><code>- (NSArray *)valuesForColumn:(NSString *)<em>theColumn</em></code></div>
847
+
848
+
849
+
850
+ <div class="method-subsection arguments-section parameters">
851
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
852
+
853
+ <dl class="argument-def parameter-def">
854
+ <dt><em>theColumn</em></dt>
855
+ <dd><p>is the name of the column in the result set.</p></dd>
856
+ </dl>
857
+
858
+ </div>
859
+
860
+
861
+
862
+ <div class="method-subsection return">
863
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
864
+ <p>An array with the values associated with a given column.</p>
865
+ </div>
866
+
867
+
868
+
869
+
870
+
871
+ <div class="method-subsection discussion-section">
872
+ <h4 class="method-subtitle">Discussion</h4>
873
+ <p>Returns a new array containing the values for a given column.</p>
874
+ </div>
875
+
876
+
877
+
878
+
879
+
880
+
881
+
882
+ <div class="method-subsection declared-in-section">
883
+ <h4 class="method-subtitle">Declared In</h4>
884
+ <code class="declared-in-ref">NSFNanoResult.h</code><br />
885
+ </div>
886
+
887
+
888
+ </div>
889
+
890
+ <div class="section-method">
891
+ <a name="//api/name/writeToFile:" title="writeToFile:"></a>
892
+ <h3 class="subsubtitle method-title">writeToFile:</h3>
893
+
894
+
895
+
896
+ <div class="method-subsection brief-description">
897
+ <p>Saves the result to a file.</p>
898
+ </div>
899
+
900
+
901
+
902
+ <div class="method-subsection method-declaration"><code>- (void)writeToFile:(NSString *)<em>thePath</em></code></div>
903
+
904
+
905
+
906
+ <div class="method-subsection arguments-section parameters">
907
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
908
+
909
+ <dl class="argument-def parameter-def">
910
+ <dt><em>thePath</em></dt>
911
+ <dd><p>is the location where the result will be saved to a file.</p></dd>
912
+ </dl>
913
+
914
+ </div>
915
+
916
+
917
+
918
+
919
+
920
+
921
+
922
+ <div class="method-subsection discussion-section">
923
+ <h4 class="method-subtitle">Discussion</h4>
924
+ <p>Saves the result to a file.</p>
925
+ </div>
926
+
927
+
928
+
929
+
930
+
931
+
932
+
933
+ <div class="method-subsection declared-in-section">
934
+ <h4 class="method-subtitle">Declared In</h4>
935
+ <code class="declared-in-ref">NSFNanoResult.h</code><br />
936
+ </div>
937
+
938
+
939
+ </div>
940
+
941
+ </div>
942
+
943
+
944
+ </div>
945
+ <div class="main-navigation navigation-bottom">
946
+ <ul>
947
+ <li><a href="../index.html">Index</a></li>
948
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
949
+ </ul>
950
+ </div>
951
+ <div id="footer">
952
+ <hr />
953
+ <div class="footer-copyright">
954
+ <p><span class="copyright">&copy; 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-01-22)</span><br />
955
+
956
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
957
+
958
+ </div>
959
+ </div>
960
+ </div>
961
+ </article>
962
+ <script type="text/javascript">
963
+ function jumpToChange()
964
+ {
965
+ window.location.hash = this.options[this.selectedIndex].value;
966
+ }
967
+
968
+ function toggleTOC()
969
+ {
970
+ var contents = document.getElementById('contents');
971
+ var tocContainer = document.getElementById('tocContainer');
972
+
973
+ if (this.getAttribute('class') == 'open')
974
+ {
975
+ this.setAttribute('class', '');
976
+ contents.setAttribute('class', '');
977
+ tocContainer.setAttribute('class', '');
978
+
979
+ window.name = "hideTOC";
980
+ }
981
+ else
982
+ {
983
+ this.setAttribute('class', 'open');
984
+ contents.setAttribute('class', 'isShowingTOC');
985
+ tocContainer.setAttribute('class', 'isShowingTOC');
986
+
987
+ window.name = "";
988
+ }
989
+ return false;
990
+ }
991
+
992
+ function toggleTOCEntryChildren(e)
993
+ {
994
+ e.stopPropagation();
995
+ var currentClass = this.getAttribute('class');
996
+ if (currentClass == 'children') {
997
+ this.setAttribute('class', 'children open');
998
+ }
999
+ else if (currentClass == 'children open') {
1000
+ this.setAttribute('class', 'children');
1001
+ }
1002
+ return false;
1003
+ }
1004
+
1005
+ function tocEntryClick(e)
1006
+ {
1007
+ e.stopPropagation();
1008
+ return true;
1009
+ }
1010
+
1011
+ function init()
1012
+ {
1013
+ var selectElement = document.getElementById('jumpTo');
1014
+ selectElement.addEventListener('change', jumpToChange, false);
1015
+
1016
+ var tocButton = document.getElementById('table_of_contents');
1017
+ tocButton.addEventListener('click', toggleTOC, false);
1018
+
1019
+ var taskTreeItem = document.getElementById('task_treeitem');
1020
+ if (taskTreeItem.getElementsByTagName('li').length > 0)
1021
+ {
1022
+ taskTreeItem.setAttribute('class', 'children');
1023
+ taskTreeItem.firstChild.setAttribute('class', 'disclosure');
1024
+ }
1025
+
1026
+ var tocList = document.getElementById('toc');
1027
+
1028
+ var tocEntries = tocList.getElementsByTagName('li');
1029
+ for (var i = 0; i < tocEntries.length; i++) {
1030
+ tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
1031
+ }
1032
+
1033
+ var tocLinks = tocList.getElementsByTagName('a');
1034
+ for (var i = 0; i < tocLinks.length; i++) {
1035
+ tocLinks[i].addEventListener('click', tocEntryClick, false);
1036
+ }
1037
+
1038
+ if (window.name == "hideTOC") {
1039
+ toggleTOC.call(tocButton);
1040
+ }
1041
+ }
1042
+
1043
+ window.onload = init;
1044
+
1045
+ // If showing in Xcode, hide the TOC and Header
1046
+ if (navigator.userAgent.match(/xcode/i)) {
1047
+ document.getElementById("contents").className = "hideInXcode"
1048
+ document.getElementById("tocContainer").className = "hideInXcode"
1049
+ document.getElementById("top_header").className = "hideInXcode"
1050
+ }
1051
+
1052
+ </script>
1053
+ </body>
1054
+ </html>