Inherits from SCDataStore : NSObject
Declared in SCParseStore.h

Overview

SCParseStore is an SCDataStore subclass that encapsulates remote parse.com data storage, providing means for the SC framework to communicate with this storage to fetch, add, update and remove Parse objects.

Note: It is very rare when you’ll need to create an SCParseStore instance yourself, as it’s typically automatically created for you when you use the SCParseDefinition data definition. For example, when you use the SCArrayOfObjectsSection initializer method called [SCArrayOfObjectsSection sectionWithHeaderTitle:parseDefinition:batchSize:], SCArrayOfObjectsSection automatically sets its dataStore property by calling your parseDefinition’s [SCDataDefinition generateCompatibleDataStore:] method.

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

Properties

queryConfiguredAction

Action gets called right after the query responsible for fetching the parse objects is configured.

@property (nonatomic, copy) SCParseStoreQueryConfiguredAction_Block queryConfiguredAction

Return Value

Return the PFQuery responsible for fetching the parse objects.

Example:

// Objective-C
myParseStore.queryConfiguredAction = ^PFQuery*(PFQuery *query)
{
    [query whereKey:@"name" hasPrefix:@"Task"];  // only retrieve objects whose name starts with the word 'Task'

    return query;
};

// Swift
cellActions.willStyle =
{
    (query)->PFQuery in

    query.whereKey("name", hasPrefix: "Task")  // only retrieve objects whose name starts with the word 'Task'

    return query
}

Discussion

This action is typically used to further customize the query.

Declared In

SCParseStore.h

Class Methods

storeWithDefaultParseDefinition:

Allocates and returns an initialized SCWebServiceStore given a default web service definition.

+ (instancetype)storeWithDefaultParseDefinition:(SCParseDefinition *)definition

Declared In

SCParseStore.h

Instance Methods

initWithDefaultParseDefinition:

Returns an initialized SCWebServiceStore given a default web service definition.

- (instancetype)initWithDefaultParseDefinition:(SCParseDefinition *)definition

Declared In

SCParseStore.h