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,713 @@
1
+ <!DOCTYPE HTML>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
5
+ <title>NSFNanoSortDescriptor 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">NSFNanoSortDescriptor 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/attribute">&nbsp;&nbsp;&nbsp;&nbsp;attribute</option>
44
+
45
+ <option value="//api/name/isAscending">&nbsp;&nbsp;&nbsp;&nbsp;isAscending</option>
46
+
47
+
48
+
49
+
50
+ <option value="class_methods">Class Methods</option>
51
+
52
+ <option value="//api/name/sortDescriptorWithAttribute:ascending:">&nbsp;&nbsp;&nbsp;&nbsp;+ sortDescriptorWithAttribute:ascending:</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/description">&nbsp;&nbsp;&nbsp;&nbsp;- description</option>
62
+
63
+ <option value="//api/name/initWithAttribute:ascending:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithAttribute:ascending:</option>
64
+
65
+
66
+
67
+ </select>
68
+ </li>
69
+ </ul>
70
+ </header>
71
+ <nav id="tocContainer" class="isShowingTOC">
72
+ <ul id="toc" role="tree">
73
+
74
+ <li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
75
+
76
+
77
+
78
+
79
+ <li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
80
+
81
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating and Initializing Expressions">Creating and Initializing Expressions</a></span></li>
82
+
83
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Miscellaneous">Miscellaneous</a></span></li>
84
+
85
+ </ul></li>
86
+
87
+
88
+
89
+
90
+
91
+ <li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
92
+
93
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/attribute">attribute</a></span></li>
94
+
95
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/isAscending">isAscending</a></span></li>
96
+
97
+ </ul></li>
98
+
99
+
100
+
101
+ <li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
102
+
103
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/sortDescriptorWithAttribute:ascending:">sortDescriptorWithAttribute:ascending:</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="#instance_methods">Instance Methods</a></span><ul>
110
+
111
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/JSONDescription">JSONDescription</a></span></li>
112
+
113
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/description">description</a></span></li>
114
+
115
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithAttribute:ascending:">initWithAttribute:ascending:</a></span></li>
116
+
117
+ </ul></li>
118
+
119
+
120
+ </ul>
121
+ </nav>
122
+ <article>
123
+ <div id="contents" class="isShowingTOC" role="main">
124
+ <a title="NSFNanoSortDescriptor Class Reference" name="top"></a>
125
+ <div class="main-navigation navigation-top">
126
+ <ul>
127
+ <li><a href="../index.html">Index</a></li>
128
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
129
+ </ul>
130
+ </div>
131
+ <div id="header">
132
+ <div class="section-header">
133
+ <h1 class="title title-header">NSFNanoSortDescriptor Class Reference</h1>
134
+ </div>
135
+ </div>
136
+ <div id="container">
137
+
138
+ <div class="section section-specification"><table cellspacing="0"><tbody>
139
+ <tr>
140
+ <td class="specification-title">Inherits from</td>
141
+ <td class="specification-value">NSObject</td>
142
+ </tr><tr>
143
+ <td class="specification-title">Declared in</td>
144
+ <td class="specification-value">NSFNanoSortDescriptor.h</td>
145
+ </tr>
146
+ </tbody></table></div>
147
+
148
+
149
+
150
+
151
+ <div class="section section-overview">
152
+ <a title="Overview" name="overview"></a>
153
+ <h2 class="subtitle subtitle-overview">Overview</h2>
154
+ <p>@class NSFNanoSortDescriptor
155
+ * A unit that describes a sort to be used in conjunction with a search operation.
156
+ * @details <b>Example:</b>
157
+ @code
158
+ // Instantiate a NanoStore and open it
159
+ <a href="../Classes/NSFNanoStore.html">NSFNanoStore</a> *nanoStore = [NSFNanoStore createAndOpenStoreWithType:NSFMemoryStoreType path:nil error:nil];
160
+ [nanoStore removeAllObjectsFromStoreAndReturnError:nil];</p>
161
+
162
+ <p><a href="../Classes/NSFNanoObject.html">NSFNanoObject</a> <em>obj1 = [<a href="../Classes/NSFNanoObject.html">NSFNanoObject</a> nanoObjectWithDictionary:[NSDictionary dictionaryWithObject:@&ldquo;Madrid&rdquo; forKey:@&ldquo;City&rdquo;]];
163
+ <a href="../Classes/NSFNanoObject.html">NSFNanoObject</a> </em>obj2 = [<a href="../Classes/NSFNanoObject.html">NSFNanoObject</a> nanoObjectWithDictionary:[NSDictionary dictionaryWithObject:@&ldquo;Barcelona&rdquo; forKey:@&ldquo;City&rdquo;]];
164
+ <a href="../Classes/NSFNanoObject.html">NSFNanoObject</a> <em>obj3 = [<a href="../Classes/NSFNanoObject.html">NSFNanoObject</a> nanoObjectWithDictionary:[NSDictionary dictionaryWithObject:@&ldquo;San Sebastian&rdquo; forKey:@&ldquo;City&rdquo;]];
165
+ <a href="../Classes/NSFNanoObject.html">NSFNanoObject</a> </em>obj4 = [<a href="../Classes/NSFNanoObject.html">NSFNanoObject</a> nanoObjectWithDictionary:[NSDictionary dictionaryWithObject:@&ldquo;Zaragoza&rdquo; forKey:@&ldquo;City&rdquo;]];
166
+ <a href="../Classes/NSFNanoObject.html">NSFNanoObject</a> *obj5 = [<a href="../Classes/NSFNanoObject.html">NSFNanoObject</a> nanoObjectWithDictionary:[NSDictionary dictionaryWithObject:@&ldquo;Tarragona&rdquo; forKey:@&ldquo;City&rdquo;]];</p>
167
+
168
+ <p>[nanoStore addObjectsFromArray:[NSArray arrayWithObjects:obj1, obj2, obj3, obj4, obj5, nil] error:nil];</p>
169
+
170
+ <p>// Prepare the sort descriptor
171
+ NSFNanoSortDescriptor *sortCities = [[NSFNanoSortDescriptor alloc]initWithAttribute:@&ldquo;City&rdquo; ascending:YES];</p>
172
+
173
+ <p>// Prepare the search
174
+ <a href="../Classes/NSFNanoSearch.html">NSFNanoSearch</a> *search = [NSFNanoSearch searchWithStore:nanoStore];
175
+ search.sort = [NSArray arrayWithObjects: sortCities, nil];</p>
176
+
177
+ <p>// Perform the search
178
+ NSArray *searchResults = [search searchObjectsWithReturnType:NSFReturnObjects error:nil];
179
+ STAssertTrue ([searchResults count] == 5, @&ldquo;Expected to find five objects.&rdquo;);
180
+ STAssertTrue ([[[[searchResults objectAtIndex:0]info]objectForKey:@&ldquo;City&rdquo;]isEqualToString:@&ldquo;Barcelona&rdquo;], @&ldquo;Expected to find Barcelona.&rdquo;);</p>
181
+
182
+ <p>for (<a href="../Classes/NSFNanoObject.html">NSFNanoObject</a> *object in searchResults) {
183
+ NSLog(@&ldquo;%@&rdquo;, [[object info]objectForKey:@&ldquo;City&rdquo;]);
184
+ }</p>
185
+
186
+ <p>// Cleanup
187
+ [sortCities release];</p>
188
+
189
+ <p>// Close the document store
190
+ [nanoStore closeWithError:nil];
191
+ @endcode</p>
192
+ </div>
193
+
194
+
195
+
196
+
197
+
198
+ <div class="section section-tasks">
199
+ <a title="Tasks" name="tasks"></a>
200
+ <h2 class="subtitle subtitle-tasks">Tasks</h2>
201
+
202
+
203
+
204
+ <h3 class="subsubtitle task-title">Other Methods</h3>
205
+
206
+ <ul class="task-list">
207
+ <li>
208
+ <span class="tooltip">
209
+ <code><a href="#//api/name/attribute">&nbsp;&nbsp;attribute</a></code>
210
+ <span class="tooltip"><ul>
211
+ <li>The property key to use when performing a comparison</li>
212
+ </ul>
213
+ </span>
214
+ </span>
215
+ <span class="task-item-suffix">property</span>
216
+
217
+ </li><li>
218
+ <span class="tooltip">
219
+ <code><a href="#//api/name/isAscending">&nbsp;&nbsp;isAscending</a></code>
220
+ <span class="tooltip"><ul>
221
+ <li>The property to indicate whether the comparison should be performed in ascending mode</li>
222
+ </ul>
223
+ </span>
224
+ </span>
225
+ <span class="task-item-suffix">property</span>
226
+
227
+ </li>
228
+ </ul>
229
+
230
+
231
+ <a title="Creating and Initializing Expressions" name="task_Creating and Initializing Expressions"></a>
232
+ <h3 class="subsubtitle task-title">Creating and Initializing Expressions</h3>
233
+
234
+ <ul class="task-list">
235
+ <li>
236
+ <span class="tooltip">
237
+ <code><a href="#//api/name/sortDescriptorWithAttribute:ascending:">+&nbsp;sortDescriptorWithAttribute:ascending:</a></code>
238
+ <span class="tooltip"><p>Creates and returns an sort descriptor with the specified key and ordering.</p></span>
239
+ </span>
240
+
241
+
242
+ </li><li>
243
+ <span class="tooltip">
244
+ <code><a href="#//api/name/initWithAttribute:ascending:">&ndash;&nbsp;initWithAttribute:ascending:</a></code>
245
+ <span class="tooltip"><p>Initializes a newly allocated sort descriptor with the specified key and ordering.</p></span>
246
+ </span>
247
+
248
+
249
+ </li>
250
+ </ul>
251
+
252
+
253
+ <a title="Miscellaneous" name="task_Miscellaneous"></a>
254
+ <h3 class="subsubtitle task-title">Miscellaneous</h3>
255
+
256
+ <ul class="task-list">
257
+ <li>
258
+ <span class="tooltip">
259
+ <code><a href="#//api/name/description">&ndash;&nbsp;description</a></code>
260
+ <span class="tooltip"><p>Returns a string representation of the sort.</p></span>
261
+ </span>
262
+
263
+
264
+ </li><li>
265
+ <span class="tooltip">
266
+ <code><a href="#//api/name/JSONDescription">&ndash;&nbsp;JSONDescription</a></code>
267
+ <span class="tooltip"><p>Returns a JSON representation of the sort.</p></span>
268
+ </span>
269
+
270
+
271
+ </li>
272
+ </ul>
273
+
274
+ </div>
275
+
276
+
277
+
278
+
279
+
280
+ <div class="section section-methods">
281
+ <a title="Properties" name="properties"></a>
282
+ <h2 class="subtitle subtitle-methods">Properties</h2>
283
+
284
+ <div class="section-method">
285
+ <a name="//api/name/attribute" title="attribute"></a>
286
+ <h3 class="subsubtitle method-title">attribute</h3>
287
+
288
+
289
+
290
+ <div class="method-subsection brief-description">
291
+ <ul>
292
+ <li>The property key to use when performing a comparison</li>
293
+ </ul>
294
+
295
+ </div>
296
+
297
+
298
+
299
+ <div class="method-subsection method-declaration"><code>@property (nonatomic, copy, readonly) NSString *attribute</code></div>
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+ <div class="method-subsection discussion-section">
310
+ <h4 class="method-subtitle">Discussion</h4>
311
+ <ul>
312
+ <li>The property key to use when performing a comparison</li>
313
+ </ul>
314
+
315
+ </div>
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+ <div class="method-subsection declared-in-section">
324
+ <h4 class="method-subtitle">Declared In</h4>
325
+ <code class="declared-in-ref">NSFNanoSortDescriptor.h</code><br />
326
+ </div>
327
+
328
+
329
+ </div>
330
+
331
+ <div class="section-method">
332
+ <a name="//api/name/isAscending" title="isAscending"></a>
333
+ <h3 class="subsubtitle method-title">isAscending</h3>
334
+
335
+
336
+
337
+ <div class="method-subsection brief-description">
338
+ <ul>
339
+ <li>The property to indicate whether the comparison should be performed in ascending mode</li>
340
+ </ul>
341
+
342
+ </div>
343
+
344
+
345
+
346
+ <div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) BOOL isAscending</code></div>
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+ <div class="method-subsection discussion-section">
357
+ <h4 class="method-subtitle">Discussion</h4>
358
+ <ul>
359
+ <li>The property to indicate whether the comparison should be performed in ascending mode</li>
360
+ </ul>
361
+
362
+ </div>
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+ <div class="method-subsection declared-in-section">
371
+ <h4 class="method-subtitle">Declared In</h4>
372
+ <code class="declared-in-ref">NSFNanoSortDescriptor.h</code><br />
373
+ </div>
374
+
375
+
376
+ </div>
377
+
378
+ </div>
379
+
380
+
381
+
382
+ <div class="section section-methods">
383
+ <a title="Class Methods" name="class_methods"></a>
384
+ <h2 class="subtitle subtitle-methods">Class Methods</h2>
385
+
386
+ <div class="section-method">
387
+ <a name="//api/name/sortDescriptorWithAttribute:ascending:" title="sortDescriptorWithAttribute:ascending:"></a>
388
+ <h3 class="subsubtitle method-title">sortDescriptorWithAttribute:ascending:</h3>
389
+
390
+
391
+
392
+ <div class="method-subsection brief-description">
393
+ <p>Creates and returns an sort descriptor with the specified key and ordering.</p>
394
+ </div>
395
+
396
+
397
+
398
+ <div class="method-subsection method-declaration"><code>+ (NSFNanoSortDescriptor *)sortDescriptorWithAttribute:(NSString *)<em>theAttribute</em> ascending:(BOOL)<em>ascending</em></code></div>
399
+
400
+
401
+
402
+ <div class="method-subsection arguments-section parameters">
403
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
404
+
405
+ <dl class="argument-def parameter-def">
406
+ <dt><em>ascending</em></dt>
407
+ <dd><p>YES if the sort descriptor specifies sorting in ascending order, otherwise NO.</p></dd>
408
+ </dl>
409
+
410
+ <dl class="argument-def parameter-def">
411
+ <dt><em>theKey</em></dt>
412
+ <dd><p>the property key to use when performing a comparison. Must not be nil or empty.</p></dd>
413
+ </dl>
414
+
415
+ </div>
416
+
417
+
418
+
419
+ <div class="method-subsection return">
420
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
421
+ <p>A sort descriptor initialized with the specified key and ordering.</p>
422
+ </div>
423
+
424
+
425
+
426
+
427
+
428
+ <div class="method-subsection discussion-section">
429
+ <h4 class="method-subtitle">Discussion</h4>
430
+ <p>Creates and returns an sort descriptor with the specified key and ordering.</p><div class="warning"><p><strong>Warning:</strong> The parameter theKey must not be nil.
431
+ @throws NSFUnexpectedParameterException is thrown if the key is nil.</p></div>
432
+ </div>
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+ <div class="method-subsection declared-in-section">
441
+ <h4 class="method-subtitle">Declared In</h4>
442
+ <code class="declared-in-ref">NSFNanoSortDescriptor.h</code><br />
443
+ </div>
444
+
445
+
446
+ </div>
447
+
448
+ </div>
449
+
450
+
451
+
452
+ <div class="section section-methods">
453
+ <a title="Instance Methods" name="instance_methods"></a>
454
+ <h2 class="subtitle subtitle-methods">Instance Methods</h2>
455
+
456
+ <div class="section-method">
457
+ <a name="//api/name/JSONDescription" title="JSONDescription"></a>
458
+ <h3 class="subsubtitle method-title">JSONDescription</h3>
459
+
460
+
461
+
462
+ <div class="method-subsection brief-description">
463
+ <p>Returns a JSON representation of the sort.</p>
464
+ </div>
465
+
466
+
467
+
468
+ <div class="method-subsection method-declaration"><code>- (NSString *)JSONDescription</code></div>
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+ <div class="method-subsection discussion-section">
479
+ <h4 class="method-subtitle">Discussion</h4>
480
+ <p>Returns a JSON representation of the sort.</p><div class="note"><p><strong>Note:</strong> Check properties <a href="#//api/name/attribute">attribute</a> and <a href="#//api/name/isAscending">isAscending</a> to find out the current state of the sort.</p></div>
481
+ </div>
482
+
483
+
484
+
485
+
486
+
487
+
488
+
489
+ <div class="method-subsection declared-in-section">
490
+ <h4 class="method-subtitle">Declared In</h4>
491
+ <code class="declared-in-ref">NSFNanoSortDescriptor.h</code><br />
492
+ </div>
493
+
494
+
495
+ </div>
496
+
497
+ <div class="section-method">
498
+ <a name="//api/name/description" title="description"></a>
499
+ <h3 class="subsubtitle method-title">description</h3>
500
+
501
+
502
+
503
+ <div class="method-subsection brief-description">
504
+ <p>Returns a string representation of the sort.</p>
505
+ </div>
506
+
507
+
508
+
509
+ <div class="method-subsection method-declaration"><code>- (NSString *)description</code></div>
510
+
511
+
512
+
513
+
514
+
515
+
516
+
517
+
518
+
519
+ <div class="method-subsection discussion-section">
520
+ <h4 class="method-subtitle">Discussion</h4>
521
+ <p>Returns a string representation of the sort.</p><div class="note"><p><strong>Note:</strong> Check properties <a href="#//api/name/attribute">attribute</a> and <a href="#//api/name/isAscending">isAscending</a> to find out the current state of the sort.</p></div>
522
+ </div>
523
+
524
+
525
+
526
+
527
+
528
+
529
+
530
+ <div class="method-subsection declared-in-section">
531
+ <h4 class="method-subtitle">Declared In</h4>
532
+ <code class="declared-in-ref">NSFNanoSortDescriptor.h</code><br />
533
+ </div>
534
+
535
+
536
+ </div>
537
+
538
+ <div class="section-method">
539
+ <a name="//api/name/initWithAttribute:ascending:" title="initWithAttribute:ascending:"></a>
540
+ <h3 class="subsubtitle method-title">initWithAttribute:ascending:</h3>
541
+
542
+
543
+
544
+ <div class="method-subsection brief-description">
545
+ <p>Initializes a newly allocated sort descriptor with the specified key and ordering.</p>
546
+ </div>
547
+
548
+
549
+
550
+ <div class="method-subsection method-declaration"><code>- (id)initWithAttribute:(NSString *)<em>theAttribute</em> ascending:(BOOL)<em>ascending</em></code></div>
551
+
552
+
553
+
554
+ <div class="method-subsection arguments-section parameters">
555
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
556
+
557
+ <dl class="argument-def parameter-def">
558
+ <dt><em>ascending</em></dt>
559
+ <dd><p>YES if the sort descriptor specifies sorting in ascending order, otherwise NO.</p></dd>
560
+ </dl>
561
+
562
+ <dl class="argument-def parameter-def">
563
+ <dt><em>theKey</em></dt>
564
+ <dd><p>the property key to use when performing a comparison. Must not be nil or empty.</p></dd>
565
+ </dl>
566
+
567
+ </div>
568
+
569
+
570
+
571
+ <div class="method-subsection return">
572
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
573
+ <p>A sort descriptor initialized with the specified key and ordering.</p>
574
+ </div>
575
+
576
+
577
+
578
+
579
+
580
+ <div class="method-subsection discussion-section">
581
+ <h4 class="method-subtitle">Discussion</h4>
582
+ <p>Initializes a newly allocated sort descriptor with the specified key and ordering.</p><div class="warning"><p><strong>Warning:</strong> The parameter theKey must not be nil.
583
+ @throws NSFUnexpectedParameterException is thrown if the key is nil.</p></div>
584
+ </div>
585
+
586
+
587
+
588
+
589
+
590
+
591
+
592
+ <div class="method-subsection declared-in-section">
593
+ <h4 class="method-subtitle">Declared In</h4>
594
+ <code class="declared-in-ref">NSFNanoSortDescriptor.h</code><br />
595
+ </div>
596
+
597
+
598
+ </div>
599
+
600
+ </div>
601
+
602
+
603
+ </div>
604
+ <div class="main-navigation navigation-bottom">
605
+ <ul>
606
+ <li><a href="../index.html">Index</a></li>
607
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
608
+ </ul>
609
+ </div>
610
+ <div id="footer">
611
+ <hr />
612
+ <div class="footer-copyright">
613
+ <p><span class="copyright">&copy; 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-01-22)</span><br />
614
+
615
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
616
+
617
+ </div>
618
+ </div>
619
+ </div>
620
+ </article>
621
+ <script type="text/javascript">
622
+ function jumpToChange()
623
+ {
624
+ window.location.hash = this.options[this.selectedIndex].value;
625
+ }
626
+
627
+ function toggleTOC()
628
+ {
629
+ var contents = document.getElementById('contents');
630
+ var tocContainer = document.getElementById('tocContainer');
631
+
632
+ if (this.getAttribute('class') == 'open')
633
+ {
634
+ this.setAttribute('class', '');
635
+ contents.setAttribute('class', '');
636
+ tocContainer.setAttribute('class', '');
637
+
638
+ window.name = "hideTOC";
639
+ }
640
+ else
641
+ {
642
+ this.setAttribute('class', 'open');
643
+ contents.setAttribute('class', 'isShowingTOC');
644
+ tocContainer.setAttribute('class', 'isShowingTOC');
645
+
646
+ window.name = "";
647
+ }
648
+ return false;
649
+ }
650
+
651
+ function toggleTOCEntryChildren(e)
652
+ {
653
+ e.stopPropagation();
654
+ var currentClass = this.getAttribute('class');
655
+ if (currentClass == 'children') {
656
+ this.setAttribute('class', 'children open');
657
+ }
658
+ else if (currentClass == 'children open') {
659
+ this.setAttribute('class', 'children');
660
+ }
661
+ return false;
662
+ }
663
+
664
+ function tocEntryClick(e)
665
+ {
666
+ e.stopPropagation();
667
+ return true;
668
+ }
669
+
670
+ function init()
671
+ {
672
+ var selectElement = document.getElementById('jumpTo');
673
+ selectElement.addEventListener('change', jumpToChange, false);
674
+
675
+ var tocButton = document.getElementById('table_of_contents');
676
+ tocButton.addEventListener('click', toggleTOC, false);
677
+
678
+ var taskTreeItem = document.getElementById('task_treeitem');
679
+ if (taskTreeItem.getElementsByTagName('li').length > 0)
680
+ {
681
+ taskTreeItem.setAttribute('class', 'children');
682
+ taskTreeItem.firstChild.setAttribute('class', 'disclosure');
683
+ }
684
+
685
+ var tocList = document.getElementById('toc');
686
+
687
+ var tocEntries = tocList.getElementsByTagName('li');
688
+ for (var i = 0; i < tocEntries.length; i++) {
689
+ tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
690
+ }
691
+
692
+ var tocLinks = tocList.getElementsByTagName('a');
693
+ for (var i = 0; i < tocLinks.length; i++) {
694
+ tocLinks[i].addEventListener('click', tocEntryClick, false);
695
+ }
696
+
697
+ if (window.name == "hideTOC") {
698
+ toggleTOC.call(tocButton);
699
+ }
700
+ }
701
+
702
+ window.onload = init;
703
+
704
+ // If showing in Xcode, hide the TOC and Header
705
+ if (navigator.userAgent.match(/xcode/i)) {
706
+ document.getElementById("contents").className = "hideInXcode"
707
+ document.getElementById("tocContainer").className = "hideInXcode"
708
+ document.getElementById("top_header").className = "hideInXcode"
709
+ }
710
+
711
+ </script>
712
+ </body>
713
+ </html>