Inherits from SCDataStore : NSObject
Declared in SCArrayStore.h

Overview

SCArrayStore is an SCDataStore subclass that encapsulates NSArray memory storage, providing means for the SC framework to communicate with this array storage to fetch, add, update and remove data objects.

Note: It is very rare when you’ll need to create an SCArrayStore instance yourself, as it’s typically automatically created for you when you use data definitions such as SCClassDefinition and SCDictionaryDefinition. For example, when you use the SCArrayOfObjectsSection initializer method called [SCArrayOfObjectsSection sectionWithHeaderTitle:items:itemsDefinition:], SCArrayOfObjectsSection automatically sets its dataStore property by calling your itemsDefinition’s [SCDataDefinition generateCompatibleDataStore:] method.

Note: For more information on data stores, check out the SCDataStore base class documentation.

Properties

objectsArray

The objects array storage managed by the memory store.

@property (nonatomic, strong) NSMutableArray *objectsArray

Declared In

SCArrayStore.h

Class Methods

storeWithObjectsArray:defaultDefiniton:

Allocates and returns an initialized SCArrayStore given an array of objects and their default data definition.

+ (instancetype)storeWithObjectsArray:(NSMutableArray *)array defaultDefiniton:(SCDataDefinition *)definition

Declared In

SCArrayStore.h

Instance Methods

initWithObjectsArray:defaultDefiniton:

Returns an initialized SCArrayStore given an array of objects and their default data definition.

- (id)initWithObjectsArray:(NSMutableArray *)array defaultDefiniton:(SCDataDefinition *)definition

Declared In

SCArrayStore.h