Inherits from SCSelectionAttributes : SCPropertyAttributes : NSObject
Declared in SCPropertyAttributes.h

Overview

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.

Tasks

Creation and Initialization

Configuration

  •   intermediateEntityDefinition

    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.

    property

CoreData Methods

WebServices Methods

Properties

intermediateEntityDefinition

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.

@property (nonatomic, strong) SCDataDefinition *intermediateEntityDefinition

Declared In

SCPropertyAttributes.h

Class Methods

attributesWithObjectsEntityDefinition:usingPredicate:allowMultipleSelection:allowNoSelection:

Allocates and returns an initialized SCObjectSelectionAttributes.

+ (id)attributesWithObjectsEntityDefinition:(SCEntityDefinition *)entityDefinition usingPredicate:(NSPredicate *)predicate allowMultipleSelection:(BOOL)allowMultipleSel allowNoSelection:(BOOL)allowNoSel

Parameters

entityDefinition

The entity definition of the entity whose objects are to be presented for selection.

predicate

The predicate used to filter the selection objects. 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.

Discussion

Warning: allowMultipleSel should only be set to TRUE if relationship is many to many.

Declared In

SCObjectSelectionAttributes+CoreData.h

attributesWithObjectsWebServiceDefinition:allowMultipleSelection:allowNoSelection:

Allocates and returns an initialized SCObjectSelectionAttributes.

+ (id)attributesWithObjectsWebServiceDefinition:(SCWebServiceDefinition *)definition allowMultipleSelection:(BOOL)allowMultipleSel allowNoSelection:(BOOL)allowNoSel

Parameters

definition

The web service definition of the objects that will be presented for selection.

allowMultipleSel

Determines if the generated selection control allows multiple selection.

allowNoSel

Determines if the generated selection control allows no selection.

Declared In

SCObjectSelectionAttributes+WebServices.h

attributesWithSelectionObjects:objectsDefinition:allowMultipleSelection:allowNoSelection:

Allocates and returns an initialized ‘SCObjectSelectionAttributes’.

+ (id)attributesWithSelectionObjects:(NSArray *)objects objectsDefinition:(SCDataDefinition *)definition allowMultipleSelection:(BOOL)allowMultipleSel allowNoSelection:(BOOL)allowNoSel

Parameters

objects

The array of objects that will be used to select from.

definition

The data structure definition of the objects.

allowMultipleSel

Determines if the generated selection control allows multiple selection.

allowNoSel

Determines if the generated selection control allows no selection.

Declared In

SCPropertyAttributes.h

Instance Methods

initWithObjectsEntityDefinition:usingPredicate:allowMultipleSelection:allowNoSelection:

Returns an initialized SCObjectSelectionAttributes.

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

Parameters

predicate

The predicate used to filter the selection objects. 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.

classDefinition

The class definition of the entity whose objects are to be presented for selection.

Discussion

Warning: allowMultipleSel should only be set to TRUE if relationship is many to many.

Declared In

SCObjectSelectionAttributes+CoreData.h

initWithObjectsWebServiceDefinition:allowMultipleSelection:allowNoSelection:

Returns an initialized SCObjectSelectionAttributes.

- (id)initWithObjectsWebServiceDefinition:(SCWebServiceDefinition *)definition allowMultipleSelection:(BOOL)allowMultipleSel allowNoSelection:(BOOL)allowNoSel

Parameters

definition

The web service definition of the objects that will be presented for selection.

allowMultipleSel

Determines if the generated selection control allows multiple selection.

allowNoSel

Determines if the generated selection control allows no selection.

Declared In

SCObjectSelectionAttributes+WebServices.h

initWithSelectionObjects:objectsDefinition:allowMultipleSelection:allowNoSelection:

Returns an initialized ‘SCObjectSelectionAttributes’.

- (id)initWithSelectionObjects:(NSArray *)objects objectsDefinition:(SCDataDefinition *)definition allowMultipleSelection:(BOOL)allowMultipleSel allowNoSelection:(BOOL)allowNoSel

Parameters

objects

The array of objects that will be used to select from.

definition

The data structure definition of the objects.

allowMultipleSel

Determines if the generated selection control allows multiple selection.

allowNoSel

Determines if the generated selection control allows no selection.

Declared In

SCPropertyAttributes.h