Inherits from SCDictionaryDefinition : SCDataDefinition : NSObject
Declared in SCParseDefinition.h

Overview

This class functions as a means to further extend the definition of http://parse.com application classes.

Sample use: // Extend the parse.com Task class definition SCParseDefinition taskDef = [SCParseDefinition definitionWithClassName:@“Task” columnNamesString:@“name;description;category;active” applicationId:@“5lg8lYLmgco0mFnimqXGdb4AK95YVOZabc4YJmHp” clientKey:@“OwBFtIYUFck5Eqo1zWbw7KJ8V6eyYet0AHMepESV”]; SCPropertyDefinition descPDef = [taskDef propertyDefinitionWithName:@“description”]; descPDef.type = SCPropertyTypeTextView; SCPropertyDefinition categoryPDef = [taskDef propertyDefinitionWithName:@“category”]; categoryPDef.type = SCPropertyTypeSelection; categoryPDef.attributes = [SCSelectionAttributes attributesWithItems:@[@“Home”, @“Work”, @“Other”] allowMultipleSelection:NO allowNoSelection:NO]; SCPropertyDefinition activePDef = [taskDef propertyDefinitionWithName:@“active”]; activePDef.type = SCPropertyTypeSwitch;

// Create a section of all the parse.com task classes
SCArrayOfObjectsSection *objectsSection = [SCArrayOfObjectsSection sectionWithHeaderTitle:nil parseDefinition:taskDef batchSize:0];
objectsSection.dataFetchOptions.sort = TRUE;
[self.tableViewModel addSection:objectsSection];

Properties

accessControl

The access control for the data definition.

@property (nonatomic) SCParseAccessControl accessControl

Declared In

SCParseDefinition.h

applicationId

The parse.com application id.

@property (nonatomic, copy) NSString *applicationId

Declared In

SCParseDefinition.h

className

The parse.com class name.

@property (nonatomic, copy) NSString *className

Declared In

SCParseDefinition.h

clientKey

The parse.com client key.

@property (nonatomic, copy) NSString *clientKey

Declared In

SCParseDefinition.h

Class Methods

definitionWithClassName:columnNamesString:applicationId:clientKey:

Allocates and returns an initialized SCParseComDefinition.

+ (instancetype)definitionWithClassName:(NSString *)className columnNamesString:(NSString *)columnNames applicationId:(NSString *)applicationId clientKey:(NSString *)clientKey

Parameters

className

The parse.com class name.

columnNames

The column names of the class separated by semi-colons.

applicationId

The parse.com application id.

clientKey

The parse.com rest API key.

Declared In

SCParseDefinition.h

Instance Methods

initWithClassName:columnNamesString:applicationId:clientKey:

Returns an initialized SCParseComDefinition.

- (instancetype)initWithClassName:(NSString *)className columnNamesString:(NSString *)columnNames applicationId:(NSString *)applicationId clientKey:(NSString *)clientKey

Parameters

className

The parse.com class name.

columnNames

The column names of the class separated by semi-colons.

applicationId

The parse.com application id.

clientKey

The parse.com rest API key.

Declared In

SCParseDefinition.h