nano-store 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. data/README.md +8 -4
  2. data/Rakefile +1 -1
  3. data/lib/nano_store.rb +2 -4
  4. data/lib/nano_store/version.rb +1 -1
  5. data/spec/model_spec.rb +14 -0
  6. data/spec/spec_helper.rb +4 -0
  7. data/vendor/Podfile.lock +4 -4
  8. data/vendor/Pods/BuildHeaders/NanoStore/NSFNanoGlobals.h +3 -1
  9. data/vendor/Pods/BuildHeaders/NanoStore/NSFNanoPredicate.h +5 -5
  10. data/vendor/Pods/BuildHeaders/NanoStore/NSFNanoSearch.h +5 -3
  11. data/vendor/Pods/BuildHeaders/NanoStore/NSFNanoSortDescriptor.h +1 -1
  12. data/vendor/Pods/BuildHeaders/NanoStore/NanoStore.h +36 -0
  13. data/vendor/Pods/Documentation/NanoStore/docset-installed.txt +2 -2
  14. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Info.plist +3 -3
  15. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoBag.html +2 -2
  16. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoEngine.html +2 -2
  17. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoExpression.html +2 -2
  18. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoObject.html +2 -2
  19. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoPredicate.html +7 -7
  20. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoResult.html +2 -2
  21. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoSearch.html +66 -5
  22. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoSortDescriptor.html +3 -3
  23. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFNanoStore.html +2 -2
  24. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Classes/NSFOrderedDictionary.html +2 -2
  25. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/Protocols/NSFNanoObjectProtocol.html +2 -2
  26. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/css/styles.css +0 -0
  27. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/hierarchy.html +5 -5
  28. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Documents/index.html +5 -5
  29. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Nodes.xml +1 -1
  30. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens5.xml +6 -6
  31. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens7.xml +24 -2
  32. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/Tokens8.xml +2 -2
  33. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/docSet.dsidx +0 -0
  34. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/docSet.skidx +0 -0
  35. data/vendor/Pods/Documentation/NanoStore/docset/Contents/Resources/docSet.toc +0 -0
  36. data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoBag.html +2 -2
  37. data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoEngine.html +2 -2
  38. data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoExpression.html +2 -2
  39. data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoObject.html +2 -2
  40. data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoPredicate.html +7 -7
  41. data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoResult.html +2 -2
  42. data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoSearch.html +66 -5
  43. data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoSortDescriptor.html +3 -3
  44. data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFNanoStore.html +2 -2
  45. data/vendor/Pods/Documentation/NanoStore/html/Classes/NSFOrderedDictionary.html +2 -2
  46. data/vendor/Pods/Documentation/NanoStore/html/Protocols/NSFNanoObjectProtocol.html +2 -2
  47. data/vendor/Pods/Documentation/NanoStore/html/css/styles.css +0 -0
  48. data/vendor/Pods/Documentation/NanoStore/html/hierarchy.html +5 -5
  49. data/vendor/Pods/Documentation/NanoStore/html/index.html +5 -5
  50. data/vendor/Pods/Headers/NanoStore/NSFNanoGlobals.h +3 -1
  51. data/vendor/Pods/Headers/NanoStore/NSFNanoPredicate.h +5 -5
  52. data/vendor/Pods/Headers/NanoStore/NSFNanoSearch.h +5 -3
  53. data/vendor/Pods/Headers/NanoStore/NSFNanoSortDescriptor.h +1 -1
  54. data/vendor/Pods/Headers/NanoStore/NanoStore.h +36 -0
  55. data/vendor/Pods/NanoStore/Classes/Advanced/NSFNanoEngine.m +40 -49
  56. data/vendor/Pods/NanoStore/Classes/Advanced/NSFNanoResult.m +42 -53
  57. data/vendor/Pods/NanoStore/Classes/Public/NSFNanoBag.m +80 -89
  58. data/vendor/Pods/NanoStore/Classes/Public/NSFNanoExpression.m +11 -13
  59. data/vendor/Pods/NanoStore/Classes/Public/NSFNanoGlobals.h +3 -1
  60. data/vendor/Pods/NanoStore/Classes/Public/NSFNanoGlobals.m +1 -0
  61. data/vendor/Pods/NanoStore/Classes/Public/NSFNanoObject.m +34 -29
  62. data/vendor/Pods/NanoStore/Classes/Public/NSFNanoPredicate.h +5 -5
  63. data/vendor/Pods/NanoStore/Classes/Public/NSFNanoPredicate.m +43 -34
  64. data/vendor/Pods/NanoStore/Classes/Public/NSFNanoSearch.h +5 -3
  65. data/vendor/Pods/NanoStore/Classes/Public/NSFNanoSearch.m +171 -97
  66. data/vendor/Pods/NanoStore/Classes/Public/NSFNanoSortDescriptor.h +1 -1
  67. data/vendor/Pods/NanoStore/Classes/Public/NSFNanoSortDescriptor.m +13 -12
  68. data/vendor/Pods/NanoStore/Classes/Public/NSFNanoStore.m +92 -86
  69. data/vendor/Pods/NanoStore/Classes/Public/NanoStore.h +36 -0
  70. data/vendor/Pods/Pods-resources.sh +8 -4
  71. data/vendor/Pods/Pods.bridgesupport +109 -101
  72. metadata +5 -5
