On Feb 17, 2014, at 6:28 PM, Alan McKean 
<[email protected]<mailto:[email protected]>> wrote:


(lldb) po self.charges

 nil

```

I have a property in my model:
```

@property (nonatomic, strong) NSArray * charges;

I'll bet you forgot to declare the property as @dynamic in the implementation.
If you don't, Clang will decide to synthesize it for you, so you end up with it 
being nil by default (and never being saved to the document even if you set it.)

To avoid this, there's a warning you can turn on about "implicit 
auto-synthesize" or something like that. I recommend enabling it.

--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/158C53D9-48C5-44B1-878C-3F4298857214%40couchbase.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to