ORKResultSelector Class Reference

Inherits from NSObject
Conforms to NSCopying
NSSecureCoding
Declared in ORKResultPredicate.h

The ORKResultSelector class unequivocally identifies a result within a set of task results.

You must use an instance of this object to specify the question result you are interested in when building a result predicate. See ORKResultPredicate for more information.

A result selector object contains a result identifier and, optionally, a task identifier and a step identifier. If the task identifier is nil, the selector refers to a result in the ongoing task. If you set the step identifier to nil, its value will be the same as the result identifier.

+ selectorWithTaskIdentifier:stepIdentifier:resultIdentifier:

Returns a result selector initialized with the specified arguments.

+ (instancetype)selectorWithTaskIdentifier:(nullable NSString *)taskIdentifier stepIdentifier:(nullable NSString *)stepIdentifier resultIdentifier:(NSString *)resultIdentifier

Parameters

taskIdentifier

An optional task identifier string.

stepIdentifier

An optional step identifier string.

resultIdentifier

The result identifier string.

Return Value

A result selector.

Declared In

ORKResultPredicate.h

+ selectorWithTaskIdentifier:resultIdentifier:

Returns a result selector initialized with the specified arguments.

+ (instancetype)selectorWithTaskIdentifier:(nullable NSString *)taskIdentifier resultIdentifier:(NSString *)resultIdentifier

Parameters

taskIdentifier

An optional task identifier string.

resultIdentifier

The result identifier string.

Return Value

A result selector.

Declared In

ORKResultPredicate.h

+ selectorWithStepIdentifier:resultIdentifier:

Returns a result selector initialized with the specified arguments.

+ (instancetype)selectorWithStepIdentifier:(nullable NSString *)stepIdentifier resultIdentifier:(NSString *)resultIdentifier

Parameters

stepIdentifier

An optional step identifier string.

resultIdentifier

The result identifier string.

Return Value

A result selector.

Declared In

ORKResultPredicate.h

+ selectorWithResultIdentifier:

Returns a result selector initialized with the specified arguments.

+ (instancetype)selectorWithResultIdentifier:(NSString *)resultIdentifier

Parameters

resultIdentifier

The result identifier string.

Return Value

A result selector.

Declared In

ORKResultPredicate.h

– initWithTaskIdentifier:stepIdentifier:resultIdentifier:

Returns a result selector initialized with the specified arguments.

- (instancetype)initWithTaskIdentifier:(nullable NSString *)taskIdentifier stepIdentifier:(nullable NSString *)stepIdentifier resultIdentifier:(NSString *)resultIdentifier

Parameters

taskIdentifier

An optional task identifier string.

stepIdentifier

An optional step identifier string.

resultIdentifier

The result identifier string.

Return Value

A result selector.

Declared In

ORKResultPredicate.h

– initWithTaskIdentifier:resultIdentifier:

Returns a result selector initialized with the specified arguments.

- (instancetype)initWithTaskIdentifier:(nullable NSString *)taskIdentifier resultIdentifier:(NSString *)resultIdentifier

Parameters

taskIdentifier

An optional task identifier string.

resultIdentifier

The result identifier string.

Return Value

A result selector.

Declared In

ORKResultPredicate.h

– initWithStepIdentifier:resultIdentifier:

Returns a result selector initialized with the specified arguments.

- (instancetype)initWithStepIdentifier:(nullable NSString *)stepIdentifier resultIdentifier:(NSString *)resultIdentifier

Parameters

stepIdentifier

An optional step identifier string.

resultIdentifier

The result identifier string.

Return Value

A result selector.

Declared In

ORKResultPredicate.h

– initWithResultIdentifier:

Returns a result selector initialized with the specified arguments.

- (instancetype)initWithResultIdentifier:(NSString *)resultIdentifier

Parameters

resultIdentifier

The result identifier string.

Return Value

A result selector.

Declared In

ORKResultPredicate.h

  taskIdentifier

The encapsulated task identifier.

@property (nonatomic, copy, nullable) NSString *taskIdentifier

Discussion

A nil value means that the referenced task is the current one.

Declared In

ORKResultPredicate.h

  stepIdentifier

The encapsulated step identifier.

@property (nonatomic, copy, nullable) NSString *stepIdentifier

Discussion

Setting this property to nil makes it have the same value as the result identifier.

Declared In

ORKResultPredicate.h

  resultIdentifier

The encapsulated result identifier.

@property (nonatomic, copy) NSString *resultIdentifier

Discussion

This property cannot be nil.

Declared In

ORKResultPredicate.h