data/README.md CHANGED
@@ -33,7 +33,7 @@ Motion::Project::App.setup do |app|
33
33
 
34
34
  # Add the pod NanoStore to your project
35
35
  app.pods do
36
- pod 'NanoStore', '~> 2.5.7'
36
+ pod 'NanoStore', '~> 2.6.0'
37
37
  end
38
38
  end
39
39
  ```
@@ -49,8 +49,12 @@ If you are upgrading from an older version of nano-store gem, make sure you run
49
49
  ### Set default storage type
50
50
 
51
51
  ````ruby
52
- NanoStore.shared_store = NanoStore.store(:memory) # memory only db
53
- NanoStore.shared_store = NanoStore.store(:file, documents_path + "/nano.db") # persist the data
52
+ # memory only db
53
+ NanoStore.shared_store = NanoStore.store(:memory)
54
+
55
+ # file based db
56
+ documents_path = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true)[0]
57
+ NanoStore.shared_store = NanoStore.store(:file, documents_path + "/nano.db")
54
58
  ````
55
59
 
56
60
  ### Define Model
@@ -245,4 +249,4 @@ Choosing a good saveInterval value is more art than science. While testing NanoS
245
249
 
246
250
  ## License
247
251
 
248
- BSD License
252
+ BSD License
data/Rakefile CHANGED
@@ -9,7 +9,7 @@ Motion::Project::App.setup do |app|
9
9
  app.redgreen_style = :full
10
10
  app.files += Dir.glob(File.join(app.project_dir, 'lib/nano_store/*.rb'))
11
11
  app.pods do
12
- pod 'NanoStore', '2.5.2'
12
+ pod 'NanoStore', '~> 2.6.0'
13
13
  end
14
14
  end
15
15
 
@@ -4,8 +4,6 @@ unless defined?(Motion::Project::Config)
4
4
  raise "This file must be required within a RubyMotion project Rakefile."
5
5
  end
6
6
 
7
- require 'bubble-wrap'
8
-
9
7
  Motion::Project::App.setup do |app|
10
8
  Dir.glob(File.join(File.dirname(__FILE__), 'nano_store/*.rb')).each do |file|
11
9
  app.files.unshift(file)
@@ -16,5 +14,5 @@ Motion::Project::App.setup do |app|
16
14
  app.files.unshift(File.join(File.dirname(__FILE__), 'nano_store/finder.rb'))
17
15
 
18
16
  app.pods ||= Motion::Project::CocoaPods.new(app)
19
- app.pods.pod 'NanoStore', '2.5.2'
20
- end
17
+ app.pods.pod 'NanoStore', '~> 2.6.0'
18
+ end
@@ -1,3 +1,3 @@
1
1
  module NanoStore
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
@@ -114,6 +114,20 @@ describe NanoStore::Model do
114
114
  user1.name.should == "Bob"
115
115
  user1.created_at.should.be.nil
116
116
  end
117
+
118
+ it "create model in file store" do
119
+ path = documents_path + "/nano.db"
120
+ NanoStore.shared_store = NanoStore.store :persistent, path
121
+
122
+ user = stub_user("Bob", 10, nil)
123
+ user.save
124
+
125
+ user1 = User.find(:name, NSFEqualTo, "Bob").first
126
+ user1.name.should == "Bob"
127
+ user1.created_at.should.be.nil
128
+
129
+ File.delete(path) rescue nil
130
+ end
117
131
  end
118
132
 
119
133
  describe "#delete" do
@@ -12,3 +12,7 @@ end
12
12
  class Listing < NanoStore::Model
13
13
  attribute :name
14
14
  end
15
+
16
+ def documents_path
17
+ NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true)[0]
18
+ end
@@ -1,11 +1,11 @@
1
1
 
2
2
  PODS:
3
- - NanoStore (2.5.2)
3
+ - NanoStore (2.6.4)
4
4
 
5
5
  DEPENDENCIES:
6
- - NanoStore (= 2.5.2)
6
+ - NanoStore (~> 2.6.0)
7
7
 
8
8
  SPEC CHECKSUMS:
9
- NanoStore: eb22a867411f5ecdf3c959ba58fecd8b8af90e2b
9
+ NanoStore: 73d29e30e1e7f253f719c6ad1d60181ebcf1b5be
10
10
 
11
- COCOAPODS: 0.16.1
11
+ COCOAPODS: 0.16.4
@@ -144,7 +144,9 @@ typedef enum {
144
144
  /** * Greater Ththanan */
145
145
  NSFGreaterThan,
146
146
  /** * Less than */
147
- NSFLessThan
147
+ NSFLessThan,
148
+ /** * Not Equal to from */
149
+ NSFNotEqualTo
148
150
  } NSFMatchType;
149
151
 
150
152
  /** * Column types for the Attributes table.
@@ -77,7 +77,7 @@
77
77
  /** * The comparison operator to be used. */
78
78
  @property (nonatomic, assign, readonly) NSFMatchType match;
79
79
  /** * The value to be used for comparison. */
80
- @property (nonatomic, copy, readonly) NSString *value;
80
+ @property (nonatomic, readonly) id value;
81
81
 
82
82
  /** @name Creating and Initializing a Predicate
83
83
  */
@@ -87,22 +87,22 @@
87
87
  /** * Creates and returns a predicate.
88
88
  * @param theType is the column type. Can be \link Globals::NSFKeyColumn NSFKeyColumn \endlink, \link Globals::NSFAttributeColumn NSFAttributeColumn \endlink or \link Globals::NSFValueColumn NSFValueColumn \endlink.
89
89
  * @param theMatch is the match operator.
90
- * @param theValue is the value.
90
+ * @param theValue can be an NSString or [NSNull null]
91
91
  * @return A predicate which can be used in an NSFNanoExpression.
92
92
  * @see \link initWithColumn:matching:value: - (id)initWithColumn:(NSFTableColumnType)theType matching:(NSFMatchType)theMatch value:(NSString *)theValue \endlink
93
93
  */
94
94
 
95
- + (NSFNanoPredicate*)predicateWithColumn:(NSFTableColumnType)theType matching:(NSFMatchType)theMatch value:(NSString *)theValue;
95
+ + (NSFNanoPredicate*)predicateWithColumn:(NSFTableColumnType)theType matching:(NSFMatchType)theMatch value:(id)theValue;
96
96
 
97
97
  /** * Initializes a newly allocated predicate.
98
98
  * @param theType is the column type. Can be \link Globals::NSFKeyColumn NSFKeyColumn \endlink, \link Globals::NSFAttributeColumn NSFAttributeColumn \endlink or \link Globals::NSFValueColumn NSFValueColumn \endlink.
99
99
  * @param theMatch is the match operator.
100
- * @param theValue is the value.
100
+ * @param theValue can be an NSString or [NSNull null]
101
101
  * @return A predicate which can be used in an NSFNanoExpression.
102
102
  * @see \link predicateWithColumn:matching:value: + (NSFNanoPredicate*)predicateWithColumn:(NSFTableColumnType)theType matching:(NSFMatchType)theMatch value:(NSString *)theValue \endlink
103
103
  */
104
104
 
105
- - (id)initWithColumn:(NSFTableColumnType)theType matching:(NSFMatchType)theMatch value:(NSString *)theValue;
105
+ - (id)initWithColumn:(NSFTableColumnType)theType matching:(NSFMatchType)theMatch value:(id)theValue;
106
106
 
107
107
  //@}
108
108
 
@@ -175,11 +175,13 @@
175
175
  /** * The sort holds an array of one or more sort descriptors of type \link NSFNanoSortDescriptor NSFNanoSortDescriptor \endlink. */
176
176
  @property (nonatomic, strong, readwrite) NSArray *sort;
177
177
  /** * The filterClass allows to filter the results based on a specific object class. */
178
- @property (nonatomic, strong, readwrite) NSString *filterClass;
178
+ @property (nonatomic, copy, readwrite) NSString *filterClass;
179
179
  /** * If an expression has an offset clause, then the first M rows are omitted from the result set returned by the search operation and the next N rows are returned, where M and N are the values that the offset and limit clauses evaluate to, respectively. Or, if the search would return less than M+N rows if it did not have a limit clause, then the first M rows are skipped and the remaining rows (if any) are returned. */
180
180
  @property (nonatomic, assign, readwrite) NSUInteger offset;
181
181
  /** * The limit clause is used to place an upper bound on the number of rows returned by a Search operation. */
182
182
  @property (nonatomic, assign, readwrite) NSUInteger limit;
183
+ /** * limit a Search to a particular bag. */
184
+ @property (nonatomic, assign, readwrite) NSFNanoBag *bag;
183
185
 
184
186
  /** @name Creating and Initializing a Search
185
187
  */
@@ -213,7 +215,7 @@
213
215
  * @param theReturnType the type of object to be returned. Can be \link Globals::NSFReturnObjects NSFReturnObjects \endlink or \link Globals::NSFReturnKeys NSFReturnKeys \endlink.
214
216
  * @param outError is used if an error occurs. May be NULL.
215
217
  * @return An array is returned if: 1) the sort has been specified or 2) the return type is \link Globals::NSFReturnKeys NSFReturnKeys \endlink. Otherwise, a dictionary is returned.
216
- * @note The sort descriptor will be ignored when returning requesting NSFReturnKeys.
218
+ * @note The sort descriptor will be ignored when the return type is NSFReturnKeys.
217
219
  * @see \link searchObjectsAdded:date:returnType:error: - (id)searchObjectsAdded:(NSFDateMatchType)theDateMatch date:(NSDate *)theDate returnType:(NSFReturnType)theReturnType error:(out NSError **)outError \endlink
218
220
  */
219
221
 
@@ -225,7 +227,7 @@
225
227
  * @param theReturnType the type of object to be returned. Can be \link Globals::NSFReturnObjects NSFReturnObjects \endlink or \link Globals::NSFReturnKeys NSFReturnKeys \endlink.
226
228
  * @param outError is used if an error occurs. May be NULL.
227
229
  * @return If theReturnType is \link Globals::NSFReturnObjects NSFReturnObjects \endlink, a dictionary is returned. Otherwise, an array is returned.
228
- * @note The sort descriptor will be ignored when returning requesting NSFReturnKeys.
230
+ * @note The sort descriptor will be ignored when the return type is NSFReturnKeys.
229
231
  * @see \link searchObjectsWithReturnType:error: - (id)searchObjectsWithReturnType:(NSFReturnType)theReturnType error:(out NSError **)outError \endlink
230
232
  */
231
233
 
@@ -75,7 +75,7 @@
75
75
  @interface NSFNanoSortDescriptor : NSObject
76
76
 
77
77
  /** * The property key to use when performing a comparison */
78
- @property (nonatomic, readonly) NSString *attribute;
78
+ @property (nonatomic, copy, readonly) NSString *attribute;
79
79
  /** * The property to indicate whether the comparison should be performed in ascending mode */
80
80
  @property (nonatomic, readonly) BOOL isAscending;
81
81
 
@@ -64,6 +64,13 @@
64
64
  - iOS library runs on the device and simulator
65
65
  - ARC compliant
66
66
 
67
+ @section latest_changes Latest changes
68
+ v2.5 - January 1, 2013
69
+
70
+ Starting with v2.5, the plist mechanism has been replaced with NSKeyedArchiver. There are several reasons for it: it's more compact, faster and uses less memory. Perhaps the most important reason is that it opens the possibility to store other data types.
71
+
72
+ NSNull is now supported. Big thanks to Wanny (https://github.com/mrwanny) for taking the time to improve this section of NanoStore.
73
+
67
74
  @section installation_sec Installation
68
75
 
69
76
  Building NanoStore is very easy. Just follow these steps:
@@ -423,6 +430,35 @@
423
430
  [sortByLastName release];
424
431
  @endcode
425
432
 
433
+ @section paging_limit_sec Paging using Limit and Offset
434
+ SQLite provides a really cool feature called OFFSET that is usually used with a LIMIT clause.
435
+
436
+ The LIMIT clause is used to limit the number of results returned in a SQL statement. So if you have 1000 rows in table, but only want to return the first 10, you would do something like this:
437
+ @code
438
+ SELECT column FROM table LIMIT 10
439
+ @endcode
440
+ Now suppose you wanted to show results 11-20. With the OFFSET keyword it's just as easy. The following query will do:
441
+ @code
442
+ SELECT column FROM table LIMIT 10 OFFSET 10
443
+ @endcode
444
+ Using pagination is also quite easy with NanoStore. This example based on one of the unit tests provided with the NanoStore distro:
445
+ @code
446
+ NSFNanoStore *nanoStore = [NSFNanoStore createAndOpenStoreWithType:NSFMemoryStoreType path:nil error:nil];
447
+
448
+ // Assume we have added objects to the store
449
+
450
+ NSFNanoSearch *search = [NSFNanoSearch searchWithStore:nanoStore];
451
+ search.value = @"Barcelona";
452
+ search.match = NSFEqualTo;
453
+ search.limit = 5;
454
+ search.offset = 3;
455
+
456
+ NSDictionary *searchResults = [search searchObjectsWithReturnType:NSFReturnObjects error:nil];
457
+
458
+ // Assuming the query matches some results, NanoStore should have retrieved
459
+ // the first 5 records right after the 3rd one from the result set.
460
+ @endcode
461
+
426
462
  @section performancetips_sec Performance Tips
427
463
 
428
464
  NanoStore by defaults saves every object to disk one by one. To speed up inserts and edited objects, increase NSFNanoStore's \link NSFNanoStore::saveInterval saveInterval \endlink property.
@@ -1,4 +1,4 @@
1
1
  Documentation set was installed to Xcode!
2
2
 
3
- Path: /Users/siuying/Library/Developer/Shared/Documentation/DocSets/org.cocoapods.NanoStore-2.5.2.docset
4
- Time: 2013-01-22 09:31:56 +0000
3
+ Path: /Users/siuying/Library/Developer/Shared/Documentation/DocSets/org.cocoapods.NanoStore-2.6.4.docset
4
+ Time: 2013-03-08 15:06:48 +0000
@@ -5,9 +5,9 @@
5
5
  <key>CFBundleDevelopmentRegion</key>
6
6
  <string>en</string>
7
7
  <key>CFBundleIdentifier</key>
8
- <string>org.cocoapods.NanoStore-2.5.2</string>
8
+ <string>org.cocoapods.NanoStore-2.6.4</string>
9
9
  <key>CFBundleName</key>
10
- <string>NanoStore 2.5.2 Documentation</string>
10
+ <string>NanoStore 2.6.4 Documentation</string>
11
11
  <key>CFBundleShortVersionString</key>
12
12
  <string>1.0</string>
13
13
  <key>CFBundleVersion</key>
@@ -18,7 +18,7 @@
18
18
  <string>NanoStore is an open source, lightweight schema-less local key-value document store written in Objective-C for Mac OS X and iOS.</string>
19
19
 
20
20
  <key>DocSetFeedName</key>
21
- <string>NanoStore 2.5.2 Documentation</string>
21
+ <string>NanoStore 2.6.4 Documentation</string>
22
22
 
23
23
  <key>DocSetMinimumXcodeVersion</key>
24
24
  <string>3.0</string>
@@ -12,7 +12,7 @@
12
12
  <body>
13
13
  <header id="top_header">
14
14
  <div id="library" class="hideInXcode">
15
- <h1><a id="libraryTitle" href="../index.html">NanoStore 2.5.2 </a></h1>
15
+ <h1><a id="libraryTitle" href="../index.html">NanoStore 2.6.4 </a></h1>
16
16
  <a id="developerHome" href="../index.html">Tito Ciuro</a>
17
17
  </div>
18
18
 
@@ -2163,7 +2163,7 @@ NSArray *bags = [nanoStore bags];</p>
2163
2163
  <div id="footer">
2164
2164
  <hr />
2165
2165
  <div class="footer-copyright">
2166
- <p><span class="copyright">&copy; 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-01-22)</span><br />
2166
+ <p><span class="copyright">&copy; 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-03-08)</span><br />
2167
2167
 
2168
2168
  <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
2169
2169
 
@@ -12,7 +12,7 @@
12
12
  <body>
13
13
  <header id="top_header">
14
14
  <div id="library" class="hideInXcode">
15
- <h1><a id="libraryTitle" href="../index.html">NanoStore 2.5.2 </a></h1>
15
+ <h1><a id="libraryTitle" href="../index.html">NanoStore 2.6.4 </a></h1>
16
16
  <a id="developerHome" href="../index.html">Tito Ciuro</a>
17
17
  </div>
18
18
 
@@ -4605,7 +4605,7 @@ Deactivating FastMode is very safe, but it is also slower.</p>
4605
4605
  <div id="footer">
4606
4606
  <hr />
4607
4607
  <div class="footer-copyright">
4608
- <p><span class="copyright">&copy; 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-01-22)</span><br />
4608
+ <p><span class="copyright">&copy; 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-03-08)</span><br />
4609
4609
 
4610
4610
  <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
4611
4611
 
@@ -12,7 +12,7 @@
12
12
  <body>
13
13
  <header id="top_header">
14
14
  <div id="library" class="hideInXcode">
15
- <h1><a id="libraryTitle" href="../index.html">NanoStore 2.5.2 </a></h1>
15
+ <h1><a id="libraryTitle" href="../index.html">NanoStore 2.6.4 </a></h1>
16
16
  <a id="developerHome" href="../index.html">Tito Ciuro</a>
17
17
  </div>
18
18
 
@@ -715,7 +715,7 @@ NSDictionary *searchResults = [search searchObjectsWithReturnType:NSFReturnObjec
715
715
  <div id="footer">
716
716
  <hr />
717
717
  <div class="footer-copyright">
718
- <p><span class="copyright">&copy; 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-01-22)</span><br />
718
+ <p><span class="copyright">&copy; 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-03-08)</span><br />
719
719
 
720
720
  <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
721
721
 
@@ -12,7 +12,7 @@
12
12
  <body>
13
13
  <header id="top_header">
14
14
  <div id="library" class="hideInXcode">
15
- <h1><a id="libraryTitle" href="../index.html">NanoStore 2.5.2 </a></h1>
15
+ <h1><a id="libraryTitle" href="../index.html">NanoStore 2.6.4 </a></h1>
16
16
  <a id="developerHome" href="../index.html">Tito Ciuro</a>
17
17
  </div>
18
18
 
@@ -1678,7 +1678,7 @@ required. In addition, it provides methods to obtain all bags, specific bags mat
1678
1678
  <div id="footer">
1679
1679
  <hr />
1680
1680
  <div class="footer-copyright">
1681
- <p><span class="copyright">&copy; 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-01-22)</span><br />
1681
+ <p><span class="copyright">&copy; 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-03-08)</span><br />
1682
1682
 
1683
1683
  <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
1684
1684
 
@@ -12,7 +12,7 @@
12
12
  <body>
13
13
  <header id="top_header">
14
14
  <div id="library" class="hideInXcode">
15
- <h1><a id="libraryTitle" href="../index.html">NanoStore 2.5.2 </a></h1>
15
+ <h1><a id="libraryTitle" href="../index.html">NanoStore 2.6.4 </a></h1>
16
16
  <a id="developerHome" href="../index.html">Tito Ciuro</a>
17
17
  </div>
18
18
 
@@ -404,7 +404,7 @@ NSDictionary *searchResults = [search searchObjectsWithReturnType:NSFReturnObjec
404
404
 
405
405
 
406
406
 
407
- <div class="method-subsection method-declaration"><code>@property (nonatomic, copy, readonly) NSString *value</code></div>
407
+ <div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) id value</code></div>
408
408
 
409
409
 
410
410
 
@@ -456,7 +456,7 @@ NSDictionary *searchResults = [search searchObjectsWithReturnType:NSFReturnObjec
456
456
 
457
457
 
458
458
 
459
- <div class="method-subsection method-declaration"><code>+ (NSFNanoPredicate *)predicateWithColumn:(NSFTableColumnType)<em>theType</em> matching:(NSFMatchType)<em>theMatch</em> value:(NSString *)<em>theValue</em></code></div>
459
+ <div class="method-subsection method-declaration"><code>+ (NSFNanoPredicate *)predicateWithColumn:(NSFTableColumnType)<em>theType</em> matching:(NSFMatchType)<em>theMatch</em> value:(id)<em>theValue</em></code></div>
460
460
 
461
461
 
462
462
 
@@ -475,7 +475,7 @@ NSDictionary *searchResults = [search searchObjectsWithReturnType:NSFReturnObjec
475
475
 
476
476
  <dl class="argument-def parameter-def">
477
477
  <dt><em>theValue</em></dt>
478
- <dd><p>is the <a href="#//api/name/value">value</a>.</p></dd>
478
+ <dd><p>can be an NSString or [NSNull null]</p></dd>
479
479
  </dl>
480
480
 
481
481
  </div>
@@ -621,7 +621,7 @@ NSDictionary *searchResults = [search searchObjectsWithReturnType:NSFReturnObjec
621
621
 
622
622
 
623
623
 
624
- <div class="method-subsection method-declaration"><code>- (id)initWithColumn:(NSFTableColumnType)<em>theType</em> matching:(NSFMatchType)<em>theMatch</em> value:(NSString *)<em>theValue</em></code></div>
624
+ <div class="method-subsection method-declaration"><code>- (id)initWithColumn:(NSFTableColumnType)<em>theType</em> matching:(NSFMatchType)<em>theMatch</em> value:(id)<em>theValue</em></code></div>
625
625
 
626
626
 
627
627
 
@@ -640,7 +640,7 @@ NSDictionary *searchResults = [search searchObjectsWithReturnType:NSFReturnObjec
640
640
 
641
641
  <dl class="argument-def parameter-def">
642
642
  <dt><em>theValue</em></dt>
643
- <dd><p>is the <a href="#//api/name/value">value</a>.</p></dd>
643
+ <dd><p>can be an NSString or [NSNull null]</p></dd>
644
644
  </dl>
645
645
 
646
646
  </div>
@@ -697,7 +697,7 @@ NSDictionary *searchResults = [search searchObjectsWithReturnType:NSFReturnObjec
697
697
  <div id="footer">
698
698
  <hr />
699
699
  <div class="footer-copyright">
700
- <p><span class="copyright">&copy; 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-01-22)</span><br />
700
+ <p><span class="copyright">&copy; 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-03-08)</span><br />
701
701
 
702
702
  <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
703
703
 
@@ -12,7 +12,7 @@
12
12
  <body>
13
13
  <header id="top_header">
14
14
  <div id="library" class="hideInXcode">
15
- <h1><a id="libraryTitle" href="../index.html">NanoStore 2.5.2 </a></h1>
15
+ <h1><a id="libraryTitle" href="../index.html">NanoStore 2.6.4 </a></h1>
16
16
  <a id="developerHome" href="../index.html">Tito Ciuro</a>
17
17
  </div>
18
18
 
@@ -951,7 +951,7 @@ NSString *value = [result firstValue];</p>
951
951
  <div id="footer">
952
952
  <hr />
953
953
  <div class="footer-copyright">
954
- <p><span class="copyright">&copy; 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-01-22)</span><br />
954
+ <p><span class="copyright">&copy; 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-03-08)</span><br />
955
955
 
956
956
  <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
957
957
 
@@ -12,7 +12,7 @@
12
12
  <body>
13
13
  <header id="top_header">
14
14
  <div id="library" class="hideInXcode">
15
- <h1><a id="libraryTitle" href="../index.html">NanoStore 2.5.2 </a></h1>
15
+ <h1><a id="libraryTitle" href="../index.html">NanoStore 2.6.4 </a></h1>
16
16
  <a id="developerHome" href="../index.html">Tito Ciuro</a>
17
17
  </div>
18
18
 
@@ -44,6 +44,8 @@
44
44
 
45
45
  <option value="//api/name/attributesToBeReturned">&nbsp;&nbsp;&nbsp;&nbsp;attributesToBeReturned</option>
46
46
 
47
+ <option value="//api/name/bag">&nbsp;&nbsp;&nbsp;&nbsp;bag</option>
48
+
47
49
  <option value="//api/name/expressions">&nbsp;&nbsp;&nbsp;&nbsp;expressions</option>
48
50
 
49
51
  <option value="//api/name/filterClass">&nbsp;&nbsp;&nbsp;&nbsp;filterClass</option>
@@ -162,6 +164,8 @@
162
164
 
163
165
  <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/attributesToBeReturned">attributesToBeReturned</a></span></li>
164
166
 
167
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/bag">bag</a></span></li>
168
+
165
169
  <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/expressions">expressions</a></span></li>
166
170
 
167
171
  <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/filterClass">filterClass</a></span></li>
@@ -552,6 +556,16 @@ NSDictionary *searchResults = [search searchObjectsWithReturnType:NSFReturnObjec
552
556
  </span>
553
557
  <span class="task-item-suffix">property</span>
554
558
 
559
+ </li><li>
560
+ <span class="tooltip">
561
+ <code><a href="#//api/name/bag">&nbsp;&nbsp;bag</a></code>
562
+ <span class="tooltip"><ul>
563
+ <li><a href="#//api/name/limit">limit</a> a Search to a particular bag.</li>
564
+ </ul>
565
+ </span>
566
+ </span>
567
+ <span class="task-item-suffix">property</span>
568
+
555
569
  </li>
556
570
  </ul>
557
571
 
@@ -886,6 +900,53 @@ NSDictionary *searchResults = [search searchObjectsWithReturnType:NSFReturnObjec
886
900
 
887
901
 
888
902
 
903
+ <div class="method-subsection declared-in-section">
904
+ <h4 class="method-subtitle">Declared In</h4>
905
+ <code class="declared-in-ref">NSFNanoSearch.h</code><br />
906
+ </div>
907
+
908
+
909
+ </div>
910
+
911
+ <div class="section-method">
912
+ <a name="//api/name/bag" title="bag"></a>
913
+ <h3 class="subsubtitle method-title">bag</h3>
914
+
915
+
916
+
917
+ <div class="method-subsection brief-description">
918
+ <ul>
919
+ <li><a href="#//api/name/limit">limit</a> a Search to a particular bag.</li>
920
+ </ul>
921
+
922
+ </div>
923
+
924
+
925
+
926
+ <div class="method-subsection method-declaration"><code>@property (nonatomic, assign, readwrite) NSFNanoBag *bag</code></div>
927
+
928
+
929
+
930
+
931
+
932
+
933
+
934
+
935
+
936
+ <div class="method-subsection discussion-section">
937
+ <h4 class="method-subtitle">Discussion</h4>
938
+ <ul>
939
+ <li><a href="#//api/name/limit">limit</a> a Search to a particular bag.</li>
940
+ </ul>
941
+
942
+ </div>
943
+
944
+
945
+
946
+
947
+
948
+
949
+
889
950
  <div class="method-subsection declared-in-section">
890
951
  <h4 class="method-subtitle">Declared In</h4>
891
952
  <code class="declared-in-ref">NSFNanoSearch.h</code><br />
@@ -956,7 +1017,7 @@ NSDictionary *searchResults = [search searchObjectsWithReturnType:NSFReturnObjec
956
1017
 
957
1018
 
958
1019
 
959
- <div class="method-subsection method-declaration"><code>@property (nonatomic, strong, readwrite) NSString *filterClass</code></div>
1020
+ <div class="method-subsection method-declaration"><code>@property (nonatomic, copy, readwrite) NSString *filterClass</code></div>
960
1021
 
961
1022
 
962
1023
 
@@ -2271,7 +2332,7 @@ When invoked, it sets the values of search to its initial state. Resetting and p
2271
2332
 
2272
2333
  <div class="method-subsection discussion-section">
2273
2334
  <h4 class="method-subtitle">Discussion</h4>
2274
- <p>Performs a search using the values of the properties before, on or after a given date.</p><div class="note"><p><strong>Note:</strong> The <a href="#//api/name/sort">sort</a> descriptor will be ignored when returning requesting NSFReturnKeys.</p></div>
2335
+ <p>Performs a search using the values of the properties before, on or after a given date.</p><div class="note"><p><strong>Note:</strong> The <a href="#//api/name/sort">sort</a> descriptor will be ignored when the return type is NSFReturnKeys.</p></div>
2275
2336
  </div>
2276
2337
 
2277
2338
 
@@ -2341,7 +2402,7 @@ When invoked, it sets the values of search to its initial state. Resetting and p
2341
2402
 
2342
2403
  <div class="method-subsection discussion-section">
2343
2404
  <h4 class="method-subtitle">Discussion</h4>
2344
- <p>Performs a search using the values of the properties.</p><div class="note"><p><strong>Note:</strong> The <a href="#//api/name/sort">sort</a> descriptor will be ignored when returning requesting NSFReturnKeys.</p></div>
2405
+ <p>Performs a search using the values of the properties.</p><div class="note"><p><strong>Note:</strong> The <a href="#//api/name/sort">sort</a> descriptor will be ignored when the return type is NSFReturnKeys.</p></div>
2345
2406
  </div>
2346
2407
 
2347
2408
 
@@ -2380,7 +2441,7 @@ When invoked, it sets the values of search to its initial state. Resetting and p
2380
2441
  <div id="footer">
2381
2442
  <hr />
2382
2443
  <div class="footer-copyright">
2383
- <p><span class="copyright">&copy; 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-01-22)</span><br />
2444
+ <p><span class="copyright">&copy; 2013 Tito Ciuro. All rights reserved. (Last updated: 2013-03-08)</span><br />
2384
2445
 
2385
2446
  <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
2386
2447