Skip to content

Commit

Permalink
Bump version to 0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislaw committed Oct 4, 2015
1 parent e768901 commit 15d078c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CompositeOperations.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'CompositeOperations'
s.version = '0.8.1'
s.version = '0.8.2'

s.license = 'MIT'

Expand Down
8 changes: 4 additions & 4 deletions DevelopmentApp/DevelopmentApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,8 @@
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COMPOSITE_OPERATIONS_BUILD_NUMBER = 8;
COMPOSITE_OPERATIONS_VERSION = 0.8.1;
COMPOSITE_OPERATIONS_BUILD_NUMBER = 9;
COMPOSITE_OPERATIONS_VERSION = 0.8.2;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = "$(COMPOSITE_OPERATIONS_BUILD_NUMBER)";
DYLIB_CURRENT_VERSION = "$(COMPOSITE_OPERATIONS_BUILD_NUMBER)";
Expand Down Expand Up @@ -825,8 +825,8 @@
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COMPOSITE_OPERATIONS_BUILD_NUMBER = 8;
COMPOSITE_OPERATIONS_VERSION = 0.8.1;
COMPOSITE_OPERATIONS_BUILD_NUMBER = 9;
COMPOSITE_OPERATIONS_VERSION = 0.8.2;
COPY_PHASE_STRIP = YES;
CURRENT_PROJECT_VERSION = "$(COMPOSITE_OPERATIONS_BUILD_NUMBER)";
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,21 @@ sequentialOperation.completion = ^(NSArray *results, NSArray *errors) {
[[NSOperationQueue mainQueue] addOperation:sequentialOperation];
```

## Design principles

- Simple operation or root composite operation that are created must be retained. The most natural way of doing it is to run operations in NSOperationQueues though it is also possible to retain operation as `@property (strong)` field.
- Use `@completion` of both COSimpleOperation and COCompositeOperation, do not use `NSOperation@completionBlock`.
- Use `cancel` to cancel operation from outside. To stop operation's execution from inside always use `reject`.

## Examples

See [Documentation/Examples](Documentation/Examples.md).

Also see DevelopmentApp project and Example target in it.
Also see DevelopmentApp project and `Example` target in it.

## Design principles
## Related

- Simple operation or root composite operation that are created must be retained. The most natural way of doing it is to run operations in NSOperationQueues though it is also possible to retain operation as `@property (strong)` field.
- Use `@completion` of both COSimpleOperation and COCompositeOperation, do not use `NSOperation@completionBlock`.
- Use `cancel` to cancel operation from outside. To stop operation's execution from inside always use `reject`
* [WWDC 2015 - Advanced NSOperations](https://developer.apple.com/videos/play/wwdc2015-226/)

## Copyright

Expand Down

0 comments on commit 15d078c

Please sign in to comment.