The GSOperation class provides for traditional messaging
to one or more objects, where the message has zero or one
object argument and returns an object. The
constructor creates an instance with one such
item, but you can add more items describing messaging
to be performed in sequences. The instance methods
in this class may be used either before the operation is
added to a queue or by the delegate handling a
-shouldStopOperation:afterItemAt:completedWith:
message. Items may be examined once the operation has finished (until the operation object itself is deallocated).
Sets the delegate that will be messaged when the
operation has finished. The operation uses a weak
reference to the delegate, it does not retain it.
Use this rather than
-setCompletionBlock:
(do not attempt to use both).
Called on completion of making a target perform a
selector within the operation as a whole.
The result will be either the return value
of that message, or the exception raised by that
message. The delegate may return
YES to indicate that processing of the
operation should complete without proceding to
any items after the one which just completed.