Inherits from SCWebServiceDefinition : SCDictionaryDefinition : SCDataDefinition : NSObject
Declared in SCParseComDefinition.h

Overview

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

Sample use:

// Extend the parse.com Task class definition
SCParseComDefinition *taskDef = [SCParseComDefinition definitionWithClassName:@"Task" 
    columnNamesString:@"name;description;category;active" applicationId:@"5lg8lYLmgco0mFnimqXGdb4AK95YVOZabc4YJmHp" 
    restAPIKey:@"MUwEy6QSxay6dkpN0Noo1AKN81lToXiE5sVSAHOy"];
SCPropertyDefinition *descPDef = [taskDef propertyDefinitionWithName:@"description"];
descPDef.type = SCPropertyTypeTextView;
SCPropertyDefinition *categoryPDef = [taskDef propertyDefinitionWithName:@"category"];
categoryPDef.type = SCPropertyTypeSelection;
categoryPDef.attributes = [SCSelectionAttributes attributesWithItems:[NSArray arrayWithObjects:@"Home", @"Work", @"Other", nil] 
    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 
    webServiceDefinition:taskDef batchSize:0];
objectsSection.dataFetchOptions.sort = TRUE;
[self.tableViewModel addSection:objectsSection];

Tasks

Creation and Initialization

Configuration

Properties

applicationId

The parse.com application id.

@property (nonatomic, copy) NSString *applicationId

Declared In

SCParseComDefinition.h

className

The parse.com class name.

@property (nonatomic, copy) NSString *className

Declared In

SCParseComDefinition.h

restAPIKey

The parse.com rest API key.

@property (nonatomic, copy) NSString *restAPIKey

Declared In

SCParseComDefinition.h

Class Methods

definitionWithClassName:columnNamesString:applicationId:restAPIKey:

Allocates and returns an initialized SCParseComDefinition.

+ (id)definitionWithClassName:(NSString *)className columnNamesString:(NSString *)columnNames applicationId:(NSString *)applicationId restAPIKey:(NSString *)restAPIKey

Parameters

className

The parse.com class name.

columnNames

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

applicationId

The parse.com application id.

restAPIKey

The parse.com rest API key.

Declared In

SCParseComDefinition.h

Instance Methods

initWithClassName:columnNamesString:applicationId:restAPIKey:

Returns an initialized SCParseComDefinition.

- (id)initWithClassName:(NSString *)className columnNamesString:(NSString *)columnNames applicationId:(NSString *)applicationId restAPIKey:(NSString *)restAPIKey

Parameters

className

The parse.com class name.

columnNames

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

applicationId

The parse.com application id.

restAPIKey

The parse.com rest API key.

Declared In

SCParseComDefinition.h