SurveyModelForm Class Reference
| 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.
-
– initWithEntityName:Returns an instance of
SurveyModelFormusing the name of a CoreData entity. -
– initWithEntityDescription:Returns an instance of
SurveyModelFormusing an entity description. -
+ managedObjectContextReturns a managed object context to use to gather properties about a CoreData entity.
Class Methods
managedObjectContext
Returns a managed object context to use to gather properties about a CoreData entity.
+ (NSManagedObjectContext *)managedObjectContextReturn 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.hInstance Methods
initWithEntityDescription:
Returns an instance of SurveyModelForm using an entity description.
- (id)initWithEntityDescription:(NSEntityDescription *)entityDescriptionParameters
- 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.hinitWithEntityName:
Returns an instance of SurveyModelForm using the name of a CoreData entity.
- (id)initWithEntityName:(NSString *)entityNameParameters
- entityName
The name of a CoreData entity you want
SurveyModelFormto 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