SCObjectSelectionAttributes

@interface SCObjectSelectionAttributes : SCSelectionAttributes

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

Creation and Initialization

  • Allocates and returns an initialized ‘SCObjectSelectionAttributes’. *

    • - parameter: objects The array of objects that will be used to select from.
    • - parameter: definition The data structure definition of the objects.
    • - 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)attributesWithSelectionObjects:(NSArray *)objects
                                 objectsDefinition:(SCDataDefinition *)definition
                            allowMultipleSelection:(BOOL)allowMultipleSel
                                  allowNoSelection:(BOOL)allowNoSel;
  • Returns an initialized ‘SCObjectSelectionAttributes’. *

    • - parameter: objects The array of objects that will be used to select from.
    • - parameter: definition The data structure definition of the objects.
    • - 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)initWithSelectionObjects:(NSArray *)objects
                           objectsDefinition:(SCDataDefinition *)definition
                      allowMultipleSelection:(BOOL)allowMultipleSel
                            allowNoSelection:(BOOL)allowNoSel;

Configuration

  • Set this to the definition of the intermediate entity between the property’s definition and the objectsDefinition. This is useful in complex many-to-many relationships where you have created an intermediate entity between you main two entities. Default: nil.

    Declaration

    Objective-C

    @property (nonatomic, strong) SCDataDefinition *intermediateEntityDefinition;
  • /////////////////////////////////////////////////////////////////////////////////////// Internal framework properties ///////////////////////////////////////////////////////////////////////////////////////

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *objectsDefinitionibUniqueId;
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *ibPredicateString
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *ibPlaceholderText
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSTextAlignment ibPlaceholderTextAlignment
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *ibAddNewObjectText

Creation and Initialization

  • Allocates and returns an initialized SCObjectSelectionAttributes. *

    • - parameter: entityDefinition The entity definition of the entity whose objects are to be presented for selection.
    • - parameter: predicate The predicate used to filter the selection objects. Set to nil to ignore.
    • - parameter: allowMultipleSel Determines if the generated selection control allows multiple selection.
    • - warning: allowMultipleSel should only be set to TRUE if relationship is many to many.
    • - parameter: allowNoSel Determines if the generated selection control allows no selection.

    Declaration

    Objective-C

    + (instancetype)attributesWithObjectsEntityDefinition:
                        (SCEntityDefinition *)entityDefinition
                                           usingPredicate:(NSPredicate *)predicate
                                   allowMultipleSelection:(BOOL)allowMultipleSel
                                         allowNoSelection:(BOOL)allowNoSel;
  • Returns an initialized SCObjectSelectionAttributes. *

    • - parameter: entityDefinition The entity definition of the entity whose objects are to be presented for selection.
    • - parameter: predicate The predicate used to filter the selection objects. Set to nil to ignore.
    • - parameter: allowMultipleSel Determines if the generated selection control allows multiple selection.
    • - warning: allowMultipleSel should only be set to TRUE if relationship is many to many.
    • - parameter: allowNoSel Determines if the generated selection control allows no selection.

    Declaration

    Objective-C

    - (instancetype)initWithObjectsEntityDefinition:
                        (SCEntityDefinition *)entityDefinition
                                     usingPredicate:(NSPredicate *)predicate
                             allowMultipleSelection:(BOOL)allowMultipleSel
                                   allowNoSelection:(BOOL)allowNoSel;