> On Nov 3, 2014, at 9:15 PM, Todd Freese <[email protected]> wrote:
> 
> Is it valid to call setValue:forKey on a CBLModel where the key is defined as 
> a property?


Do you mean setValue:ofProperty:? CBLModel doesn't implement -setValue:forKey:, 
it just inherits the default one, which I believe will use key-value coding and 
call through to property setters. (It probably fails for anything not declared 
as an @property, though.)

-setValue:ofProperty: will update the property whether or not it's also 
declared as an @property. It doesn't send KVO notifications, though.

—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/4E8B35BF-FB30-42FA-8999-0CEF9C04F4F2%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to