Inherits from SCPropertyAttributes : NSObject
Declared in SCPropertyAttributes.h

Overview

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.

Tasks

Creation and Initialization

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

allowAddingItems

Determines if the generated control allows adding new items. Default: FALSE. 
@property (nonatomic) BOOL allowAddingItems

Declared In

SCPropertyAttributes.h

allowDeletingItems

Determines if the generated control allows deleting existing items. Default: FALSE. 
@property (nonatomic) BOOL allowDeletingItems

Declared In

SCPropertyAttributes.h

allowEditingItems

Determines if the generated control allows editing items. Default: FALSE. 
@property (nonatomic) BOOL allowEditingItems

Declared In

SCPropertyAttributes.h

allowMovingItems

Determines if the generated control allows moving items. Default: FALSE. 
@property (nonatomic) BOOL allowMovingItems

Declared In

SCPropertyAttributes.h

allowMultipleSelection

Determines if the generated selection control allows multiple selection.

@property (nonatomic, readwrite) BOOL allowMultipleSelection

Declared In

SCPropertyAttributes.h

allowNoSelection

Determines if the generated selection control allows no selection.

@property (nonatomic, readwrite) BOOL allowNoSelection

Declared In

SCPropertyAttributes.h

autoDismissDetailView

Set to TRUE to automatically dismiss the selection detail view when an item is selected.

@property (nonatomic, readwrite) BOOL autoDismissDetailView

Declared In

SCPropertyAttributes.h

hideDetailViewNavigationBar

Set to TRUE to hide the detail view’s navigation bar. @note Only applicable if autoDismissDetailView is TRUE.

@property (nonatomic, readwrite) BOOL hideDetailViewNavigationBar

Declared In

SCPropertyAttributes.h

items

The items stored in selectionItemsStore.

@property (nonatomic, readonly) NSArray *items

Declared In

SCPropertyAttributes.h

maximumSelections

The maximum number of items that can be selected. Set to zero to allow an infinite number of selections. Default: 0.

@property (nonatomic, readwrite) NSUInteger maximumSelections

Discussion

Note: Only applicable when allowMultipleSelection is TRUE.

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

selectionItemsFetchOptions

The fetch options for the selection items.

@property (nonatomic, strong) SCDataFetchOptions *selectionItemsFetchOptions

Declared In

SCPropertyAttributes.h

selectionItemsStore

The data store for the selection items.

@property (nonatomic, strong) SCDataStore *selectionItemsStore

Declared In

SCPropertyAttributes.h

Class Methods

attributesWithItems:allowMultipleSelection:allowNoSelection:

Allocates and returns an initialized ‘SCSelectionAttributes’.

+ (id)attributesWithItems:(NSArray *)_items allowMultipleSelection:(BOOL)allowMultipleSel allowNoSelection:(BOOL)allowNoSel

Parameters

_items

The items of the generated selection control. Set to nil to ignore.

allowMultipleSel

Determines if the generated selection control allows multiple selection.

allowNoSel

Determines if the generated selection control allows no selection.

Declared In

SCPropertyAttributes.h

attributesWithItems:allowMultipleSelection:allowNoSelection:autoDismissDetailView:hideDetailViewNavigationBar:

Allocates and returns an initialized ‘SCSelectionAttributes’.

+ (id)attributesWithItems:(NSArray *)_items allowMultipleSelection:(BOOL)allowMultipleSel allowNoSelection:(BOOL)allowNoSel autoDismissDetailView:(BOOL)autoDismiss hideDetailViewNavigationBar:(BOOL)hideNavBar

Parameters

_items

The items of the generated selection control. Set to nil to ignore.

allowMultipleSel

Determines if the generated selection control allows multiple selection.

allowNoSel

Determines if the generated selection control allows no selection.

autoDismiss

Set to TRUE to automatically dismiss the selection detail view when an item is selected.

hideNavBar

Set to TRUE to hide the detail view’s navigation bar. @note Only applicable if autoDismiss is TRUE.

Declared In

SCPropertyAttributes.h

Instance Methods

initWithItems:allowMultipleSelection:allowNoSelection:

Returns an initialized ‘SCSelectionAttributes’.

- (id)initWithItems:(NSArray *)_items allowMultipleSelection:(BOOL)allowMultipleSel allowNoSelection:(BOOL)allowNoSel

Parameters

_items

The items of the generated selection control. Set to nil to ignore.

allowMultipleSel

Determines if the generated selection control allows multiple selection.

allowNoSel

Determines if the generated selection control allows no selection.

Declared In

SCPropertyAttributes.h

initWithItems:allowMultipleSelection:allowNoSelection:autoDismissDetailView:hideDetailViewNavigationBar:

Returns an initialized ‘SCSelectionAttributes’.

- (id)initWithItems:(NSArray *)_items allowMultipleSelection:(BOOL)allowMultipleSel allowNoSelection:(BOOL)allowNoSel autoDismissDetailView:(BOOL)autoDismiss hideDetailViewNavigationBar:(BOOL)hideNavBar

Parameters

_items

The items of the generated selection control. Set to nil to ignore.

allowMultipleSel

Determines if the generated selection control allows multiple selection.

allowNoSel

Determines if the generated selection control allows no selection.

autoDismiss

Set to TRUE to automatically dismiss the selection detail view when an item is selected.

hideNavBar

Set to TRUE to hide the detail view’s navigation bar. @note Only applicable if autoDismiss is TRUE.

Declared In

SCPropertyAttributes.h