SCObjectCell

@interface SCObjectCell : SCCustomCell {
  NSString *boundObjectTitleText;
}

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.

See

SCObjectSection, SCArrayOfObjectsSection.

Creation and Initialization

  • Allocates and returns an initialized SCObjectCell given a bound object. *

    • - parameter: object The object that SCObjectCell will use to generate its detail view cells.

    Declaration

    Objective-C

    + (instancetype)cellWithBoundObject:(NSObject *)object;
  • Allocates and returns an initialized SCObjectCell given a bound object and a class definition. *

    • - parameter: object The object that SCObjectCell will use to generate its detail view cells.
    • - parameter: definition The class definition for the object.

    Declaration

    Objective-C

    + (instancetype)cellWithBoundObject:(NSObject *)object
                  boundObjectDefinition:(SCDataDefinition *)definition;
  • Allocates and returns an initialized SCObjectCell given a bound object and a data store. *

    • - parameter: object The object that SCObjectCell will use to generate its detail view cells.
    • - parameter: store The data store containing the object.

    Declaration

    Objective-C

    + (instancetype)cellWithBoundObject:(NSObject *)object
                       boundObjectStore:(SCDataStore *)store;
  • Returns an initialized ‘SCObjectCell’ given a bound object. *

    • - parameter: object The object that ‘SCObjectCell’ will use to generate its detail view cells.

    Declaration

    Objective-C

    - (instancetype)initWithBoundObject:(NSObject *)object;
  • Returns an initialized ‘SCObjectCell’ given a bound object and a class definition. *

    • - parameter: object The object that ‘SCObjectCell’ will use to generate its detail view cells.
    • - parameter: definition The class definition for the object.

    Declaration

    Objective-C

    - (instancetype)initWithBoundObject:(NSObject *)object
                  boundObjectDefinition:(SCDataDefinition *)definition;
  • Returns an initialized SCObjectCell given a bound object and a data store. *

    • - parameter: object The object that SCObjectCell will use to generate its detail view cells.
    • - parameter: store The data store containing the object.

    Declaration

    Objective-C

    - (instancetype)initWithBoundObject:(NSObject *)object
                       boundObjectStore:(SCDataStore *)store;

Configuration

  • The class definition of the bound object.

    Declaration

    Objective-C

    @property (nonatomic, strong) SCDataDefinition *objectDefinition;
  • The bound object title that will appear in the cell’s textLabel.

    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.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *boundObjectTitleText;