Inherits from SurveyForm : NSObject
Declared in SurveyModelForm.h

Overview

SurveyModelForm is a subclass of SurveyForm, designed to allow forms to be created from CoreData entities.

Subclassing Notes

Methods to Override

When subclassing SurveyModelForm, you must override the following method in order for the form to have access to CoreData entity properties correctly. – managedObjectContext;

Tasks

Create forms from CoreData entities.

Class Methods

managedObjectContext

Returns a managed object context to use to gather properties about a CoreData entity.

+ (NSManagedObjectContext *)managedObjectContext

Return Value

A managed object context to use to gather properties about a CoreData entity.

Discussion

Returns a managed object context to use to gather properties about a CoreData entity.

Declared In

SurveyModelForm.h

Instance Methods

initWithEntityDescription:

Returns an instance of SurveyModelForm using an entity description.

- (id)initWithEntityDescription:(NSEntityDescription *)entityDescription

Parameters

entityDescription

An entity description created from a CoreData entity.

Return Value

New instance of SurveyModelForm.

Discussion

Returns an instance of SurveyModelForm using an entity description.

Declared In

SurveyModelForm.h

initWithEntityName:

Returns an instance of SurveyModelForm using the name of a CoreData entity.

- (id)initWithEntityName:(NSString *)entityName

Parameters

entityName

The name of a CoreData entity you want SurveyModelForm to use to create the form fields.

Return Value

New instance of SurveyModelForm.

Discussion

Returns an instance of SurveyModelForm using the name of a CoreData entity.

Declared In

SurveyModelForm.h