SCSelectionAttributes
@interface SCSelectionAttributes : SCPropertyAttributes {
SCDataStore *selectionItemsStore;
SCDataFetchOptions *selectionItemsFetchOptions;
BOOL allowMultipleSelection;
BOOL allowNoSelection;
NSUInteger maximumSelections;
BOOL autoDismissDetailView;
BOOL hideDetailViewNavigationBar;
BOOL allowAddingItems;
BOOL allowDeletingItems;
BOOL allowMovingItems;
BOOL allowEditingItems;
NSObject *placeholderuiElement;
NSObject *addNewObjectuiElement;
}
This class is used to extend the definition of an ‘SCPropertyAttributes’ instance of type SCPropertyTypeSelection, thus allowing further customization of the generated control by the user.
-
Undocumented
Declaration
Objective-C
SCDataStore *selectionItemsStore -
Undocumented
Declaration
Objective-C
SCDataFetchOptions *selectionItemsFetchOptions -
Undocumented
Declaration
Objective-C
BOOL allowMultipleSelection -
Undocumented
Declaration
Objective-C
BOOL allowNoSelection -
Undocumented
Declaration
Objective-C
NSUInteger maximumSelections -
Undocumented
Declaration
Objective-C
BOOL autoDismissDetailView -
Undocumented
Declaration
Objective-C
BOOL hideDetailViewNavigationBar -
Undocumented
Declaration
Objective-C
BOOL allowAddingItems -
Undocumented
Declaration
Objective-C
BOOL allowDeletingItems -
Undocumented
Declaration
Objective-C
BOOL allowMovingItems -
Undocumented
Declaration
Objective-C
BOOL allowEditingItems -
Undocumented
Declaration
Objective-C
NSObject *placeholderuiElement -
Undocumented
Declaration
Objective-C
NSObject *addNewObjectuiElement
-
Allocates and returns an initialized ‘SCSelectionAttributes’. *
- - parameter: _items The items of the generated selection control. Set to nil to ignore.
- - parameter: allowMultipleSel Determines if the generated selection control allows multiple selection.
- - parameter: allowNoSel Determines if the generated selection control allows no selection.
Declaration
Objective-C
+ (instancetype)attributesWithItems:(NSArray *)_items allowMultipleSelection:(BOOL)allowMultipleSel allowNoSelection:(BOOL)allowNoSel; -
+attributesWithItems:allowMultipleSelection: allowNoSelection: autoDismissDetailView: hideDetailViewNavigationBar: Allocates and returns an initialized ‘SCSelectionAttributes’. *
- - parameter: _items The items of the generated selection control. Set to nil to ignore.
- - parameter: allowMultipleSel Determines if the generated selection control allows multiple selection.
- - parameter: allowNoSel Determines if the generated selection control allows no selection.
- - parameter: autoDismiss Set to TRUE to automatically dismiss the selection detail view when an item is selected.
- - parameter: hideNavBar Set to TRUE to hide the detail view’s navigation bar. - note: Only applicable if autoDismiss is TRUE.
Declaration
Objective-C
+ (instancetype)attributesWithItems:(NSArray *)_items allowMultipleSelection:(BOOL)allowMultipleSel allowNoSelection:(BOOL)allowNoSel autoDismissDetailView:(BOOL)autoDismiss hideDetailViewNavigationBar:(BOOL)hideNavBar; -
Returns an initialized ‘SCSelectionAttributes’. *
- - parameter: _items The items of the generated selection control. Set to nil to ignore.
- - parameter: allowMultipleSel Determines if the generated selection control allows multiple selection.
- - parameter: allowNoSel Determines if the generated selection control allows no selection.
Declaration
Objective-C
- (instancetype)initWithItems:(NSArray *)_items allowMultipleSelection:(BOOL)allowMultipleSel allowNoSelection:(BOOL)allowNoSel; -
-initWithItems:allowMultipleSelection: allowNoSelection: autoDismissDetailView: hideDetailViewNavigationBar: Returns an initialized ‘SCSelectionAttributes’. *
- - parameter: _items The items of the generated selection control. Set to nil to ignore.
- - parameter: allowMultipleSel Determines if the generated selection control allows multiple selection.
- - parameter: allowNoSel Determines if the generated selection control allows no selection.
- - parameter: autoDismiss Set to TRUE to automatically dismiss the selection detail view when an item is selected.
- - parameter: hideNavBar Set to TRUE to hide the detail view’s navigation bar. - note: Only applicable if autoDismiss is TRUE.
Declaration
Objective-C
- (instancetype)initWithItems:(NSArray *)_items allowMultipleSelection:(BOOL)allowMultipleSel allowNoSelection:(BOOL)allowNoSel autoDismissDetailView:(BOOL)autoDismiss hideDetailViewNavigationBar:(BOOL)hideNavBar; -
The data store for the selection items.
Declaration
Objective-C
@property (nonatomic, strong) SCDataStore *selectionItemsStore; -
The fetch options for the selection items.
Declaration
Objective-C
@property (nonatomic, strong) SCDataFetchOptions *selectionItemsFetchOptions; -
The items stored in selectionItemsStore.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray *items; -
Determines if the generated selection control allows multiple selection.
Declaration
Objective-C
@property (nonatomic) BOOL allowMultipleSelection; -
Determines if the generated selection control allows no selection.
Declaration
Objective-C
@property (nonatomic) BOOL allowNoSelection; -
The maximum number of items that can be selected. Set to zero to allow an infinite number of selections. Default: 0.
- - note: Only applicable when allowMultipleSelection is TRUE.
Declaration
Objective-C
@property (nonatomic) NSUInteger maximumSelections; -
Set to TRUE to automatically dismiss the selection detail view when an item is selected.
Declaration
Objective-C
@property (nonatomic) BOOL autoDismissDetailView; -
Set to TRUE to hide the detail view’s navigation bar. - note: Only applicable if autoDismissDetailView is TRUE.
Declaration
Objective-C
@property (nonatomic) BOOL hideDetailViewNavigationBar; -
Determines if the generated control allows adding new items. Default: FALSE.
Declaration
Objective-C
@property (nonatomic) BOOL allowAddingItems; -
Determines if the generated control allows deleting existing items. Default: FALSE.
Declaration
Objective-C
@property (nonatomic) BOOL allowDeletingItems; -
Determines if the generated control allows moving items. Default: FALSE.
Declaration
Objective-C
@property (nonatomic) BOOL allowMovingItems; -
Determines if the generated control allows editing items. Default: FALSE.
Declaration
Objective-C
@property (nonatomic) BOOL allowEditingItems; -
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.
Declaration
Objective-C
@property (nonatomic, strong) NSObject *placeholderuiElement; -
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.
Declaration
Objective-C
@property (nonatomic, strong) NSObject *addNewObjectuiElement;
View on GitHub
Install in Dash
SCSelectionAttributes Class Reference