From 15d078c18b0fc80af415e2d5f34915bee4e8f4c5 Mon Sep 17 00:00:00 2001 From: Stanislaw Pankevich Date: Sun, 4 Oct 2015 21:51:17 +0200 Subject: [PATCH] Bump version to 0.8.2 --- CompositeOperations.podspec | 2 +- .../DevelopmentApp.xcodeproj/project.pbxproj | 8 ++++---- README.md | 14 +++++++++----- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/CompositeOperations.podspec b/CompositeOperations.podspec index d3ce88f..f91d066 100644 --- a/CompositeOperations.podspec +++ b/CompositeOperations.podspec @@ -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' diff --git a/DevelopmentApp/DevelopmentApp.xcodeproj/project.pbxproj b/DevelopmentApp/DevelopmentApp.xcodeproj/project.pbxproj index 030946c..b6c93f4 100644 --- a/DevelopmentApp/DevelopmentApp.xcodeproj/project.pbxproj +++ b/DevelopmentApp/DevelopmentApp.xcodeproj/project.pbxproj @@ -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)"; @@ -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"; diff --git a/README.md b/README.md index 6be3272..a6ec4ab 100644 --- a/README.md +++ b/README.md @@ -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