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,92 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <DocSetNodes version="1.0">
3
+ <TOC>
4
+ <Node type="folder">
5
+ <Name>NanoStore 2.5.7</Name>
6
+ <Path>index.html</Path>
7
+ <Subnodes>
8
+
9
+
10
+ <Node type="folder">
11
+ <Name>Classes</Name>
12
+ <Path>index.html</Path>
13
+ <Subnodes>
14
+ <NodeRef refid="1"/>
15
+ <NodeRef refid="2"/>
16
+ <NodeRef refid="3"/>
17
+ <NodeRef refid="4"/>
18
+ <NodeRef refid="5"/>
19
+ <NodeRef refid="6"/>
20
+ <NodeRef refid="7"/>
21
+ <NodeRef refid="8"/>
22
+ <NodeRef refid="9"/>
23
+ <NodeRef refid="10"/>
24
+
25
+ </Subnodes>
26
+ </Node>
27
+
28
+
29
+
30
+ <Node type="folder">
31
+ <Name>Protocols</Name>
32
+ <Path>index.html</Path>
33
+ <Subnodes>
34
+ <NodeRef refid="11"/>
35
+
36
+ </Subnodes>
37
+ </Node>
38
+
39
+ </Subnodes>
40
+ </Node>
41
+ </TOC>
42
+ <Library>
43
+
44
+ <Node id="1">
45
+ <Name>NSFNanoBag</Name>
46
+ <Path>Classes/NSFNanoBag.html</Path>
47
+ </Node>
48
+ <Node id="2">
49
+ <Name>NSFNanoEngine</Name>
50
+ <Path>Classes/NSFNanoEngine.html</Path>
51
+ </Node>
52
+ <Node id="3">
53
+ <Name>NSFNanoExpression</Name>
54
+ <Path>Classes/NSFNanoExpression.html</Path>
55
+ </Node>
56
+ <Node id="4">
57
+ <Name>NSFNanoObject</Name>
58
+ <Path>Classes/NSFNanoObject.html</Path>
59
+ </Node>
60
+ <Node id="5">
61
+ <Name>NSFNanoPredicate</Name>
62
+ <Path>Classes/NSFNanoPredicate.html</Path>
63
+ </Node>
64
+ <Node id="6">
65
+ <Name>NSFNanoResult</Name>
66
+ <Path>Classes/NSFNanoResult.html</Path>
67
+ </Node>
68
+ <Node id="7">
69
+ <Name>NSFNanoSearch</Name>
70
+ <Path>Classes/NSFNanoSearch.html</Path>
71
+ </Node>
72
+ <Node id="8">
73
+ <Name>NSFNanoSortDescriptor</Name>
74
+ <Path>Classes/NSFNanoSortDescriptor.html</Path>
75
+ </Node>
76
+ <Node id="9">
77
+ <Name>NSFNanoStore</Name>
78
+ <Path>Classes/NSFNanoStore.html</Path>
79
+ </Node>
80
+ <Node id="10">
81
+ <Name>NSFOrderedDictionary</Name>
82
+ <Path>Classes/NSFOrderedDictionary.html</Path>
83
+ </Node>
84
+
85
+
86
+ <Node id="11">
87
+ <Name>NSFNanoObjectProtocol</Name>
88
+ <Path>Protocols/NSFNanoObjectProtocol.html</Path>
89
+ </Node>
90
+
91
+ </Library>
92
+ </DocSetNodes>
@@ -0,0 +1,596 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Tokens version="1.0">
3
+ <File path="Classes/NSFNanoBag.html">
4
+
5
+ <Token>
6
+ <TokenIdentifier>//apple_ref/occ/cl/NSFNanoBag</TokenIdentifier>
7
+ <Abstract type="html">@class NSFNanoBag
8
+ * A bag is a loose collection of objects stored in a document store.
9
+ *
10
+ * @note
11
+ * The objects must conform to the \link NSFNanoObjectProtocol::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink. For your convenience, NanoStore provides you with NSFNanoObject, which is the standard
12
+ * way of storing and retrieving objects from/to a bag.
13
+ *
14
+ * @par
15
+ * It&apos;s more efficient to make your storage objects \link NSFNanoObjectProtocol::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant, thus eliminating the need to convert your objects to/from
16
+ * objects of type NSFNanoObject.
17
+ *
18
+ * @details &lt;b&gt;Example:&lt;/b&gt;
19
+ @code
20
+ // Instantiate a NanoStore and open it
21
+ NSFNanoStore *nanoStore = [NSFNanoStore createAndOpenStoreWithType:NSFMemoryStoreType path:nil error:nil];
22
+ [nanoStore removeAllObjectsFromStoreAndReturnError:nil];</Abstract>
23
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
24
+
25
+ <NodeRef refid="1"/>
26
+ </Token>
27
+
28
+
29
+ <Token>
30
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/setStore:</TokenIdentifier>
31
+ <Abstract type="html">* The store where the bag is located.</Abstract>
32
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
33
+
34
+ <Declaration>@property (nonatomic, weak, readonly) NSFNanoStore *store</Declaration>
35
+
36
+
37
+ <Anchor>//api/name/store</Anchor>
38
+ </Token>
39
+
40
+ <Token>
41
+ <TokenIdentifier>//apple_ref/occ/instp/NSFNanoBag/store</TokenIdentifier>
42
+ <Abstract type="html">* The store where the bag is located.</Abstract>
43
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
44
+
45
+ <Declaration>@property (nonatomic, weak, readonly) NSFNanoStore *store</Declaration>
46
+
47
+
48
+ <Anchor>//api/name/store</Anchor>
49
+ </Token>
50
+
51
+ <Token>
52
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/setName:</TokenIdentifier>
53
+ <Abstract type="html">* The name of the bag.</Abstract>
54
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
55
+
56
+ <Declaration>@property (nonatomic, copy, readwrite) NSString *name</Declaration>
57
+
58
+
59
+ <Anchor>//api/name/name</Anchor>
60
+ </Token>
61
+
62
+ <Token>
63
+ <TokenIdentifier>//apple_ref/occ/instp/NSFNanoBag/name</TokenIdentifier>
64
+ <Abstract type="html">* The name of the bag.</Abstract>
65
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
66
+
67
+ <Declaration>@property (nonatomic, copy, readwrite) NSString *name</Declaration>
68
+
69
+
70
+ <Anchor>//api/name/name</Anchor>
71
+ </Token>
72
+
73
+ <Token>
74
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/setKey:</TokenIdentifier>
75
+ <Abstract type="html">* The UUID of the bag.</Abstract>
76
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
77
+
78
+ <Declaration>@property (nonatomic, copy, readonly) NSString *key</Declaration>
79
+
80
+
81
+ <Anchor>//api/name/key</Anchor>
82
+ </Token>
83
+
84
+ <Token>
85
+ <TokenIdentifier>//apple_ref/occ/instp/NSFNanoBag/key</TokenIdentifier>
86
+ <Abstract type="html">* The UUID of the bag.</Abstract>
87
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
88
+
89
+ <Declaration>@property (nonatomic, copy, readonly) NSString *key</Declaration>
90
+
91
+
92
+ <Anchor>//api/name/key</Anchor>
93
+ </Token>
94
+
95
+ <Token>
96
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/setSavedObjects:</TokenIdentifier>
97
+ <Abstract type="html">* Dictionary of NSString (key and idNSFNanoObjectProtocol (value).</Abstract>
98
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
99
+
100
+ <Declaration>@property (nonatomic, readonly) NSDictionary *savedObjects</Declaration>
101
+
102
+
103
+ <Anchor>//api/name/savedObjects</Anchor>
104
+ </Token>
105
+
106
+ <Token>
107
+ <TokenIdentifier>//apple_ref/occ/instp/NSFNanoBag/savedObjects</TokenIdentifier>
108
+ <Abstract type="html">* Dictionary of NSString (key and idNSFNanoObjectProtocol (value).</Abstract>
109
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
110
+
111
+ <Declaration>@property (nonatomic, readonly) NSDictionary *savedObjects</Declaration>
112
+
113
+
114
+ <Anchor>//api/name/savedObjects</Anchor>
115
+ </Token>
116
+
117
+ <Token>
118
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/setUnsavedObjects:</TokenIdentifier>
119
+ <Abstract type="html">* Dictionary of NSString (key and idNSFNanoObjectProtocol (value).</Abstract>
120
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
121
+
122
+ <Declaration>@property (nonatomic, readonly) NSDictionary *unsavedObjects</Declaration>
123
+
124
+
125
+ <Anchor>//api/name/unsavedObjects</Anchor>
126
+ </Token>
127
+
128
+ <Token>
129
+ <TokenIdentifier>//apple_ref/occ/instp/NSFNanoBag/unsavedObjects</TokenIdentifier>
130
+ <Abstract type="html">* Dictionary of NSString (key and idNSFNanoObjectProtocol (value).</Abstract>
131
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
132
+
133
+ <Declaration>@property (nonatomic, readonly) NSDictionary *unsavedObjects</Declaration>
134
+
135
+
136
+ <Anchor>//api/name/unsavedObjects</Anchor>
137
+ </Token>
138
+
139
+ <Token>
140
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/setRemovedObjects:</TokenIdentifier>
141
+ <Abstract type="html">* Dictionary of NSString (key and idNSFNanoObjectProtocol (value).</Abstract>
142
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
143
+
144
+ <Declaration>@property (nonatomic, readonly) NSDictionary *removedObjects</Declaration>
145
+
146
+
147
+ <Anchor>//api/name/removedObjects</Anchor>
148
+ </Token>
149
+
150
+ <Token>
151
+ <TokenIdentifier>//apple_ref/occ/instp/NSFNanoBag/removedObjects</TokenIdentifier>
152
+ <Abstract type="html">* Dictionary of NSString (key and idNSFNanoObjectProtocol (value).</Abstract>
153
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
154
+
155
+ <Declaration>@property (nonatomic, readonly) NSDictionary *removedObjects</Declaration>
156
+
157
+
158
+ <Anchor>//api/name/removedObjects</Anchor>
159
+ </Token>
160
+
161
+ <Token>
162
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/setHasUnsavedChanges:</TokenIdentifier>
163
+ <Abstract type="html">* To determine whether the bag has uncommited changes.</Abstract>
164
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
165
+
166
+ <Declaration>@property (nonatomic, assign, readonly) BOOL hasUnsavedChanges</Declaration>
167
+
168
+
169
+ <Anchor>//api/name/hasUnsavedChanges</Anchor>
170
+ </Token>
171
+
172
+ <Token>
173
+ <TokenIdentifier>//apple_ref/occ/instp/NSFNanoBag/hasUnsavedChanges</TokenIdentifier>
174
+ <Abstract type="html">* To determine whether the bag has uncommited changes.</Abstract>
175
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
176
+
177
+ <Declaration>@property (nonatomic, assign, readonly) BOOL hasUnsavedChanges</Declaration>
178
+
179
+
180
+ <Anchor>//api/name/hasUnsavedChanges</Anchor>
181
+ </Token>
182
+
183
+ <Token>
184
+ <TokenIdentifier>//apple_ref/occ/clm/NSFNanoBag/bag</TokenIdentifier>
185
+ <Abstract type="html">Creates and returns an empty bag.</Abstract>
186
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
187
+
188
+ <Declaration>+ (NSFNanoBag *)bag</Declaration>
189
+
190
+ <ReturnValue><Abstract type="html">An empty bag upon success, nil otherwise.</Abstract></ReturnValue>
191
+ <Anchor>//api/name/bag</Anchor>
192
+ </Token>
193
+
194
+ <Token>
195
+ <TokenIdentifier>//apple_ref/occ/clm/NSFNanoBag/bagWithObjects:</TokenIdentifier>
196
+ <Abstract type="html">Creates and returns a bag adding to it the objects contained in the given array.</Abstract>
197
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
198
+
199
+ <Declaration>+ (NSFNanoBag *)bagWithObjects:(NSArray *)theObjects</Declaration>
200
+ <Parameters>
201
+ <Parameter>
202
+ <Name>theObjects</Name>
203
+ <Abstract type="html">an array of objects conforming to the \link NSFNanoObjectProtocol::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink.</Abstract>
204
+ </Parameter>
205
+ </Parameters>
206
+ <ReturnValue><Abstract type="html">A bag only containing the objects with conform to the \link NSFNanoObjectProtocol::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink upon success, nil otherwise.
207
+ @throws NSFUnexpectedParameterException is thrown if theObjects is nil.</Abstract></ReturnValue>
208
+ <Anchor>//api/name/bagWithObjects:</Anchor>
209
+ </Token>
210
+
211
+ <Token>
212
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/initBagWithName:andObjects:</TokenIdentifier>
213
+ <Abstract type="html">Initializes a newly allocated bag with the specified name adding to it the objects contained in the given array.</Abstract>
214
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
215
+
216
+ <RelatedTokens>
217
+ <TokenIdentifier>//apple_ref/occ/clm/NSFNanoBag/bagWithObjects:</TokenIdentifier>
218
+
219
+ </RelatedTokens>
220
+
221
+ <Declaration>- (id)initBagWithName:(NSString *)theName andObjects:(NSArray *)someObjects</Declaration>
222
+ <Parameters>
223
+ <Parameter>
224
+ <Name>theName</Name>
225
+ <Abstract type="html">the name of the bag. Can be nil.</Abstract>
226
+ </Parameter><Parameter>
227
+ <Name>theObjects</Name>
228
+ <Abstract type="html">is a required array of objects conforming to the \link NSFNanoObjectProtocol::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink.</Abstract>
229
+ </Parameter>
230
+ </Parameters>
231
+ <ReturnValue><Abstract type="html">A bag only containing the objects with conform to the \link NSFNanoObjectProtocol::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink upon success, nil otherwise.
232
+ @throws NSFUnexpectedParameterException is thrown if theObjects is nil.</Abstract></ReturnValue>
233
+ <Anchor>//api/name/initBagWithName:andObjects:</Anchor>
234
+ </Token>
235
+
236
+ <Token>
237
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/addObject:error:</TokenIdentifier>
238
+ <Abstract type="html">Adds an \link NSFNanoObjectProtocol::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant object to the bag.</Abstract>
239
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
240
+
241
+ <RelatedTokens>
242
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/addObjectsFromArray:error:</TokenIdentifier>
243
+
244
+ </RelatedTokens>
245
+
246
+ <Declaration>- (BOOL)addObject:(id&lt;NSFNanoObjectProtocol&gt;)theObject error:(out NSError **)outError</Declaration>
247
+ <Parameters>
248
+ <Parameter>
249
+ <Name>theObject</Name>
250
+ <Abstract type="html">is added to the bag.</Abstract>
251
+ </Parameter><Parameter>
252
+ <Name>outError</Name>
253
+ <Abstract type="html">is used if an error occurs. May be NULL.</Abstract>
254
+ </Parameter>
255
+ </Parameters>
256
+ <ReturnValue><Abstract type="html">YES upon success, NO otherwise.</Abstract></ReturnValue>
257
+ <Anchor>//api/name/addObject:error:</Anchor>
258
+ </Token>
259
+
260
+ <Token>
261
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/addObjectsFromArray:error:</TokenIdentifier>
262
+ <Abstract type="html">Adds a series of \link NSFNanoObjectProtocol::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant objects to the bag.</Abstract>
263
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
264
+
265
+ <RelatedTokens>
266
+ <TokenIdentifier>//apple_ref/occ/intf/NSFNanoObjectProtocol</TokenIdentifier>
267
+
268
+ </RelatedTokens>
269
+
270
+ <Declaration>- (BOOL)addObjectsFromArray:(NSArray *)theObjects error:(out NSError **)outError</Declaration>
271
+ <Parameters>
272
+ <Parameter>
273
+ <Name>theObjects</Name>
274
+ <Abstract type="html">is an array of objects to be added to the bag. The objects must be \link NSFNanoObjectProtocol::initNanoObjectFromDictionaryRepresentation:forKey:store: NSFNanoObjectProtocol\endlink-compliant.</Abstract>
275
+ </Parameter><Parameter>
276
+ <Name>outError</Name>
277
+ <Abstract type="html">is used if an error occurs. May be NULL.</Abstract>
278
+ </Parameter>
279
+ </Parameters>
280
+ <ReturnValue><Abstract type="html">YES upon success, NO otherwise.</Abstract></ReturnValue>
281
+ <Anchor>//api/name/addObjectsFromArray:error:</Anchor>
282
+ </Token>
283
+
284
+ <Token>
285
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeObject:</TokenIdentifier>
286
+ <Abstract type="html">Removes the specified object from the bag.</Abstract>
287
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
288
+
289
+ <RelatedTokens>
290
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeObjectsInArray:</TokenIdentifier>
291
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeObjectWithKey:</TokenIdentifier>
292
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeObjectsWithKeysInArray:</TokenIdentifier>
293
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeAllObjects</TokenIdentifier>
294
+
295
+ </RelatedTokens>
296
+
297
+ <Declaration>- (void)removeObject:(id&lt;NSFNanoObjectProtocol&gt;)theObject</Declaration>
298
+ <Parameters>
299
+ <Parameter>
300
+ <Name>theObject</Name>
301
+ <Abstract type="html">the object to be removed from the bag.</Abstract>
302
+ </Parameter>
303
+ </Parameters>
304
+
305
+ <Anchor>//api/name/removeObject:</Anchor>
306
+ </Token>
307
+
308
+ <Token>
309
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeAllObjects</TokenIdentifier>
310
+ <Abstract type="html">Empties the bag of all its elements.</Abstract>
311
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
312
+
313
+ <RelatedTokens>
314
+ <TokenIdentifier>//apple_ref/occ/intf/NSFNanoObjectProtocol</TokenIdentifier>
315
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeObjectsInArray:</TokenIdentifier>
316
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeObjectWithKey:</TokenIdentifier>
317
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeObjectsWithKeysInArray:</TokenIdentifier>
318
+
319
+ </RelatedTokens>
320
+
321
+ <Declaration>- (void)removeAllObjects</Declaration>
322
+
323
+
324
+ <Anchor>//api/name/removeAllObjects</Anchor>
325
+ </Token>
326
+
327
+ <Token>
328
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeObjectsInArray:</TokenIdentifier>
329
+ <Abstract type="html">Removes the list of objects from the bag.</Abstract>
330
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
331
+
332
+ <RelatedTokens>
333
+ <TokenIdentifier>//apple_ref/occ/intf/NSFNanoObjectProtocol</TokenIdentifier>
334
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeObjectWithKey:</TokenIdentifier>
335
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeObjectsWithKeysInArray:</TokenIdentifier>
336
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeAllObjects</TokenIdentifier>
337
+
338
+ </RelatedTokens>
339
+
340
+ <Declaration>- (void)removeObjectsInArray:(NSArray *)theObjects</Declaration>
341
+ <Parameters>
342
+ <Parameter>
343
+ <Name>theObjects</Name>
344
+ <Abstract type="html">the list of objects to be removed from the bag.</Abstract>
345
+ </Parameter>
346
+ </Parameters>
347
+
348
+ <Anchor>//api/name/removeObjectsInArray:</Anchor>
349
+ </Token>
350
+
351
+ <Token>
352
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeObjectWithKey:</TokenIdentifier>
353
+ <Abstract type="html">Removes the object with a given key from the bag.</Abstract>
354
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
355
+
356
+ <RelatedTokens>
357
+ <TokenIdentifier>//apple_ref/occ/intf/NSFNanoObjectProtocol</TokenIdentifier>
358
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeObjectsInArray:</TokenIdentifier>
359
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeObjectsWithKeysInArray:</TokenIdentifier>
360
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeAllObjects</TokenIdentifier>
361
+
362
+ </RelatedTokens>
363
+
364
+ <Declaration>- (void)removeObjectWithKey:(NSString *)theObjectKey</Declaration>
365
+ <Parameters>
366
+ <Parameter>
367
+ <Name>theObjectKey</Name>
368
+ <Abstract type="html">the key of the object to be removed from the bag.</Abstract>
369
+ </Parameter>
370
+ </Parameters>
371
+
372
+ <Anchor>//api/name/removeObjectWithKey:</Anchor>
373
+ </Token>
374
+
375
+ <Token>
376
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeObjectsWithKeysInArray:</TokenIdentifier>
377
+ <Abstract type="html">Removes from the bag the objects specified by elements in a given array.</Abstract>
378
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
379
+
380
+ <RelatedTokens>
381
+ <TokenIdentifier>//apple_ref/occ/intf/NSFNanoObjectProtocol</TokenIdentifier>
382
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeObjectsInArray:</TokenIdentifier>
383
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeObjectWithKey:</TokenIdentifier>
384
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/removeAllObjects</TokenIdentifier>
385
+
386
+ </RelatedTokens>
387
+
388
+ <Declaration>- (void)removeObjectsWithKeysInArray:(NSArray *)theKeys</Declaration>
389
+ <Parameters>
390
+ <Parameter>
391
+ <Name>theKeys</Name>
392
+ <Abstract type="html">an array of objects specifying the keys to remove from the bag</Abstract>
393
+ </Parameter>
394
+ </Parameters>
395
+
396
+ <Anchor>//api/name/removeObjectsWithKeysInArray:</Anchor>
397
+ </Token>
398
+
399
+ <Token>
400
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/saveAndReturnError:</TokenIdentifier>
401
+ <Abstract type="html">Saves the bag and its contents. Also, saves all the changes made since the last save.</Abstract>
402
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
403
+
404
+ <RelatedTokens>
405
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/reloadBagWithError:</TokenIdentifier>
406
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/undoChangesWithError:</TokenIdentifier>
407
+
408
+ </RelatedTokens>
409
+
410
+ <Declaration>- (BOOL)saveAndReturnError:(out NSError **)outError</Declaration>
411
+ <Parameters>
412
+ <Parameter>
413
+ <Name>outError</Name>
414
+ <Abstract type="html">is used if an error occurs. May be NULL.</Abstract>
415
+ </Parameter>
416
+ </Parameters>
417
+ <ReturnValue><Abstract type="html">YES upon success, NO otherwise.</Abstract></ReturnValue>
418
+ <Anchor>//api/name/saveAndReturnError:</Anchor>
419
+ </Token>
420
+
421
+ <Token>
422
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/reloadBagWithError:</TokenIdentifier>
423
+ <Abstract type="html">Refreshes the bag to match the contents stored in the document store. The unsaved contents are preserved.</Abstract>
424
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
425
+
426
+ <RelatedTokens>
427
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/saveAndReturnError:</TokenIdentifier>
428
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/undoChangesWithError:</TokenIdentifier>
429
+
430
+ </RelatedTokens>
431
+
432
+ <Declaration>- (BOOL)reloadBagWithError:(out NSError **)outError</Declaration>
433
+ <Parameters>
434
+ <Parameter>
435
+ <Name>outError</Name>
436
+ <Abstract type="html">is used if an error occurs. May be NULL.</Abstract>
437
+ </Parameter>
438
+ </Parameters>
439
+ <ReturnValue><Abstract type="html">YES upon success, NO otherwise.</Abstract></ReturnValue>
440
+ <Anchor>//api/name/reloadBagWithError:</Anchor>
441
+ </Token>
442
+
443
+ <Token>
444
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/undoChangesWithError:</TokenIdentifier>
445
+ <Abstract type="html">Discards the changes made in the bag.</Abstract>
446
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
447
+
448
+ <RelatedTokens>
449
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/saveAndReturnError:</TokenIdentifier>
450
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/reloadBagWithError:</TokenIdentifier>
451
+
452
+ </RelatedTokens>
453
+
454
+ <Declaration>- (BOOL)undoChangesWithError:(out NSError **)outError</Declaration>
455
+ <Parameters>
456
+ <Parameter>
457
+ <Name>outError</Name>
458
+ <Abstract type="html">is used if an error occurs. May be NULL.</Abstract>
459
+ </Parameter>
460
+ </Parameters>
461
+ <ReturnValue><Abstract type="html">YES upon success, NO otherwise.</Abstract></ReturnValue>
462
+ <Anchor>//api/name/undoChangesWithError:</Anchor>
463
+ </Token>
464
+
465
+ <Token>
466
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/inflateBag</TokenIdentifier>
467
+ <Abstract type="html">Inflates the bag by reconstructing the objects flattened with - (void)deflateBag;</Abstract>
468
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
469
+
470
+ <RelatedTokens>
471
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/deflateBag</TokenIdentifier>
472
+
473
+ </RelatedTokens>
474
+
475
+ <Declaration>- (void)inflateBag</Declaration>
476
+
477
+
478
+ <Anchor>//api/name/inflateBag</Anchor>
479
+ </Token>
480
+
481
+ <Token>
482
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/deflateBag</TokenIdentifier>
483
+ <Abstract type="html">Releases memory by &quot;flattening&quot; the objects from the bag.</Abstract>
484
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
485
+
486
+ <RelatedTokens>
487
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/inflateBag</TokenIdentifier>
488
+
489
+ </RelatedTokens>
490
+
491
+ <Declaration>- (void)deflateBag</Declaration>
492
+
493
+
494
+ <Anchor>//api/name/deflateBag</Anchor>
495
+ </Token>
496
+
497
+ <Token>
498
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/count</TokenIdentifier>
499
+ <Abstract type="html">Returns the number of objects currently in the bag.</Abstract>
500
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
501
+
502
+ <Declaration>- (NSUInteger)count</Declaration>
503
+
504
+ <ReturnValue><Abstract type="html">The number of objects currently in the bag.</Abstract></ReturnValue>
505
+ <Anchor>//api/name/count</Anchor>
506
+ </Token>
507
+
508
+ <Token>
509
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/isEqualToNanoBag:</TokenIdentifier>
510
+ <Abstract type="html">Compares the receiving bag to another bag.</Abstract>
511
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
512
+
513
+ <Declaration>- (BOOL)isEqualToNanoBag:(NSFNanoBag *)otherNanoBag</Declaration>
514
+ <Parameters>
515
+ <Parameter>
516
+ <Name>otherNanoBag</Name>
517
+ <Abstract type="html">is a bag.</Abstract>
518
+ </Parameter>
519
+ </Parameters>
520
+ <ReturnValue><Abstract type="html">YES if the contents of otherNanoBag are equal to the contents of the receiving bag, otherwise NO.</Abstract></ReturnValue>
521
+ <Anchor>//api/name/isEqualToNanoBag:</Anchor>
522
+ </Token>
523
+
524
+ <Token>
525
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/dictionaryRepresentation</TokenIdentifier>
526
+ <Abstract type="html">Returns a dictionary that contains the information stored in the bag.</Abstract>
527
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
528
+
529
+ <RelatedTokens>
530
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/description</TokenIdentifier>
531
+
532
+ </RelatedTokens>
533
+
534
+ <Declaration>- (NSDictionary *)dictionaryRepresentation</Declaration>
535
+
536
+
537
+ <Anchor>//api/name/dictionaryRepresentation</Anchor>
538
+ </Token>
539
+
540
+ <Token>
541
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/description</TokenIdentifier>
542
+ <Abstract type="html">Returns a string representation of the bag.</Abstract>
543
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
544
+
545
+ <Declaration>- (NSString *)description</Declaration>
546
+
547
+
548
+ <Anchor>//api/name/description</Anchor>
549
+ </Token>
550
+
551
+ <Token>
552
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/JSONDescription</TokenIdentifier>
553
+ <Abstract type="html">Returns a JSON representation of the bag.</Abstract>
554
+ <DeclaredIn>NSFNanoBag.h</DeclaredIn>
555
+
556
+ <Declaration>- (NSString *)JSONDescription</Declaration>
557
+
558
+
559
+ <Anchor>//api/name/JSONDescription</Anchor>
560
+ </Token>
561
+
562
+ <Token>
563
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/_setStore:</TokenIdentifier>
564
+ <Abstract type="html"></Abstract>
565
+ <DeclaredIn>NSFNanoBag_Private.h</DeclaredIn>
566
+
567
+ <Declaration>- (void)_setStore:(NSFNanoStore *)aStore</Declaration>
568
+
569
+
570
+ <Anchor>//api/name/_setStore:</Anchor>
571
+ </Token>
572
+
573
+ <Token>
574
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/_saveInStore:error:</TokenIdentifier>
575
+ <Abstract type="html"></Abstract>
576
+ <DeclaredIn>NSFNanoBag_Private.h</DeclaredIn>
577
+
578
+ <Declaration>- (BOOL)_saveInStore:(NSFNanoStore *)someStore error:(out NSError **)outError</Declaration>
579
+
580
+
581
+ <Anchor>//api/name/_saveInStore:error:</Anchor>
582
+ </Token>
583
+
584
+ <Token>
585
+ <TokenIdentifier>//apple_ref/occ/instm/NSFNanoBag/_inflateObjectsWithKeys:</TokenIdentifier>
586
+ <Abstract type="html"></Abstract>
587
+ <DeclaredIn>NSFNanoBag_Private.h</DeclaredIn>
588
+
589
+ <Declaration>- (void)_inflateObjectsWithKeys:(NSArray *)someKeys</Declaration>
590
+
591
+
592
+ <Anchor>//api/name/_inflateObjectsWithKeys:</Anchor>
593
+ </Token>
594
+
595
+ </File>
596
+ </Tokens>