Conforms to NSObject
Declared in TKDataForm.h

Overview

The TKDataSource protocol is adopted by an object that mediates the application’s data model for a TKDataForm object. The data source provides the data form object with the information it needs to construct and modify a data form.

Instance Methods

dataForm:editorClassForProperty:

The TKDataFormEditor for the specified property.

- (Class __nullable)dataForm:(TKDataForm *__nonnull)dataForm editorClassForProperty:(TKEntityProperty *__nonnull)property

Parameters

dataForm

The requesting TKDataForm object.

property

The property for which an editor will be returned.

Return Value

The TKDataFormEditor for the corresponding property.

Declared In

TKDataForm.h

dataForm:groupAtIndex:

TKEntityPropertyGroup at specified index.

- (TKEntityPropertyGroup *__nonnull)dataForm:(TKDataForm *__nonnull)dataForm groupAtIndex:(NSUInteger)groupIndex

Parameters

dataForm

The requesting TKDataForm object.

groupIndex

The index of the requested group.

Return Value

The TKEntityPropertyGroup at the specified index.

Declared In

TKDataForm.h

dataForm:numberOfPropertiesInGroup:

The number of rows in the corresponding section.

- (NSUInteger)dataForm:(TKDataForm *__nonnull)dataForm numberOfPropertiesInGroup:(NSUInteger)groupIndex

Parameters

dataForm

The requesting TKDataForm object.

groupIndex

The index of the group.

Return Value

The number of rows in the corresponding section.

Declared In

TKDataForm.h

dataForm:propertyInGroup:atIndex:

The TKEntityProperty at the specified index path.

- (TKEntityProperty *__nullable)dataForm:(TKDataForm *__nonnull)dataForm propertyInGroup:(NSUInteger)groupIndex atIndex:(NSUInteger)propertyIndex

Parameters

dataForm

The requesting TKDataForm object.

groupIndex

The index of the properties group.

propertyIndex

The index of the propery in the group.

Return Value

The TKEntityProperty at the specified index path.

Declared In

TKDataForm.h

dataForm:setValue:forProperty:

Defines the value for the corresponding property.

- (BOOL)dataForm:(TKDataForm *__nonnull)dataForm setValue:(id __nullable)value forProperty:(TKEntityProperty *__nonnull)property

Parameters

dataForm

The requesting TKDataForm object.

value

The value that will be set to the property.

property

The propery which value will be set.

Return Value

Returns true if the value was set properly.

Declared In

TKDataForm.h

dataForm:titleForHeaderInGroup:

The header title of the corresponding section.

- (NSString *__nullable)dataForm:(TKDataForm *__nonnull)dataForm titleForHeaderInGroup:(NSUInteger)groupIndex

Parameters

dataForm

The requesting TKDataForm object.

groupIndex

The section which requests a header title.

Return Value

The title string.

Declared In

TKDataForm.h

indexOfGroupInDataForm:

The index of the specified group.

- (NSUInteger)indexOfGroupInDataForm:(TKEntityPropertyGroup *__nonnull)group

Parameters

group

The which index is requested

Return Value

The index of the group.

Declared In

TKDataForm.h

numberOfGroupsInDataForm:

The number of sections in the form.

- (NSUInteger)numberOfGroupsInDataForm:(TKDataForm *__nonnull)dataForm

Parameters

dataForm

The requesting TKDataForm object.

Return Value

The number of section in the data form.

Declared In

TKDataForm.h