SCObjectCell Class Reference
Inherits from | SCCustomCell : SCTableViewCell : UITableViewCell |
Declared in | SCTableViewCell.h |
Overview
This class functions as a cell that is able to automatically generate a detail view with cells generated from a given bound object’s properties.
If the bound object is given without an extended class definition (SCClassDefinition), then the cells will only be generated for properties of type NSString and NSNumber, and will be either of type SCTextFieldCell or SCNumericTextFieldCell, respectively. If an SCClassDefinition is provided for the bound object, a full fledged detail view of cells will be generated.
When SCObjectCell is selected by the end-user, a detail view optionally fires up to to give the user the ability to edit the object’s properties.
Tasks
Creation and Initialization
-
+ cellWithBoundObject:
-
+ cellWithBoundObject:boundObjectDefinition:
-
+ cellWithBoundObject:boundObjectStore:
-
– initWithBoundObject:
-
– initWithBoundObject:boundObjectDefinition:
-
– initWithBoundObject:boundObjectStore:
Configuration
-
objectDefinition
property -
boundObjectTitleText
property
Properties
boundObjectTitleText
The bound object title that will appear in the cell’s textLabel.
@property (nonatomic, copy) NSString *boundObjectTitleText
Discussion
If this value is nil, ‘SCObjectCell’ uses the value of the title property found in objectDefinition. Set this value to override the default behaviour and provide your own title text for the object.
Declared In
SCTableViewCell.h
Class Methods
cellWithBoundObject:
Allocates and returns an initialized SCObjectCell given a bound object.
+ (instancetype)cellWithBoundObject:(NSObject *)object
Parameters
- object
The object that SCObjectCell will use to generate its detail view cells.
Declared In
SCTableViewCell.h
cellWithBoundObject:boundObjectDefinition:
Allocates and returns an initialized SCObjectCell given a bound object and a class definition.
+ (instancetype)cellWithBoundObject:(NSObject *)object boundObjectDefinition:(SCDataDefinition *)definition
Parameters
- object
The object that SCObjectCell will use to generate its detail view cells.
- classDefinition
The class definition for the object.
Declared In
SCTableViewCell.h
cellWithBoundObject:boundObjectStore:
Allocates and returns an initialized SCObjectCell given a bound object and a data store.
+ (instancetype)cellWithBoundObject:(NSObject *)object boundObjectStore:(SCDataStore *)store
Parameters
- object
The object that SCObjectCell will use to generate its detail view cells.
- store
The data store containing the object.
Declared In
SCTableViewCell.h
Instance Methods
initWithBoundObject:
Returns an initialized ‘SCObjectCell’ given a bound object.
- (instancetype)initWithBoundObject:(NSObject *)object
Parameters
- object
The object that ‘SCObjectCell’ will use to generate its detail view cells.
Declared In
SCTableViewCell.h
initWithBoundObject:boundObjectDefinition:
Returns an initialized ‘SCObjectCell’ given a bound object and a class definition.
- (instancetype)initWithBoundObject:(NSObject *)object boundObjectDefinition:(SCDataDefinition *)definition
Parameters
- object
The object that ‘SCObjectCell’ will use to generate its detail view cells.
- classDefinition
The class definition for the object.
Declared In
SCTableViewCell.h
initWithBoundObject:boundObjectStore:
Returns an initialized SCObjectCell given a bound object and a data store.
- (instancetype)initWithBoundObject:(NSObject *)object boundObjectStore:(SCDataStore *)store
Parameters
- object
The object that SCObjectCell will use to generate its detail view cells.
- store
The data store containing the object.
Declared In
SCTableViewCell.h