SCArrayOfObjectsAttributes Class Reference
Inherits from | SCPropertyAttributes : NSObject |
Declared in | SCPropertyAttributes.h |
Overview
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.
Tasks
Creation and Initialization
-
+ attributesWithObjectDefinition:allowAddingItems:allowDeletingItems:allowMovingItems:
Allocates and returns an initialized ‘SCArrayOfObjectsAttributes’.
-
+ attributesWithObjectDefinition:allowAddingItems:allowDeletingItems:allowMovingItems:expandContentInCurrentView:placeholderuiElement:addNewObjectuiElement:addNewObjectuiElementExistsInNormalMode:addNewObjectuiElementExistsInEditingMode:
Allocates and returns an initialized ‘SCArrayOfObjectsAttributes’.
-
– initWithObjectDefinition:allowAddingItems:allowDeletingItems:allowMovingItems:
Returns an initialized ‘SCArrayOfObjectsAttributes’.
-
– initWithObjectDefinition:allowAddingItems:allowDeletingItems:allowMovingItems:expandContentInCurrentView:placeholderuiElement:addNewObjectuiElement:addNewObjectuiElementExistsInNormalMode:addNewObjectuiElementExistsInEditingMode:
Returns an initialized ‘SCArrayOfObjectsAttributes’.
Configuration
-
defaultObjectsDefinition
The default data definition for the objects.
property -
objectsFetchOptions
The fetch options for the objects.
property -
allowAddingItems
propertyDetermines if the generated control allows adding new objects. Default: TRUE.
-
allowDeletingItems
propertyDetermines if the generated control allows deleting objects. Default: TRUE.
-
allowMovingItems
propertyDetermines if the generated control allows moving objects. Default: TRUE.
-
allowEditingItems
propertyDetermines if the generated control allows editing objects. Default: TRUE.
-
addNewObjectuiElement
The uiElement that is displayed when no items are available to display. This object is typically of type SCTableViewCell. Set to nil to ignore. Default:nil.
property -
placeholderuiElement
The user interface element that is used to add new objects when selected. This object is typically of type SCTableViewCell. Set to nil to ignore. Default:nil.
property -
addNewObjectuiElementExistsInNormalMode
Determines if uiElement is displayed in ‘Normal Mode’. Default: TRUE.
property -
addNewObjectuiElementExistsInEditingMode
Determines if uiElement is displayed in ‘Editing Mode’. Default: TRUE.
property -
sectionActions
The actions of the generated SCArrayOfObjectsSection.
property -
objectsfetchOptions
The fetch options for the objects.
property
Properties
addNewObjectuiElement
The uiElement that is displayed when no items are available to display. This object is typically of type SCTableViewCell. Set to nil to ignore. Default:nil.
@property (nonatomic, strong) NSObject *addNewObjectuiElement
Declared In
SCPropertyAttributes.h
addNewObjectuiElementExistsInEditingMode
Determines if uiElement is displayed in ‘Editing Mode’. Default: TRUE.
@property (nonatomic) BOOL addNewObjectuiElementExistsInEditingMode
Declared In
SCPropertyAttributes.h
addNewObjectuiElementExistsInNormalMode
Determines if uiElement is displayed in ‘Normal Mode’. Default: TRUE.
@property (nonatomic) BOOL addNewObjectuiElementExistsInNormalMode
Declared In
SCPropertyAttributes.h
allowAddingItems
Determines if the generated control allows adding new objects. Default: TRUE.
@property (nonatomic) BOOL allowAddingItems
Declared In
SCPropertyAttributes.h
allowDeletingItems
Determines if the generated control allows deleting objects. Default: TRUE.
@property (nonatomic) BOOL allowDeletingItems
Declared In
SCPropertyAttributes.h
allowEditingItems
Determines if the generated control allows editing objects. Default: TRUE.
@property (nonatomic) BOOL allowEditingItems
Declared In
SCPropertyAttributes.h
allowMovingItems
Determines if the generated control allows moving objects. Default: TRUE.
@property (nonatomic) BOOL allowMovingItems
Declared In
SCPropertyAttributes.h
defaultObjectsDefinition
The default data definition for the objects.
@property (nonatomic, strong) SCDataDefinition *defaultObjectsDefinition
Declared In
SCPropertyAttributes.h
objectsFetchOptions
The fetch options for the objects.
@property (nonatomic, strong) SCDataFetchOptions *objectsFetchOptions
Declared In
SCPropertyAttributes.h
objectsfetchOptions
The fetch options for the objects.
@property (nonatomic, strong) SCDataFetchOptions *objectsfetchOptions
Declared In
SCPropertyAttributes.h
placeholderuiElement
The user interface element that is used to add new objects when selected. This object is typically of type SCTableViewCell. Set to nil to ignore. Default:nil.
@property (nonatomic, strong) NSObject *placeholderuiElement
Declared In
SCPropertyAttributes.h
sectionActions
The actions of the generated SCArrayOfObjectsSection.
@property (nonatomic, readonly) SCSectionActions *sectionActions
Declared In
SCPropertyAttributes.h
Class Methods
attributesWithObjectDefinition:allowAddingItems:allowDeletingItems:allowMovingItems:
Allocates and returns an initialized ‘SCArrayOfObjectsAttributes’.
+ (id)attributesWithObjectDefinition:(SCDataDefinition *)definition allowAddingItems:(BOOL)allowAdding allowDeletingItems:(BOOL)allowDeleting allowMovingItems:(BOOL)allowMoving
Parameters
- definition
The definition for the generated object control. Set to nil to ignore.
- allowAdding
Determines if the generated control allows adding new objects.
- allowDeleting
Determines if the generated control allows deleting objects.
- allowMoving
Determines if the generated control allows moving objects.
Declared In
SCPropertyAttributes.h
attributesWithObjectDefinition:allowAddingItems:allowDeletingItems:allowMovingItems:expandContentInCurrentView:placeholderuiElement:addNewObjectuiElement:addNewObjectuiElementExistsInNormalMode:addNewObjectuiElementExistsInEditingMode:
Allocates and returns an initialized ‘SCArrayOfObjectsAttributes’.
+ (id)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
Parameters
- definition
The class definition for the generated object control. Set to nil to ignore.
- allowAdding
Determines if the generated control allows adding new objects.
- allowDeleting
Determines if the generated control allows deleting objects.
- allowMoving
Determines if the generated control allows moving objects.
- expandContent
When TRUE, the generated user interface element will expand its content in the current view, instead of generating its own detail view.
- placeholderUI
The uiElement that is displayed when no items are available. This object is typically of type SCTableViewCell.
- newObjectUI
The uiElement that is used to add new objects when tapped. This object is typically of type SCTableViewCell.
- existsInNormalMode
Determines if uiElement is displayed in ‘Normal Mode’.
- existsInEditingMode
Determines if uiElement is displayed in ‘Editing Mode’.
Declared In
SCPropertyAttributes.h
Instance Methods
initWithObjectDefinition:allowAddingItems:allowDeletingItems:allowMovingItems:
Returns an initialized ‘SCArrayOfObjectsAttributes’.
- (id)initWithObjectDefinition:(SCDataDefinition *)definition allowAddingItems:(BOOL)allowAdding allowDeletingItems:(BOOL)allowDeleting allowMovingItems:(BOOL)allowMoving
Parameters
- definition
The definition for the generated object control. Set to nil to ignore.
- allowAdding
Determines if the generated control allows adding new objects.
- allowDeleting
Determines if the generated control allows deleting objects.
- allowMoving
Determines if the generated control allows moving objects.
Declared In
SCPropertyAttributes.h
initWithObjectDefinition:allowAddingItems:allowDeletingItems:allowMovingItems:expandContentInCurrentView:placeholderuiElement:addNewObjectuiElement:addNewObjectuiElementExistsInNormalMode:addNewObjectuiElementExistsInEditingMode:
Returns an initialized ‘SCArrayOfObjectsAttributes’.
- (id)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
Parameters
- definition
The definition for the generated object control. Set to nil to ignore.
- allowAdding
Determines if the generated control allows adding new objects.
- allowDeleting
Determines if the generated control allows deleting objects.
- allowMoving
Determines if the generated control allows moving objects.
- expandContent
When TRUE, the generated user interface element will expand its content in the current view, instead of generating its own detail view.
- placeholderUI
The uiElement that is displayed when no items are available to display. This object is typically of type SCTableViewCell.
- newObjectUI
The uiElement that is used to add new objects when tapped. This object is typically of type SCTableViewCell.
- existsInNormalMode
Determines if uiElement is displayed in ‘Normal Mode’.
- existsInEditingMode
Determines if uiElement is displayed in ‘Editing Mode’.
Declared In
SCPropertyAttributes.h