SCArrayOfObjectsCell
@interface SCArrayOfObjectsCell : SCCustomCell {
SCDataStore *dataStore;
SCDataFetchOptions *dataFetchOptions;
BOOL allowAddingItems;
BOOL allowDeletingItems;
BOOL allowMovingItems;
BOOL allowEditDetailView;
BOOL allowRowSelection;
BOOL autoSelectNewItemCell;
BOOL displayItemsCountInBadgeView;
SCTableViewCell *placeholderCell;
SCTableViewCell *addNewItemCell;
BOOL addNewItemCellExistsInNormalMode;
BOOL addNewItemCellExistsInEditingMode;
SCSectionActions *_detailSectionActions;
}
This class functions as a cell that, given an array of objects, will generate an SCArrayOfObjectsSection detail view that’s displayed when the cell is tapped.
The cell can also be optionally bound to an object and generate an additional SCObjectSection detail view when the cell is tapped while the table is in edit mode.
See
SCObjectCell, SCObjectSection, SCArrayOfObjectsSection.-
Undocumented
Declaration
Objective-C
SCDataStore *dataStore
-
Undocumented
Declaration
Objective-C
SCDataFetchOptions *dataFetchOptions
-
Undocumented
Declaration
Objective-C
BOOL allowAddingItems
-
Undocumented
Declaration
Objective-C
BOOL allowDeletingItems
-
Undocumented
Declaration
Objective-C
BOOL allowMovingItems
-
Undocumented
Declaration
Objective-C
BOOL allowEditDetailView
-
Undocumented
Declaration
Objective-C
BOOL allowRowSelection
-
Undocumented
Declaration
Objective-C
BOOL autoSelectNewItemCell
-
Undocumented
Declaration
Objective-C
BOOL displayItemsCountInBadgeView
-
Undocumented
Declaration
Objective-C
SCTableViewCell *placeholderCell
-
Undocumented
Declaration
Objective-C
SCTableViewCell *addNewItemCell
-
Undocumented
Declaration
Objective-C
BOOL addNewItemCellExistsInNormalMode
-
Undocumented
Declaration
Objective-C
BOOL addNewItemCellExistsInEditingMode
-
Undocumented
Declaration
Objective-C
SCSectionActions *_detailSectionActions
-
Allocates and returns an initialized SCArrayOfObjectsCell given a data store. *
- - parameter: store The data store containing the cell’s objects.
Declaration
Objective-C
+ (instancetype)cellWithDataStore:(SCDataStore *)store;
-
Allocates and returns an initialized SCArrayOfObjectsCell given an array of objects and their class definition. *
- - parameter: cellItems An array of objects that the cell will use to generate its detail cells.
- - parameter: definition The definition of the objects in the objects array. If the array contains more than one type of object, then their respective definitions must be added to the itemsClassDefinitions dictionary after initialization.
Declaration
Objective-C
+ (instancetype)cellWithItems:(NSMutableArray *)cellItems itemsDefinition:(SCDataDefinition *)definition;
-
Returns an initialized SCArrayOfObjectsCell given a data store. *
- - parameter: store The data store containing the cell’s objects.
Declaration
Objective-C
- (instancetype)initWithDataStore:(SCDataStore *)store;
-
Returns an initialized SCArrayOfObjectsCell given an array of objects and their class definition. *
- - parameter: cellItems An array of objects that the cell will use to generate its detail cells.
- - parameter: definition The class definition of the class or entity of the objects in the objects array. If the array contains more than one type of object, then their respective class definitions must be added to the itemsClassDefinitions dictionary after initialization.
Declaration
Objective-C
- (instancetype)initWithItems:(NSMutableArray *)cellItems itemsDefinition:(SCDataDefinition *)definition;
-
The data store that’s used to store and fetch the cell’s objects.
Declaration
Objective-C
@property (nonatomic, strong) SCDataStore *dataStore;
-
The options used to fetch the cell’s items from dataStore.
Declaration
Objective-C
@property (nonatomic, strong) SCDataFetchOptions *dataFetchOptions;
-
The items fetched from the dataStore.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray *items;
-
Allows/disables adding new objects to the items array. Default: TRUE.
Declaration
Objective-C
@property (nonatomic) BOOL allowAddingItems;
-
Allows/disables deleting new objects from the items array. Default: TRUE.
Declaration
Objective-C
@property (nonatomic) BOOL allowDeletingItems;
-
Allows/disables moving objects from one row to another. Default: TRUE.
Declaration
Objective-C
@property (nonatomic) BOOL allowMovingItems;
-
Allows/disables editing detail views for objects. Default: TRUE.
Declaration
Objective-C
@property (nonatomic) BOOL allowEditDetailView;
-
Allows/disables row selection. Default: TRUE.
Declaration
Objective-C
@property (nonatomic) BOOL allowRowSelection;
-
Allows/disables automatic cell selection of newly created items. Default: FALSE.
Declaration
Objective-C
@property (nonatomic) BOOL autoSelectNewItemCell;
-
Allows/disables displaying the number of objects in the cell’s badgeView. Default: TRUE.
Declaration
Objective-C
@property (nonatomic) BOOL displayItemsCountInBadgeView;
-
The set of actions for the cell’s automatically generated detail section.
Declaration
Objective-C
@property (nonatomic, readonly) SCSectionActions *detailSectionActions;
-
When set to a valid cell object, ‘placeholderCell’ will be displayed when no items exist in the generated section. As soon as any items are added, this cell automatically disappears. Default: nil.
Declaration
Objective-C
@property (nonatomic, strong) SCTableViewCell *placeholderCell;
-
When set to a valid cell object, ‘addNewItemCell’ will be displayed as the last cell of the generated section, and will add a new item to the section whenever it gets tapped by the user. This cell can be used as an alternative to the section’s addButtonItem. Default: nil.
Declaration
Objective-C
@property (nonatomic, strong) SCTableViewCell *addNewItemCell;
-
When TRUE, addNewItemCell will be displayed in Normal Mode. Default: TRUE.
Declaration
Objective-C
@property (nonatomic) BOOL addNewItemCellExistsInNormalMode;
-
When TRUE, addNewItemCell will be displayed in Editing Mode. Default: TRUE.
Declaration
Objective-C
@property (nonatomic) BOOL addNewItemCellExistsInEditingMode;
-
Allocates and returns an initialized SCArrayOfObjectsCell given a header title and an entity definition.
Note
This method creates a cell with all the objects that exist in classDefinition’s entity’s managedObjectContext. To create a cell with only a subset of these objects, consider using the other cell initializers.
Declaration
Objective-C
+ (instancetype)cellWithEntityDefinition:(SCEntityDefinition *)definition;
Parameters
definition
The entity definition of the objects in the objects set.
-
Allocates and returns an initialized SCArrayOfObjectsCell given a mutable set of objects.
Warning
This method should only be used to create a cell with the contents of a Core Data relationship.
Declaration
Objective-C
+ (instancetype)cellWithBoundItemsSet:(NSMutableSet *)cellItemsSet boundSetEntityDefinition:(SCEntityDefinition *)definition boundSetOwnsObjects:(BOOL)ownsObjects;
Parameters
cellItemsSet
A mutable set of objects that the cell will use to generate its cells.
definition
The class definition of the entity of the objects in the objects set.
-
Returns an initialized SCArrayOfObjectsCell given a header title and an entity definition.
Note
This method creates a cell with all the objects that exist in classDefinition’s entity’s managedObjectContext. To create a cell with only a subset of these objects, consider using the other cell initializers.
Declaration
Objective-C
- (instancetype)initWithEntityDefinition:(SCEntityDefinition *)definition;
Parameters
definition
The entity definition of the objects in the objects set.
-
Returns an initialized SCArrayOfObjectsCell given a mutable set of objects.
Warning
This method should only be used to create a cell with the contents of a Core Data relationship.
Declaration
Objective-C
- (instancetype)initWithBoundItemsSet:(NSMutableSet *)cellItemsSet boundSetEntityDefinition:(SCEntityDefinition *)definition boundSetOwnsObjects:(BOOL)ownsObjects;
Parameters
cellItemsSet
A mutable set of objects that the cell will use to generate its cells.
definition
The class definition of the entity of the objects in the objects set.