SCArrayOfObjectsAttributes

@interface SCArrayOfObjectsAttributes : SCPropertyAttributes {
  SCDataDefinition *defaultObjectsDefinition;
  SCDataFetchOptions *objectsFetchOptions;
  BOOL allowAddingItems;
  BOOL allowDeletingItems;
  BOOL allowMovingItems;
  BOOL allowEditingItems;
  NSObject *placeholderuiElement;
  NSObject *addNewObjectuiElement;
  BOOL addNewObjectuiElementExistsInNormalMode;
  BOOL addNewObjectuiElementExistsInEdtingMode;
  SCSectionActions *_sectionActions;
}

This class is used to extend the definition of an ‘SCPropertyAttributes’ instance of type SCPropertyTypeArrayOfObjects, thus allowing further customization of the generated control by the user.

Creation and Initialization

  • Allocates and returns an initialized ‘SCArrayOfObjectsAttributes’. *

    • - parameter: definition The definition for the generated object control. Set to nil to ignore.
    • - parameter: allowAdding Determines if the generated control allows adding new objects.
    • - parameter: allowDeleting Determines if the generated control allows deleting objects.
    • - parameter: allowMoving Determines if the generated control allows moving objects.

    Declaration

    Objective-C

    + (instancetype)attributesWithObjectDefinition:(SCDataDefinition *)definition
                                  allowAddingItems:(BOOL)allowAdding
                                allowDeletingItems:(BOOL)allowDeleting
                                  allowMovingItems:(BOOL)allowMoving;
  • Allocates and returns an initialized ‘SCArrayOfObjectsAttributes’. *

    • - parameter: definition The class definition for the generated object control. Set to nil to ignore.
    • - parameter: allowAdding Determines if the generated control allows adding new objects.
    • - parameter: allowDeleting Determines if the generated control allows deleting objects.
    • - parameter: allowMoving Determines if the generated control allows moving objects.
    • - parameter: expandContent When TRUE, the generated user interface element will expand its content in the current view, instead of generating its own detail view.
    • - parameter: placeholderUI The uiElement that is displayed when no items are available. This object is typically of type SCTableViewCell.
    • - parameter: newObjectUI The uiElement that is used to add new objects when tapped. This object is typically of type SCTableViewCell.
    • - parameter: existsInNormalMode Determines if uiElement is displayed in ‘Normal Mode’.
    • - parameter: existsInEditingMode Determines if uiElement is displayed in ‘Editing Mode’.

    Declaration

    Objective-C

    + (instancetype)attributesWithObjectDefinition:(SCDataDefinition *)definition
                                  allowAddingItems:(BOOL)allowAdding
                                allowDeletingItems:(BOOL)allowDeleting
                                  allowMovingItems:(BOOL)allowMoving
                        expandContentInCurrentView:(BOOL)expandContent
                              placeholderuiElement:(NSObject *)placeholderUI
                             addNewObjectuiElement:(NSObject *)newObjectUI
           addNewObjectuiElementExistsInNormalMode:(BOOL)existsInNormalMode
          addNewObjectuiElementExistsInEditingMode:(BOOL)existsInEditingMode;
  • Returns an initialized ‘SCArrayOfObjectsAttributes’. *

    • - parameter: definition The definition for the generated object control. Set to nil to ignore.
    • - parameter: allowAdding Determines if the generated control allows adding new objects.
    • - parameter: allowDeleting Determines if the generated control allows deleting objects.
    • - parameter: allowMoving Determines if the generated control allows moving objects.

    Declaration

    Objective-C

    - (instancetype)initWithObjectDefinition:(SCDataDefinition *)definition
                            allowAddingItems:(BOOL)allowAdding
                          allowDeletingItems:(BOOL)allowDeleting
                            allowMovingItems:(BOOL)allowMoving;
  • Returns an initialized ‘SCArrayOfObjectsAttributes’. *

    • - parameter: definition The definition for the generated object control. Set to nil to ignore.
    • - parameter: allowAdding Determines if the generated control allows adding new objects.
    • - parameter: allowDeleting Determines if the generated control allows deleting objects.
    • - parameter: allowMoving Determines if the generated control allows moving objects.
    • - parameter: expandContent When TRUE, the generated user interface element will expand its content in the current view, instead of generating its own detail view.
    • - parameter: placeholderUI The uiElement that is displayed when no items are available to display. This object is typically of type SCTableViewCell.
    • - parameter: newObjectUI The uiElement that is used to add new objects when tapped. This object is typically of type SCTableViewCell.
    • - parameter: existsInNormalMode Determines if uiElement is displayed in ‘Normal Mode’.
    • - parameter: existsInEditingMode Determines if uiElement is displayed in ‘Editing Mode’.

    Declaration

    Objective-C

    - (instancetype)initWithObjectDefinition:(SCDataDefinition *)definition
                                allowAddingItems:(BOOL)allowAdding
                              allowDeletingItems:(BOOL)allowDeleting
                                allowMovingItems:(BOOL)allowMoving
                      expandContentInCurrentView:(BOOL)expandContent
                            placeholderuiElement:(NSObject *)placeholderUI
                           addNewObjectuiElement:(NSObject *)newObjectUI
         addNewObjectuiElementExistsInNormalMode:(BOOL)existsInNormalMode
        addNewObjectuiElementExistsInEditingMode:(BOOL)existsInEditingMode;

Configuration