New docs on attachments question

13 views
Skip to first unread message

Todd Freese

unread,
May 22, 2014, 4:58:23 PM5/22/14
to mobile-c...@googlegroups.com
First, great job on the new documentation for CBL. A lot of really great stuff in there!

In reading the section on attachments (iOS), it recommends creating a new revision on the doc and adding the attachment. Currently, I am not doing this but rather just adding the attachment to my CBLModel.

Is CBLModel already doing this under the hood? Or should I be doing this differently?

Todd

Jens Alfke

unread,
May 22, 2014, 5:32:49 PM5/22/14
to mobile-c...@googlegroups.com

On May 22, 2014, at 1:58 PM, Todd Freese <to...@filmworkers.com> wrote:

Is CBLModel already doing this under the hood? Or should I be doing this differently?

Yup, that’s what CBLModel is doing. If you’re using CBLModel, it makes the most sense to use its API for attachments.

—Jens
Reply all
Reply to author
Forward
0 new messages