ORKResultSelector Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | NSCopying NSSecureCoding |
| Declared in | ORKResultPredicate.h ORKResultPredicate.m |
Overview
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.
Other Methods
+ selectorWithTaskIdentifier:stepIdentifier:resultIdentifier:
Returns a result selector initialized with the specified arguments.
+ (instancetype)selectorWithTaskIdentifier:(NSString *)taskIdentifier stepIdentifier:(NSString *)stepIdentifier resultIdentifier:(NSString *)resultIdentifierParameters
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
+ selectorWithStepIdentifier:resultIdentifier:
Returns a result selector initialized with the specified arguments.
+ (instancetype)selectorWithStepIdentifier:(NSString *)stepIdentifier resultIdentifier:(NSString *)resultIdentifierParameters
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:(NSString *)taskIdentifier resultIdentifier:(NSString *)resultIdentifierParameters
taskIdentifier |
An optional task 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 *)resultIdentifierParameters
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:(NSString *)taskIdentifier stepIdentifier:(NSString *)stepIdentifier resultIdentifier:(NSString *)resultIdentifierParameters
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:(NSString *)taskIdentifier resultIdentifier:(NSString *)resultIdentifierParameters
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:(NSString *)stepIdentifier resultIdentifier:(NSString *)resultIdentifierParameters
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 *)resultIdentifierParameters
resultIdentifier |
The result identifier string. |
|---|
Return Value
A result selector.
Declared In
ORKResultPredicate.h
– stepIdentifier
The encapsulated step identifier.
- (NSString *)stepIdentifierDiscussion
Setting this property to nil makes it have the same value as the result identifier.
Declared In
ORKResultPredicate.h
Other Methods
taskIdentifier
The encapsulated task identifier.
@property (nonatomic, copy, nullable) NSString *taskIdentifierDiscussion
A nil value means that the referenced task is the current one.
Declared In
ORKResultPredicate.h
resultIdentifier
The encapsulated result identifier.
@property (nonatomic, copy) NSString *resultIdentifierDiscussion
This property cannot be nil.
Declared In
ORKResultPredicate.h