NimbusKit
1.2.1 - Fork Nimbus on Github - Visit the Nimbus Wiki
The iOS framework that grows only as fast as its documentation
|
A base implementation of an NSOperation that supports traditional delegation and blocks.
A subclass should call the operationDid* methods to notify the delegate on the main thread of changes in the operation's state. Calling these methods will notify the delegate and the blocks if provided.
Tasks | |
Delegation | |
id< NIOperationDelegate > | delegate property |
Post-Operation Properties | |
NSError * | lastError property |
Identification | |
NSInteger | tag property |
Blocks | |
NIOperationBlock | didStartBlock property |
NIOperationBlock | didFinishBlock property |
NIOperationDidFailBlock | didFailWithErrorBlock property |
NIOperationBlock | willFinishBlock property |
Subclassing | |
The following methods are provided to aid in subclassing and are not meant to be used externally. | |
(void) | - didStart |
(void) | - didFinish |
(void) | - didFailWithError: |
(void) | - willFinish |
The delegate through which changes are notified for this operation.
All delegate methods are performed on the main thread.
The error last passed to the didFailWithError notification.
A simple tagging mechanism for identifying operations.
The operation has started executing.
Performed on the main thread.
The operation has completed successfully.
This will not be called if the operation fails.
Performed on the main thread.
The operation failed in some way and has completed.
didFinishBlock will not be executed.
Performed on the main thread.
The operation is about to complete successfully.
This will not be called if the operation fails.
Performed in the operation's thread.
On the main thread, notify the delegate that the operation has begun.
On the main thread, notify the delegate that the operation has finished.
On the main thread, notify the delegate that the operation has failed.
In the operation's thread, notify the delegate that the operation will finish successfully.