![]() |
Couchbase Lite
Objective-C API for iOS and Mac OS
|
An array of CBLModel objects, that's actually backed by document IDs.
It looks up the model dynamically as each item is accessed. This class is used by CBLModel for array-valued properties whose item type is a subclass of CBLModel.
Instance Methods | |
| (instancetype) | - initWithOwner:property:itemClass:docIDs: |
| Initializes a model array from an array of document ID strings. More... | |
| (instancetype) | - initWithOwner:property:itemClass:models: |
| Initializes a model array from an array of CBLModels. More... | |
| () | - CBLArrayOf |
| - (instancetype) initWithOwner: | (CBLModel *) | owner | |
| property: | (nullable NSString *) | property | |
| itemClass: | (nullable Class) | itemClass | |
| docIDs: | (CBLArrayOf(NSString *) *) | docIDs | |
Initializes a model array from an array of document ID strings.
Returns nil if docIDs contains items that are non-strings, or invalid document IDs.
| - (instancetype) initWithOwner: | (CBLModel *) | owner | |
| property: | (nullable NSString *) | property | |
| itemClass: | (nullable Class) | itemClass | |
| models: | (CBLArrayOf(CBLModel *) *) | models | |
Initializes a model array from an array of CBLModels.
| - CBLArrayOf | (NSString *) |