Inherits from SCChecklistField : SCField : NSObject
Declared in SCTreelistField.h

Overview

The SCTreelistField object identifies a Sitecore system item’s treelist field.
The field with [SCField type] is equal to “Treelist” has the SCTreelistField type.

It provides a getter for the items in treelist and an asynchronous loader for reading items of treelist.

Tasks

Properties

fieldValue

The value of the field. [SCTreelistField fieldValue] is NSArray object. It is nil by default, so use [SCTreelistField readFieldValueOperation] to load NSArray of items. SCTreelistField object does not own loaded items to avoid retain cycles.

@property (nonatomic, readonly) id fieldValue

Discussion

The value of the field. [SCTreelistField fieldValue] is NSArray object. It is nil by default, so use [SCTreelistField readFieldValueOperation] to load NSArray of items. SCTreelistField object does not own loaded items to avoid retain cycles.

Declared In

SCTreelistField.h

Instance Methods

readFieldValueOperation

Used for loading the array of items in treelist.

- (SCAsyncOp)readFieldValueOperation

Return Value

SCAsyncOp block. Call it to get the expected result. The SCAsyncOpResult handler’s result is NSArray of SCItems objects or nil if error happens.

Discussion

Used for loading the array of items in treelist.

Declared In

SCTreelistField.h