> On Jun 12, 2015, at 2:23 AM, Brendan Duddridge <[email protected]> wrote: > > It seems perhaps that they can do that only on direct properties of the > CBLModel subclass? > I am trying to persist an NSDate object that gets stored in an NSDictionary > on my CBLModel subclass.
Correct, it’s only for direct properties. It can do that because it has the extra value-type metadata in the class definition, so it knows what object class to read/write the JSON value as. For a random JSON value inside a dictionary or array it can’t do this. The problem isn’t with saving, it’s with reading it back in: it just sees a JSON string (that happens to look like a date) and can’t tell whether it's supposed to be parsed into an NSDate or left as a string. —Jens -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/8B4622BB-85E5-4FD0-AC44-7DDAD3888356%40mooseyard.com. For more options, visit https://groups.google.com/d/optout.
