Inherits from SCDataStore : NSObject
Declared in SCMemoryStore.h

Overview

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

Note: It is very rare when you’ll need to create an SCMemoryStore 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.

Tasks

Creation and Initialization

Properties

objectsArray

The objects array storage managed by the memory store.

@property (nonatomic, strong) NSMutableArray *objectsArray

Declared In

SCMemoryStore.h

Class Methods

storeWithObjectsArray:defaultDefiniton:

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

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

Declared In

SCMemoryStore.h

Instance Methods

initWithObjectsArray:defaultDefiniton:

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

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

Declared In

SCMemoryStore.h