SCArrayStore
@interface SCArrayStore : SCDataStore
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.
-
Allocates and returns an initialized SCArrayStore given an array of objects and their default data definition.
Declaration
Objective-C
+ (instancetype)storeWithObjectsArray:(NSMutableArray *)array defaultDefiniton:(SCDataDefinition *)definition;
-
Returns an initialized SCArrayStore given an array of objects and their default data definition.
Declaration
Objective-C
- (id)initWithObjectsArray:(NSMutableArray *)array defaultDefiniton:(SCDataDefinition *)definition;
-
The objects array storage managed by the memory store.
Declaration
Objective-C
@property (nonatomic, strong) NSMutableArray *objectsArray;