Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 0.1.2
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 40 lines (31 sloc) 0.99 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
//
// SSConcurrentOperation.h
// SSToolkit
//
// Created by Sam Soffes on 8/5/10.
// Copyright 2010-2011 Sam Soffes. All rights reserved.
//

/**
A simple wrapper for concurrent NSOperations
Subclasses should override the start and stop methods. Here is a basic example.
<pre><code>- (void)start {
[super start];
networkRequest = [[NetworkRequest alloc] init];
[networkRequest start];
}
- (void)finish {
[networkRequest cancel];
[networkRequest release];
[super finish];
}</code></pre>
This allows for convenient handling of asynchronous calls in an operation.
*/
@interface SSConcurrentOperation : NSOperation

/**
Finishes the receiver's task.
Subclasses must implement their own versions of `finish` to clean up anything before the operation completes. After
performing the class-specific functionality, the subclass method should incorporate superclass versions of `finish`
through a message to `super`.
*/
- (void)finish;

@end
Something went wrong with that request. Please try again.