├── .gitignore ├── BasicSample ├── AppDelegate.h ├── AppDelegate.m ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── LaunchImage.launchimage │ │ └── Contents.json ├── Info.plist ├── ViewController.h ├── ViewController.m ├── de.lproj │ ├── LaunchScreen.strings │ ├── Localizable.strings │ └── Main.storyboard ├── en.lproj │ ├── Localizable.strings │ └── Main.storyboard ├── es.lproj │ ├── LaunchScreen.strings │ ├── Localizable.strings │ └── Main.storyboard ├── fr.lproj │ ├── LaunchScreen.strings │ ├── Localizable.strings │ └── Main.storyboard ├── main.m ├── ru.lproj │ ├── LaunchScreen.strings │ ├── Localizable.strings │ └── Main.storyboard └── uk.lproj │ ├── LaunchScreen.strings │ ├── Localizable.strings │ └── Main.storyboard ├── LICENSE ├── Podfile ├── Podfile.lock ├── Pods ├── Headers │ ├── Private │ │ └── ReactiveCocoa │ │ │ ├── MKAnnotationView+RACSignalSupport.h │ │ │ ├── NSArray+RACSequenceAdditions.h │ │ │ ├── NSData+RACSupport.h │ │ │ ├── NSDictionary+RACSequenceAdditions.h │ │ │ ├── NSEnumerator+RACSequenceAdditions.h │ │ │ ├── NSFileHandle+RACSupport.h │ │ │ ├── NSIndexSet+RACSequenceAdditions.h │ │ │ ├── NSInvocation+RACTypeParsing.h │ │ │ ├── NSNotificationCenter+RACSupport.h │ │ │ ├── NSObject+RACDeallocating.h │ │ │ ├── NSObject+RACDescription.h │ │ │ ├── NSObject+RACKVOWrapper.h │ │ │ ├── NSObject+RACLifting.h │ │ │ ├── NSObject+RACPropertySubscribing.h │ │ │ ├── NSObject+RACSelectorSignal.h │ │ │ ├── NSOrderedSet+RACSequenceAdditions.h │ │ │ ├── NSSet+RACSequenceAdditions.h │ │ │ ├── NSString+RACKeyPathUtilities.h │ │ │ ├── NSString+RACSequenceAdditions.h │ │ │ ├── NSString+RACSupport.h │ │ │ ├── NSURLConnection+RACSupport.h │ │ │ ├── NSUserDefaults+RACSupport.h │ │ │ ├── RACArraySequence.h │ │ │ ├── RACBehaviorSubject.h │ │ │ ├── RACBlockTrampoline.h │ │ │ ├── RACChannel.h │ │ │ ├── RACCommand.h │ │ │ ├── RACCompoundDisposable.h │ │ │ ├── RACDelegateProxy.h │ │ │ ├── RACDisposable.h │ │ │ ├── RACDynamicSequence.h │ │ │ ├── RACDynamicSignal.h │ │ │ ├── RACEXTKeyPathCoding.h │ │ │ ├── RACEXTRuntimeExtensions.h │ │ │ ├── RACEXTScope.h │ │ │ ├── RACEagerSequence.h │ │ │ ├── RACEmptySequence.h │ │ │ ├── RACEmptySignal.h │ │ │ ├── RACErrorSignal.h │ │ │ ├── RACEvent.h │ │ │ ├── RACGroupedSignal.h │ │ │ ├── RACImmediateScheduler.h │ │ │ ├── RACIndexSetSequence.h │ │ │ ├── RACKVOChannel.h │ │ │ ├── RACKVOProxy.h │ │ │ ├── RACKVOTrampoline.h │ │ │ ├── RACMulticastConnection+Private.h │ │ │ ├── RACMulticastConnection.h │ │ │ ├── RACObjCRuntime.h │ │ │ ├── RACPassthroughSubscriber.h │ │ │ ├── RACQueueScheduler+Subclass.h │ │ │ ├── RACQueueScheduler.h │ │ │ ├── RACReplaySubject.h │ │ │ ├── RACReturnSignal.h │ │ │ ├── RACScheduler+Private.h │ │ │ ├── RACScheduler+Subclass.h │ │ │ ├── RACScheduler.h │ │ │ ├── RACScopedDisposable.h │ │ │ ├── RACSequence.h │ │ │ ├── RACSerialDisposable.h │ │ │ ├── RACSignal+Operations.h │ │ │ ├── RACSignal.h │ │ │ ├── RACSignalSequence.h │ │ │ ├── RACStream+Private.h │ │ │ ├── RACStream.h │ │ │ ├── RACStringSequence.h │ │ │ ├── RACSubject.h │ │ │ ├── RACSubscriber+Private.h │ │ │ ├── RACSubscriber.h │ │ │ ├── RACSubscriptingAssignmentTrampoline.h │ │ │ ├── RACSubscriptionScheduler.h │ │ │ ├── RACTargetQueueScheduler.h │ │ │ ├── RACTestScheduler.h │ │ │ ├── RACTuple.h │ │ │ ├── RACTupleSequence.h │ │ │ ├── RACUnarySequence.h │ │ │ ├── RACUnit.h │ │ │ ├── RACValueTransformer.h │ │ │ ├── RACmetamacros.h │ │ │ ├── ReactiveCocoa.h │ │ │ ├── UIActionSheet+RACSignalSupport.h │ │ │ ├── UIAlertView+RACSignalSupport.h │ │ │ ├── UIBarButtonItem+RACCommandSupport.h │ │ │ ├── UIButton+RACCommandSupport.h │ │ │ ├── UICollectionReusableView+RACSignalSupport.h │ │ │ ├── UIControl+RACSignalSupport.h │ │ │ ├── UIControl+RACSignalSupportPrivate.h │ │ │ ├── UIDatePicker+RACSignalSupport.h │ │ │ ├── UIGestureRecognizer+RACSignalSupport.h │ │ │ ├── UIImagePickerController+RACSignalSupport.h │ │ │ ├── UIRefreshControl+RACCommandSupport.h │ │ │ ├── UISegmentedControl+RACSignalSupport.h │ │ │ ├── UISlider+RACSignalSupport.h │ │ │ ├── UIStepper+RACSignalSupport.h │ │ │ ├── UISwitch+RACSignalSupport.h │ │ │ ├── UITableViewCell+RACSignalSupport.h │ │ │ ├── UITableViewHeaderFooterView+RACSignalSupport.h │ │ │ ├── UITextField+RACSignalSupport.h │ │ │ └── UITextView+RACSignalSupport.h │ └── Public │ │ └── ReactiveCocoa │ │ ├── MKAnnotationView+RACSignalSupport.h │ │ ├── NSArray+RACSequenceAdditions.h │ │ ├── NSData+RACSupport.h │ │ ├── NSDictionary+RACSequenceAdditions.h │ │ ├── NSEnumerator+RACSequenceAdditions.h │ │ ├── NSFileHandle+RACSupport.h │ │ ├── NSIndexSet+RACSequenceAdditions.h │ │ ├── NSInvocation+RACTypeParsing.h │ │ ├── NSNotificationCenter+RACSupport.h │ │ ├── NSObject+RACDeallocating.h │ │ ├── NSObject+RACDescription.h │ │ ├── NSObject+RACKVOWrapper.h │ │ ├── NSObject+RACLifting.h │ │ ├── NSObject+RACPropertySubscribing.h │ │ ├── NSObject+RACSelectorSignal.h │ │ ├── NSOrderedSet+RACSequenceAdditions.h │ │ ├── NSSet+RACSequenceAdditions.h │ │ ├── NSString+RACKeyPathUtilities.h │ │ ├── NSString+RACSequenceAdditions.h │ │ ├── NSString+RACSupport.h │ │ ├── NSURLConnection+RACSupport.h │ │ ├── NSUserDefaults+RACSupport.h │ │ ├── RACArraySequence.h │ │ ├── RACBehaviorSubject.h │ │ ├── RACBlockTrampoline.h │ │ ├── RACChannel.h │ │ ├── RACCommand.h │ │ ├── RACCompoundDisposable.h │ │ ├── RACDelegateProxy.h │ │ ├── RACDisposable.h │ │ ├── RACDynamicSequence.h │ │ ├── RACDynamicSignal.h │ │ ├── RACEXTKeyPathCoding.h │ │ ├── RACEXTRuntimeExtensions.h │ │ ├── RACEXTScope.h │ │ ├── RACEagerSequence.h │ │ ├── RACEmptySequence.h │ │ ├── RACEmptySignal.h │ │ ├── RACErrorSignal.h │ │ ├── RACEvent.h │ │ ├── RACGroupedSignal.h │ │ ├── RACImmediateScheduler.h │ │ ├── RACIndexSetSequence.h │ │ ├── RACKVOChannel.h │ │ ├── RACKVOProxy.h │ │ ├── RACKVOTrampoline.h │ │ ├── RACMulticastConnection.h │ │ ├── RACObjCRuntime.h │ │ ├── RACPassthroughSubscriber.h │ │ ├── RACQueueScheduler+Subclass.h │ │ ├── RACQueueScheduler.h │ │ ├── RACReplaySubject.h │ │ ├── RACReturnSignal.h │ │ ├── RACScheduler+Subclass.h │ │ ├── RACScheduler.h │ │ ├── RACScopedDisposable.h │ │ ├── RACSequence.h │ │ ├── RACSerialDisposable.h │ │ ├── RACSignal+Operations.h │ │ ├── RACSignal.h │ │ ├── RACSignalSequence.h │ │ ├── RACStream.h │ │ ├── RACStringSequence.h │ │ ├── RACSubject.h │ │ ├── RACSubscriber.h │ │ ├── RACSubscriptingAssignmentTrampoline.h │ │ ├── RACSubscriptionScheduler.h │ │ ├── RACTargetQueueScheduler.h │ │ ├── RACTestScheduler.h │ │ ├── RACTuple.h │ │ ├── RACTupleSequence.h │ │ ├── RACUnarySequence.h │ │ ├── RACUnit.h │ │ ├── RACValueTransformer.h │ │ ├── RACmetamacros.h │ │ ├── ReactiveCocoa.h │ │ ├── UIActionSheet+RACSignalSupport.h │ │ ├── UIAlertView+RACSignalSupport.h │ │ ├── UIBarButtonItem+RACCommandSupport.h │ │ ├── UIButton+RACCommandSupport.h │ │ ├── UICollectionReusableView+RACSignalSupport.h │ │ ├── UIControl+RACSignalSupport.h │ │ ├── UIControl+RACSignalSupportPrivate.h │ │ ├── UIDatePicker+RACSignalSupport.h │ │ ├── UIGestureRecognizer+RACSignalSupport.h │ │ ├── UIImagePickerController+RACSignalSupport.h │ │ ├── UIRefreshControl+RACCommandSupport.h │ │ ├── UISegmentedControl+RACSignalSupport.h │ │ ├── UISlider+RACSignalSupport.h │ │ ├── UIStepper+RACSignalSupport.h │ │ ├── UISwitch+RACSignalSupport.h │ │ ├── UITableViewCell+RACSignalSupport.h │ │ ├── UITableViewHeaderFooterView+RACSignalSupport.h │ │ ├── UITextField+RACSignalSupport.h │ │ └── UITextView+RACSignalSupport.h ├── Manifest.lock ├── Pods.xcodeproj │ └── project.pbxproj ├── ReactiveCocoa │ ├── LICENSE.md │ ├── README.md │ └── ReactiveCocoa │ │ ├── MKAnnotationView+RACSignalSupport.h │ │ ├── MKAnnotationView+RACSignalSupport.m │ │ ├── NSArray+RACSequenceAdditions.h │ │ ├── NSArray+RACSequenceAdditions.m │ │ ├── NSData+RACSupport.h │ │ ├── NSData+RACSupport.m │ │ ├── NSDictionary+RACSequenceAdditions.h │ │ ├── NSDictionary+RACSequenceAdditions.m │ │ ├── NSEnumerator+RACSequenceAdditions.h │ │ ├── NSEnumerator+RACSequenceAdditions.m │ │ ├── NSFileHandle+RACSupport.h │ │ ├── NSFileHandle+RACSupport.m │ │ ├── NSIndexSet+RACSequenceAdditions.h │ │ ├── NSIndexSet+RACSequenceAdditions.m │ │ ├── NSInvocation+RACTypeParsing.h │ │ ├── NSInvocation+RACTypeParsing.m │ │ ├── NSNotificationCenter+RACSupport.h │ │ ├── NSNotificationCenter+RACSupport.m │ │ ├── NSObject+RACDeallocating.h │ │ ├── NSObject+RACDeallocating.m │ │ ├── NSObject+RACDescription.h │ │ ├── NSObject+RACDescription.m │ │ ├── NSObject+RACKVOWrapper.h │ │ ├── NSObject+RACKVOWrapper.m │ │ ├── NSObject+RACLifting.h │ │ ├── NSObject+RACLifting.m │ │ ├── NSObject+RACPropertySubscribing.h │ │ ├── NSObject+RACPropertySubscribing.m │ │ ├── NSObject+RACSelectorSignal.h │ │ ├── NSObject+RACSelectorSignal.m │ │ ├── NSOrderedSet+RACSequenceAdditions.h │ │ ├── NSOrderedSet+RACSequenceAdditions.m │ │ ├── NSSet+RACSequenceAdditions.h │ │ ├── NSSet+RACSequenceAdditions.m │ │ ├── NSString+RACKeyPathUtilities.h │ │ ├── NSString+RACKeyPathUtilities.m │ │ ├── NSString+RACSequenceAdditions.h │ │ ├── NSString+RACSequenceAdditions.m │ │ ├── NSString+RACSupport.h │ │ ├── NSString+RACSupport.m │ │ ├── NSURLConnection+RACSupport.h │ │ ├── NSURLConnection+RACSupport.m │ │ ├── NSUserDefaults+RACSupport.h │ │ ├── NSUserDefaults+RACSupport.m │ │ ├── RACArraySequence.h │ │ ├── RACArraySequence.m │ │ ├── RACBehaviorSubject.h │ │ ├── RACBehaviorSubject.m │ │ ├── RACBlockTrampoline.h │ │ ├── RACBlockTrampoline.m │ │ ├── RACChannel.h │ │ ├── RACChannel.m │ │ ├── RACCommand.h │ │ ├── RACCommand.m │ │ ├── RACCompoundDisposable.h │ │ ├── RACCompoundDisposable.m │ │ ├── RACCompoundDisposableProvider.d │ │ ├── RACDelegateProxy.h │ │ ├── RACDelegateProxy.m │ │ ├── RACDisposable.h │ │ ├── RACDisposable.m │ │ ├── RACDynamicSequence.h │ │ ├── RACDynamicSequence.m │ │ ├── RACDynamicSignal.h │ │ ├── RACDynamicSignal.m │ │ ├── RACEagerSequence.h │ │ ├── RACEagerSequence.m │ │ ├── RACEmptySequence.h │ │ ├── RACEmptySequence.m │ │ ├── RACEmptySignal.h │ │ ├── RACEmptySignal.m │ │ ├── RACErrorSignal.h │ │ ├── RACErrorSignal.m │ │ ├── RACEvent.h │ │ ├── RACEvent.m │ │ ├── RACGroupedSignal.h │ │ ├── RACGroupedSignal.m │ │ ├── RACImmediateScheduler.h │ │ ├── RACImmediateScheduler.m │ │ ├── RACIndexSetSequence.h │ │ ├── RACIndexSetSequence.m │ │ ├── RACKVOChannel.h │ │ ├── RACKVOChannel.m │ │ ├── RACKVOProxy.h │ │ ├── RACKVOProxy.m │ │ ├── RACKVOTrampoline.h │ │ ├── RACKVOTrampoline.m │ │ ├── RACMulticastConnection+Private.h │ │ ├── RACMulticastConnection.h │ │ ├── RACMulticastConnection.m │ │ ├── RACObjCRuntime.h │ │ ├── RACObjCRuntime.m │ │ ├── RACPassthroughSubscriber.h │ │ ├── RACPassthroughSubscriber.m │ │ ├── RACQueueScheduler+Subclass.h │ │ ├── RACQueueScheduler.h │ │ ├── RACQueueScheduler.m │ │ ├── RACReplaySubject.h │ │ ├── RACReplaySubject.m │ │ ├── RACReturnSignal.h │ │ ├── RACReturnSignal.m │ │ ├── RACScheduler+Private.h │ │ ├── RACScheduler+Subclass.h │ │ ├── RACScheduler.h │ │ ├── RACScheduler.m │ │ ├── RACScopedDisposable.h │ │ ├── RACScopedDisposable.m │ │ ├── RACSequence.h │ │ ├── RACSequence.m │ │ ├── RACSerialDisposable.h │ │ ├── RACSerialDisposable.m │ │ ├── RACSignal+Operations.h │ │ ├── RACSignal+Operations.m │ │ ├── RACSignal.h │ │ ├── RACSignal.m │ │ ├── RACSignalProvider.d │ │ ├── RACSignalSequence.h │ │ ├── RACSignalSequence.m │ │ ├── RACStream+Private.h │ │ ├── RACStream.h │ │ ├── RACStream.m │ │ ├── RACStringSequence.h │ │ ├── RACStringSequence.m │ │ ├── RACSubject.h │ │ ├── RACSubject.m │ │ ├── RACSubscriber+Private.h │ │ ├── RACSubscriber.h │ │ ├── RACSubscriber.m │ │ ├── RACSubscriptingAssignmentTrampoline.h │ │ ├── RACSubscriptingAssignmentTrampoline.m │ │ ├── RACSubscriptionScheduler.h │ │ ├── RACSubscriptionScheduler.m │ │ ├── RACTargetQueueScheduler.h │ │ ├── RACTargetQueueScheduler.m │ │ ├── RACTestScheduler.h │ │ ├── RACTestScheduler.m │ │ ├── RACTuple.h │ │ ├── RACTuple.m │ │ ├── RACTupleSequence.h │ │ ├── RACTupleSequence.m │ │ ├── RACUnarySequence.h │ │ ├── RACUnarySequence.m │ │ ├── RACUnit.h │ │ ├── RACUnit.m │ │ ├── RACValueTransformer.h │ │ ├── RACValueTransformer.m │ │ ├── ReactiveCocoa.h │ │ ├── UIActionSheet+RACSignalSupport.h │ │ ├── UIActionSheet+RACSignalSupport.m │ │ ├── UIAlertView+RACSignalSupport.h │ │ ├── UIAlertView+RACSignalSupport.m │ │ ├── UIBarButtonItem+RACCommandSupport.h │ │ ├── UIBarButtonItem+RACCommandSupport.m │ │ ├── UIButton+RACCommandSupport.h │ │ ├── UIButton+RACCommandSupport.m │ │ ├── UICollectionReusableView+RACSignalSupport.h │ │ ├── UICollectionReusableView+RACSignalSupport.m │ │ ├── UIControl+RACSignalSupport.h │ │ ├── UIControl+RACSignalSupport.m │ │ ├── UIControl+RACSignalSupportPrivate.h │ │ ├── UIControl+RACSignalSupportPrivate.m │ │ ├── UIDatePicker+RACSignalSupport.h │ │ ├── UIDatePicker+RACSignalSupport.m │ │ ├── UIGestureRecognizer+RACSignalSupport.h │ │ ├── UIGestureRecognizer+RACSignalSupport.m │ │ ├── UIImagePickerController+RACSignalSupport.h │ │ ├── UIImagePickerController+RACSignalSupport.m │ │ ├── UIRefreshControl+RACCommandSupport.h │ │ ├── UIRefreshControl+RACCommandSupport.m │ │ ├── UISegmentedControl+RACSignalSupport.h │ │ ├── UISegmentedControl+RACSignalSupport.m │ │ ├── UISlider+RACSignalSupport.h │ │ ├── UISlider+RACSignalSupport.m │ │ ├── UIStepper+RACSignalSupport.h │ │ ├── UIStepper+RACSignalSupport.m │ │ ├── UISwitch+RACSignalSupport.h │ │ ├── UISwitch+RACSignalSupport.m │ │ ├── UITableViewCell+RACSignalSupport.h │ │ ├── UITableViewCell+RACSignalSupport.m │ │ ├── UITableViewHeaderFooterView+RACSignalSupport.h │ │ ├── UITableViewHeaderFooterView+RACSignalSupport.m │ │ ├── UITextField+RACSignalSupport.h │ │ ├── UITextField+RACSignalSupport.m │ │ ├── UITextView+RACSignalSupport.h │ │ ├── UITextView+RACSignalSupport.m │ │ └── extobjc │ │ ├── RACEXTKeyPathCoding.h │ │ ├── RACEXTRuntimeExtensions.h │ │ ├── RACEXTRuntimeExtensions.m │ │ ├── RACEXTScope.h │ │ └── RACmetamacros.h └── Target Support Files │ ├── Pods-ReactiveCocoa │ ├── Pods-ReactiveCocoa-Private.xcconfig │ ├── Pods-ReactiveCocoa-dummy.m │ ├── Pods-ReactiveCocoa-prefix.pch │ └── Pods-ReactiveCocoa.xcconfig │ └── Pods │ ├── Pods-acknowledgements.markdown │ ├── Pods-acknowledgements.plist │ ├── Pods-dummy.m │ ├── Pods-environment.h │ ├── Pods-resources.sh │ ├── Pods.debug.xcconfig │ └── Pods.release.xcconfig ├── README.md ├── ReactiveLocalizationManager.podspec ├── ReactiveLocalizationManager.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── ReactiveLocalizationManager.xcworkspace └── contents.xcworkspacedata └── ReactiveLocalizationManager ├── NSObject+i2KRLMLocalizeObject.h ├── NSObject+i2KRLMLocalizeObject.m ├── i2KRLMLocalizationManager.h ├── i2KRLMLocalizationManagerObject.h ├── i2KRLMLocalizationManagerObject.m ├── i2KRLMSingletonProtocol.h ├── i2KRLMUtilities.h └── i2KRLMUtilities.m /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | *.xcuserstate 19 | 20 | # CocoaPods 21 | # 22 | # We recommend against adding the Pods directory to your .gitignore. However 23 | # you should judge for yourself, the pros and cons are mentioned at: 24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 25 | # 26 | # Pods/ 27 | -------------------------------------------------------------------------------- /BasicSample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // ReactiveLocalizationManager 4 | // 5 | // Created by Timur Kuchkarov on 26.02.15. 6 | // Copyright (c) 2015 i-2K. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /BasicSample/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /BasicSample/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "minimum-system-version" : "7.0", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "orientation" : "portrait", 11 | "idiom" : "iphone", 12 | "minimum-system-version" : "7.0", 13 | "subtype" : "retina4", 14 | "scale" : "2x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /BasicSample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.i-2K.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /BasicSample/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // ReactiveLocalizationManager 4 | // 5 | // Created by Timur Kuchkarov on 26.02.15. 6 | // Copyright (c) 2015 i-2K. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /BasicSample/de.lproj/LaunchScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "IBUILabel"; text = " Copyright (c) 2015 i-2K. All rights reserved."; ObjectID = "8ie-xW-0ye"; */ 3 | "8ie-xW-0ye.text" = " Copyright (c) 2015 i-2K. All rights reserved."; 4 | 5 | /* Class = "IBUILabel"; text = "ReactiveLocalizationManager"; ObjectID = "kId-c2-rCX"; */ 6 | "kId-c2-rCX.text" = "ReactiveLocalizationManager"; 7 | -------------------------------------------------------------------------------- /BasicSample/de.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Localizable.strings 3 | ReactiveLocalizationManager 4 | 5 | Created by Timur Kuchkarov on 27.02.15. 6 | Copyright (c) 2015 i-2K. All rights reserved. 7 | */ 8 | 9 | "samplelabel" = "Berlin"; 10 | "languagebutton" = "Deutsch"; -------------------------------------------------------------------------------- /BasicSample/de.lproj/Main.storyboard: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /BasicSample/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Localizable.strings 3 | ReactiveLocalizationManager 4 | 5 | Created by Timur Kuchkarov on 27.02.15. 6 | Copyright (c) 2015 i-2K. All rights reserved. 7 | */ 8 | 9 | "samplelabel" = "London"; 10 | "languagebutton" = "English"; -------------------------------------------------------------------------------- /BasicSample/es.lproj/LaunchScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "IBUILabel"; text = " Copyright (c) 2015 i-2K. All rights reserved."; ObjectID = "8ie-xW-0ye"; */ 3 | "8ie-xW-0ye.text" = " Copyright (c) 2015 i-2K. All rights reserved."; 4 | 5 | /* Class = "IBUILabel"; text = "ReactiveLocalizationManager"; ObjectID = "kId-c2-rCX"; */ 6 | "kId-c2-rCX.text" = "ReactiveLocalizationManager"; 7 | -------------------------------------------------------------------------------- /BasicSample/es.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Localizable.strings 3 | ReactiveLocalizationManager 4 | 5 | Created by Timur Kuchkarov on 27.02.15. 6 | Copyright (c) 2015 i-2K. All rights reserved. 7 | */ 8 | 9 | "samplelabel" = "Madrid"; 10 | "languagebutton" = "Español"; -------------------------------------------------------------------------------- /BasicSample/es.lproj/Main.storyboard: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /BasicSample/fr.lproj/LaunchScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "IBUILabel"; text = " Copyright (c) 2015 i-2K. All rights reserved."; ObjectID = "8ie-xW-0ye"; */ 3 | "8ie-xW-0ye.text" = " Copyright (c) 2015 i-2K. All rights reserved."; 4 | 5 | /* Class = "IBUILabel"; text = "ReactiveLocalizationManager"; ObjectID = "kId-c2-rCX"; */ 6 | "kId-c2-rCX.text" = "ReactiveLocalizationManager"; 7 | -------------------------------------------------------------------------------- /BasicSample/fr.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Localizable.strings 3 | ReactiveLocalizationManager 4 | 5 | Created by Timur Kuchkarov on 27.02.15. 6 | Copyright (c) 2015 i-2K. All rights reserved. 7 | */ 8 | 9 | "samplelabel" = "Paris"; 10 | "languagebutton" = "Français"; -------------------------------------------------------------------------------- /BasicSample/fr.lproj/Main.storyboard: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /BasicSample/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ReactiveLocalizationManager 4 | // 5 | // Created by Timur Kuchkarov on 26.02.15. 6 | // Copyright (c) 2015 i-2K. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /BasicSample/ru.lproj/LaunchScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "IBUILabel"; text = " Copyright (c) 2015 i-2K. All rights reserved."; ObjectID = "8ie-xW-0ye"; */ 3 | "8ie-xW-0ye.text" = " Copyright (c) 2015 i-2K. All rights reserved."; 4 | 5 | /* Class = "IBUILabel"; text = "ReactiveLocalizationManager"; ObjectID = "kId-c2-rCX"; */ 6 | "kId-c2-rCX.text" = "ReactiveLocalizationManager"; 7 | -------------------------------------------------------------------------------- /BasicSample/ru.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Localizable.strings 3 | ReactiveLocalizationManager 4 | 5 | Created by Timur Kuchkarov on 27.02.15. 6 | Copyright (c) 2015 i-2K. All rights reserved. 7 | */ 8 | 9 | "samplelabel" = "Москва"; 10 | "languagebutton" = "Русский"; -------------------------------------------------------------------------------- /BasicSample/ru.lproj/Main.storyboard: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /BasicSample/uk.lproj/LaunchScreen.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "IBUILabel"; text = " Copyright (c) 2015 i-2K. All rights reserved."; ObjectID = "8ie-xW-0ye"; */ 3 | "8ie-xW-0ye.text" = " Copyright (c) 2015 i-2K. All rights reserved."; 4 | 5 | /* Class = "IBUILabel"; text = "ReactiveLocalizationManager"; ObjectID = "kId-c2-rCX"; */ 6 | "kId-c2-rCX.text" = "ReactiveLocalizationManager"; 7 | -------------------------------------------------------------------------------- /BasicSample/uk.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Localizable.strings 3 | ReactiveLocalizationManager 4 | 5 | Created by Timur Kuchkarov on 27.02.15. 6 | Copyright (c) 2015 i-2K. All rights reserved. 7 | */ 8 | 9 | "samplelabel" = "Київ"; 10 | "languagebutton" = "Українська"; -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Timur Kuchkarov, i-2K 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '7.0' 2 | 3 | inhibit_all_warnings! 4 | 5 | pod 'ReactiveCocoa', '~> 2.5' 6 | -------------------------------------------------------------------------------- /Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ReactiveCocoa (2.5): 3 | - ReactiveCocoa/UI (= 2.5) 4 | - ReactiveCocoa/Core (2.5): 5 | - ReactiveCocoa/no-arc 6 | - ReactiveCocoa/no-arc (2.5) 7 | - ReactiveCocoa/UI (2.5): 8 | - ReactiveCocoa/Core 9 | 10 | DEPENDENCIES: 11 | - ReactiveCocoa (~> 2.5) 12 | 13 | SPEC CHECKSUMS: 14 | ReactiveCocoa: e2db045570aa97c695e7aa97c2bcab222ae51f4a 15 | 16 | COCOAPODS: 0.37.2 17 | -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/MKAnnotationView+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/MKAnnotationView+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSArray+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSArray+RACSequenceAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSData+RACSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSData+RACSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSDictionary+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSDictionary+RACSequenceAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSEnumerator+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSEnumerator+RACSequenceAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSFileHandle+RACSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSFileHandle+RACSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSIndexSet+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSIndexSet+RACSequenceAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSInvocation+RACTypeParsing.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSInvocation+RACTypeParsing.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSNotificationCenter+RACSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSNotificationCenter+RACSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSObject+RACDeallocating.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACDeallocating.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSObject+RACDescription.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACDescription.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSObject+RACKVOWrapper.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACKVOWrapper.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSObject+RACLifting.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACLifting.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSObject+RACPropertySubscribing.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACPropertySubscribing.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSObject+RACSelectorSignal.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACSelectorSignal.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSOrderedSet+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSOrderedSet+RACSequenceAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSSet+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSSet+RACSequenceAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSString+RACKeyPathUtilities.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSString+RACKeyPathUtilities.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSString+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSString+RACSequenceAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSString+RACSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSString+RACSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSURLConnection+RACSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSURLConnection+RACSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/NSUserDefaults+RACSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSUserDefaults+RACSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACArraySequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACArraySequence.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACBehaviorSubject.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACBehaviorSubject.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACBlockTrampoline.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACBlockTrampoline.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACChannel.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACChannel.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACCommand.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACCommand.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACCompoundDisposable.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACCompoundDisposable.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACDelegateProxy.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACDelegateProxy.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACDisposable.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACDisposable.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACDynamicSequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACDynamicSequence.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACDynamicSignal.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACDynamicSignal.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACEXTKeyPathCoding.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/extobjc/RACEXTKeyPathCoding.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACEXTRuntimeExtensions.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/extobjc/RACEXTRuntimeExtensions.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACEXTScope.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/extobjc/RACEXTScope.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACEagerSequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACEagerSequence.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACEmptySequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACEmptySequence.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACEmptySignal.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACEmptySignal.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACErrorSignal.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACErrorSignal.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACEvent.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACEvent.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACGroupedSignal.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACGroupedSignal.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACImmediateScheduler.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACImmediateScheduler.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACIndexSetSequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACIndexSetSequence.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACKVOChannel.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACKVOChannel.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACKVOProxy.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACKVOProxy.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACKVOTrampoline.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACKVOTrampoline.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACMulticastConnection+Private.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACMulticastConnection+Private.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACMulticastConnection.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACMulticastConnection.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACObjCRuntime.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACObjCRuntime.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACPassthroughSubscriber.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACPassthroughSubscriber.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACQueueScheduler+Subclass.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACQueueScheduler+Subclass.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACQueueScheduler.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACQueueScheduler.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACReplaySubject.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACReplaySubject.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACReturnSignal.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACReturnSignal.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACScheduler+Private.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACScheduler+Private.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACScheduler+Subclass.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACScheduler+Subclass.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACScheduler.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACScheduler.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACScopedDisposable.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACScopedDisposable.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACSequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSequence.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACSerialDisposable.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSerialDisposable.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACSignal+Operations.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSignal+Operations.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACSignal.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSignal.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACSignalSequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSignalSequence.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACStream+Private.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACStream+Private.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACStream.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACStream.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACStringSequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACStringSequence.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACSubject.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubject.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACSubscriber+Private.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubscriber+Private.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACSubscriber.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubscriber.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACSubscriptingAssignmentTrampoline.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubscriptingAssignmentTrampoline.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACSubscriptionScheduler.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubscriptionScheduler.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACTargetQueueScheduler.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACTargetQueueScheduler.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACTestScheduler.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACTestScheduler.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACTuple.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACTuple.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACTupleSequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACTupleSequence.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACUnarySequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACUnarySequence.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACUnit.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACUnit.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACValueTransformer.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACValueTransformer.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/RACmetamacros.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/extobjc/RACmetamacros.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/ReactiveCocoa.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/ReactiveCocoa.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UIActionSheet+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIActionSheet+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UIAlertView+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIAlertView+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UIBarButtonItem+RACCommandSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIBarButtonItem+RACCommandSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UIButton+RACCommandSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIButton+RACCommandSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UICollectionReusableView+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UICollectionReusableView+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UIControl+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIControl+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UIControl+RACSignalSupportPrivate.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIControl+RACSignalSupportPrivate.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UIDatePicker+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIDatePicker+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UIGestureRecognizer+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIGestureRecognizer+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UIImagePickerController+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIImagePickerController+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UIRefreshControl+RACCommandSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIRefreshControl+RACCommandSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UISegmentedControl+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UISegmentedControl+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UISlider+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UISlider+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UIStepper+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIStepper+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UISwitch+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UISwitch+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UITableViewCell+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UITableViewCell+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UITableViewHeaderFooterView+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UITableViewHeaderFooterView+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UITextField+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UITextField+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ReactiveCocoa/UITextView+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UITextView+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/MKAnnotationView+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/MKAnnotationView+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSArray+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSArray+RACSequenceAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSData+RACSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSData+RACSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSDictionary+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSDictionary+RACSequenceAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSEnumerator+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSEnumerator+RACSequenceAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSFileHandle+RACSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSFileHandle+RACSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSIndexSet+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSIndexSet+RACSequenceAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSInvocation+RACTypeParsing.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSInvocation+RACTypeParsing.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSNotificationCenter+RACSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSNotificationCenter+RACSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSObject+RACDeallocating.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACDeallocating.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSObject+RACDescription.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACDescription.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSObject+RACKVOWrapper.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACKVOWrapper.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSObject+RACLifting.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACLifting.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSObject+RACPropertySubscribing.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACPropertySubscribing.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSObject+RACSelectorSignal.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACSelectorSignal.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSOrderedSet+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSOrderedSet+RACSequenceAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSSet+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSSet+RACSequenceAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSString+RACKeyPathUtilities.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSString+RACKeyPathUtilities.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSString+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSString+RACSequenceAdditions.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSString+RACSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSString+RACSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSURLConnection+RACSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSURLConnection+RACSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/NSUserDefaults+RACSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/NSUserDefaults+RACSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACArraySequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACArraySequence.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACBehaviorSubject.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACBehaviorSubject.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACBlockTrampoline.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACBlockTrampoline.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACChannel.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACChannel.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACCommand.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACCommand.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACCompoundDisposable.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACCompoundDisposable.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACDelegateProxy.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACDelegateProxy.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACDisposable.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACDisposable.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACDynamicSequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACDynamicSequence.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACDynamicSignal.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACDynamicSignal.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACEXTKeyPathCoding.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/extobjc/RACEXTKeyPathCoding.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACEXTRuntimeExtensions.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/extobjc/RACEXTRuntimeExtensions.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACEXTScope.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/extobjc/RACEXTScope.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACEagerSequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACEagerSequence.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACEmptySequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACEmptySequence.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACEmptySignal.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACEmptySignal.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACErrorSignal.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACErrorSignal.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACEvent.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACEvent.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACGroupedSignal.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACGroupedSignal.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACImmediateScheduler.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACImmediateScheduler.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACIndexSetSequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACIndexSetSequence.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACKVOChannel.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACKVOChannel.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACKVOProxy.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACKVOProxy.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACKVOTrampoline.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACKVOTrampoline.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACMulticastConnection.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACMulticastConnection.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACObjCRuntime.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACObjCRuntime.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACPassthroughSubscriber.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACPassthroughSubscriber.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACQueueScheduler+Subclass.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACQueueScheduler+Subclass.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACQueueScheduler.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACQueueScheduler.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACReplaySubject.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACReplaySubject.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACReturnSignal.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACReturnSignal.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACScheduler+Subclass.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACScheduler+Subclass.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACScheduler.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACScheduler.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACScopedDisposable.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACScopedDisposable.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACSequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSequence.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACSerialDisposable.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSerialDisposable.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACSignal+Operations.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSignal+Operations.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACSignal.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSignal.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACSignalSequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSignalSequence.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACStream.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACStream.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACStringSequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACStringSequence.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACSubject.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubject.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACSubscriber.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubscriber.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACSubscriptingAssignmentTrampoline.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubscriptingAssignmentTrampoline.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACSubscriptionScheduler.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubscriptionScheduler.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACTargetQueueScheduler.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACTargetQueueScheduler.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACTestScheduler.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACTestScheduler.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACTuple.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACTuple.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACTupleSequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACTupleSequence.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACUnarySequence.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACUnarySequence.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACUnit.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACUnit.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACValueTransformer.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/RACValueTransformer.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/RACmetamacros.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/extobjc/RACmetamacros.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/ReactiveCocoa.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/ReactiveCocoa.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UIActionSheet+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIActionSheet+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UIAlertView+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIAlertView+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UIBarButtonItem+RACCommandSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIBarButtonItem+RACCommandSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UIButton+RACCommandSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIButton+RACCommandSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UICollectionReusableView+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UICollectionReusableView+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UIControl+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIControl+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UIControl+RACSignalSupportPrivate.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIControl+RACSignalSupportPrivate.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UIDatePicker+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIDatePicker+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UIGestureRecognizer+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIGestureRecognizer+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UIImagePickerController+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIImagePickerController+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UIRefreshControl+RACCommandSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIRefreshControl+RACCommandSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UISegmentedControl+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UISegmentedControl+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UISlider+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UISlider+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UIStepper+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UIStepper+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UISwitch+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UISwitch+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UITableViewCell+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UITableViewCell+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UITableViewHeaderFooterView+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UITableViewHeaderFooterView+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UITextField+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UITextField+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ReactiveCocoa/UITextView+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | ../../../ReactiveCocoa/ReactiveCocoa/UITextView+RACSignalSupport.h -------------------------------------------------------------------------------- /Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ReactiveCocoa (2.5): 3 | - ReactiveCocoa/UI (= 2.5) 4 | - ReactiveCocoa/Core (2.5): 5 | - ReactiveCocoa/no-arc 6 | - ReactiveCocoa/no-arc (2.5) 7 | - ReactiveCocoa/UI (2.5): 8 | - ReactiveCocoa/Core 9 | 10 | DEPENDENCIES: 11 | - ReactiveCocoa (~> 2.5) 12 | 13 | SPEC CHECKSUMS: 14 | ReactiveCocoa: e2db045570aa97c695e7aa97c2bcab222ae51f4a 15 | 16 | COCOAPODS: 0.37.2 17 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/LICENSE.md: -------------------------------------------------------------------------------- 1 | **Copyright (c) 2012 - 2015, GitHub, Inc.** 2 | **All rights reserved.** 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy of 5 | this software and associated documentation files (the "Software"), to deal in 6 | the Software without restriction, including without limitation the rights to 7 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 8 | the Software, and to permit persons to whom the Software is furnished to do so, 9 | subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 16 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 17 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 18 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/MKAnnotationView+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // MKAnnotationView+RACSignalSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Zak Remer on 3/31/15. 6 | // Copyright (c) 2015 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @class RACSignal; 13 | 14 | @interface MKAnnotationView (RACSignalSupport) 15 | 16 | /// A signal which will send a RACUnit whenever -prepareForReuse is invoked upon 17 | /// the receiver. 18 | /// 19 | /// Examples 20 | /// 21 | /// [[[self.cancelButton 22 | /// rac_signalForControlEvents:UIControlEventTouchUpInside] 23 | /// takeUntil:self.rac_prepareForReuseSignal] 24 | /// subscribeNext:^(UIButton *x) { 25 | /// // do other things 26 | /// }]; 27 | @property (nonatomic, strong, readonly) RACSignal *rac_prepareForReuseSignal; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/MKAnnotationView+RACSignalSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // MKAnnotationView+RACSignalSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Zak Remer on 3/31/15. 6 | // Copyright (c) 2015 GitHub. All rights reserved. 7 | // 8 | 9 | #import "MKAnnotationView+RACSignalSupport.h" 10 | #import "NSObject+RACDescription.h" 11 | #import "NSObject+RACSelectorSignal.h" 12 | #import "RACSignal+Operations.h" 13 | #import "RACUnit.h" 14 | #import 15 | 16 | @implementation MKAnnotationView (RACSignalSupport) 17 | 18 | - (RACSignal *)rac_prepareForReuseSignal { 19 | RACSignal *signal = objc_getAssociatedObject(self, _cmd); 20 | if (signal != nil) return signal; 21 | 22 | signal = [[[self 23 | rac_signalForSelector:@selector(prepareForReuse)] 24 | mapReplace:RACUnit.defaultUnit] 25 | setNameWithFormat:@"%@ -rac_prepareForReuseSignal", self.rac_description]; 26 | 27 | objc_setAssociatedObject(self, _cmd, signal, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 28 | return signal; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSArray+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSArray+RACSequenceAdditions.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2012-10-29. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACSequence; 12 | 13 | @interface NSArray (RACSequenceAdditions) 14 | 15 | /// Creates and returns a sequence corresponding to the receiver. 16 | /// 17 | /// Mutating the receiver will not affect the sequence after it's been created. 18 | @property (nonatomic, copy, readonly) RACSequence *rac_sequence; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSArray+RACSequenceAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSArray+RACSequenceAdditions.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2012-10-29. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import "NSArray+RACSequenceAdditions.h" 10 | #import "RACArraySequence.h" 11 | 12 | @implementation NSArray (RACSequenceAdditions) 13 | 14 | - (RACSequence *)rac_sequence { 15 | return [RACArraySequence sequenceWithArray:self offset:0]; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSData+RACSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSData+RACSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 5/11/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACScheduler; 12 | @class RACSignal; 13 | 14 | @interface NSData (RACSupport) 15 | 16 | // Read the data at the URL using -[NSData initWithContentsOfURL:options:error:]. 17 | // Sends the data or the error. 18 | // 19 | // scheduler - cannot be nil. 20 | + (RACSignal *)rac_readContentsOfURL:(NSURL *)URL options:(NSDataReadingOptions)options scheduler:(RACScheduler *)scheduler; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSData+RACSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSData+RACSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 5/11/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "NSData+RACSupport.h" 10 | #import "RACReplaySubject.h" 11 | #import "RACScheduler.h" 12 | 13 | @implementation NSData (RACSupport) 14 | 15 | + (RACSignal *)rac_readContentsOfURL:(NSURL *)URL options:(NSDataReadingOptions)options scheduler:(RACScheduler *)scheduler { 16 | NSCParameterAssert(scheduler != nil); 17 | 18 | RACReplaySubject *subject = [RACReplaySubject subject]; 19 | [subject setNameWithFormat:@"+rac_readContentsOfURL: %@ options: %lu scheduler: %@", URL, (unsigned long)options, scheduler]; 20 | 21 | [scheduler schedule:^{ 22 | NSError *error = nil; 23 | NSData *data = [[NSData alloc] initWithContentsOfURL:URL options:options error:&error]; 24 | if (data == nil) { 25 | [subject sendError:error]; 26 | } else { 27 | [subject sendNext:data]; 28 | [subject sendCompleted]; 29 | } 30 | }]; 31 | 32 | return subject; 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSDictionary+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSDictionary+RACSequenceAdditions.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2012-10-29. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACSequence; 12 | 13 | @interface NSDictionary (RACSequenceAdditions) 14 | 15 | /// Creates and returns a sequence of RACTuple key/value pairs. The key will be 16 | /// the first element in the tuple, and the value will be the second. 17 | /// 18 | /// Mutating the receiver will not affect the sequence after it's been created. 19 | @property (nonatomic, copy, readonly) RACSequence *rac_sequence; 20 | 21 | /// Creates and returns a sequence corresponding to the keys in the receiver. 22 | /// 23 | /// Mutating the receiver will not affect the sequence after it's been created. 24 | @property (nonatomic, copy, readonly) RACSequence *rac_keySequence; 25 | 26 | /// Creates and returns a sequence corresponding to the values in the receiver. 27 | /// 28 | /// Mutating the receiver will not affect the sequence after it's been created. 29 | @property (nonatomic, copy, readonly) RACSequence *rac_valueSequence; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSDictionary+RACSequenceAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSDictionary+RACSequenceAdditions.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2012-10-29. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import "NSDictionary+RACSequenceAdditions.h" 10 | #import "NSArray+RACSequenceAdditions.h" 11 | #import "RACSequence.h" 12 | #import "RACTuple.h" 13 | 14 | @implementation NSDictionary (RACSequenceAdditions) 15 | 16 | - (RACSequence *)rac_sequence { 17 | NSDictionary *immutableDict = [self copy]; 18 | 19 | // TODO: First class support for dictionary sequences. 20 | return [immutableDict.allKeys.rac_sequence map:^(id key) { 21 | id value = immutableDict[key]; 22 | return RACTuplePack(key, value); 23 | }]; 24 | } 25 | 26 | - (RACSequence *)rac_keySequence { 27 | return self.allKeys.rac_sequence; 28 | } 29 | 30 | - (RACSequence *)rac_valueSequence { 31 | return self.allValues.rac_sequence; 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSEnumerator+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSEnumerator+RACSequenceAdditions.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Uri Baghin on 07/01/2013. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACSequence; 12 | 13 | @interface NSEnumerator (RACSequenceAdditions) 14 | 15 | /// Creates and returns a sequence corresponding to the receiver. 16 | /// 17 | /// The receiver is exhausted lazily as the sequence is enumerated. 18 | @property (nonatomic, copy, readonly) RACSequence *rac_sequence; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSEnumerator+RACSequenceAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSEnumerator+RACSequenceAdditions.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Uri Baghin on 07/01/2013. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "NSEnumerator+RACSequenceAdditions.h" 10 | #import "RACSequence.h" 11 | 12 | @implementation NSEnumerator (RACSequenceAdditions) 13 | 14 | - (RACSequence *)rac_sequence { 15 | return [RACSequence sequenceWithHeadBlock:^{ 16 | return [self nextObject]; 17 | } tailBlock:^{ 18 | return self.rac_sequence; 19 | }]; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSFileHandle+RACSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSFileHandle+RACSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 5/10/12. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACSignal; 12 | 13 | @interface NSFileHandle (RACSupport) 14 | 15 | // Read any available data in the background and send it. Completes when data 16 | // length is <= 0. 17 | - (RACSignal *)rac_readInBackground; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSFileHandle+RACSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSFileHandle+RACSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 5/10/12. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import "NSFileHandle+RACSupport.h" 10 | #import "NSNotificationCenter+RACSupport.h" 11 | #import "NSObject+RACDescription.h" 12 | #import "RACReplaySubject.h" 13 | #import "RACDisposable.h" 14 | 15 | @implementation NSFileHandle (RACSupport) 16 | 17 | - (RACSignal *)rac_readInBackground { 18 | RACReplaySubject *subject = [RACReplaySubject subject]; 19 | [subject setNameWithFormat:@"%@ -rac_readInBackground", self.rac_description]; 20 | 21 | RACSignal *dataNotification = [[[NSNotificationCenter defaultCenter] rac_addObserverForName:NSFileHandleReadCompletionNotification object:self] map:^(NSNotification *note) { 22 | return note.userInfo[NSFileHandleNotificationDataItem]; 23 | }]; 24 | 25 | __block RACDisposable *subscription = [dataNotification subscribeNext:^(NSData *data) { 26 | if (data.length > 0) { 27 | [subject sendNext:data]; 28 | [self readInBackgroundAndNotify]; 29 | } else { 30 | [subject sendCompleted]; 31 | [subscription dispose]; 32 | } 33 | }]; 34 | 35 | [self readInBackgroundAndNotify]; 36 | 37 | return subject; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSIndexSet+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSIndexSet+RACSequenceAdditions.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Sergey Gavrilyuk on 12/17/13. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACSequence; 12 | 13 | @interface NSIndexSet (RACSequenceAdditions) 14 | 15 | /// Creates and returns a sequence of indexes (as `NSNumber`s) corresponding to 16 | /// the receiver. 17 | /// 18 | /// Mutating the receiver will not affect the sequence after it's been created. 19 | @property (nonatomic, copy, readonly) RACSequence *rac_sequence; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSIndexSet+RACSequenceAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSIndexSet+RACSequenceAdditions.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Sergey Gavrilyuk on 12/17/13. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "NSIndexSet+RACSequenceAdditions.h" 10 | #import "RACIndexSetSequence.h" 11 | 12 | @implementation NSIndexSet (RACSequenceAdditions) 13 | 14 | - (RACSequence *)rac_sequence { 15 | return [RACIndexSetSequence sequenceWithIndexSet:self]; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSNotificationCenter+RACSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSNotificationCenter+RACSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 5/10/12. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACSignal; 12 | 13 | @interface NSNotificationCenter (RACSupport) 14 | 15 | // Sends the NSNotification every time the notification is posted. 16 | - (RACSignal *)rac_addObserverForName:(NSString *)notificationName object:(id)object; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSNotificationCenter+RACSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSNotificationCenter+RACSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 5/10/12. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import "NSNotificationCenter+RACSupport.h" 10 | #import "RACEXTScope.h" 11 | #import "RACSignal.h" 12 | #import "RACSubscriber.h" 13 | #import "RACDisposable.h" 14 | 15 | @implementation NSNotificationCenter (RACSupport) 16 | 17 | - (RACSignal *)rac_addObserverForName:(NSString *)notificationName object:(id)object { 18 | @unsafeify(object); 19 | return [[RACSignal createSignal:^(id subscriber) { 20 | @strongify(object); 21 | id observer = [self addObserverForName:notificationName object:object queue:nil usingBlock:^(NSNotification *note) { 22 | [subscriber sendNext:note]; 23 | }]; 24 | 25 | return [RACDisposable disposableWithBlock:^{ 26 | [self removeObserver:observer]; 27 | }]; 28 | }] setNameWithFormat:@"-rac_addObserverForName: %@ object: <%@: %p>", notificationName, [object class], object]; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSObject+RACDeallocating.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSObject+RACDeallocating.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Kazuo Koga on 2013/03/15. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACCompoundDisposable; 12 | @class RACDisposable; 13 | @class RACSignal; 14 | 15 | @interface NSObject (RACDeallocating) 16 | 17 | /// The compound disposable which will be disposed of when the receiver is 18 | /// deallocated. 19 | @property (atomic, readonly, strong) RACCompoundDisposable *rac_deallocDisposable; 20 | 21 | /// Returns a signal that will complete immediately before the receiver is fully 22 | /// deallocated. If already deallocated when the signal is subscribed to, 23 | /// a `completed` event will be sent immediately. 24 | - (RACSignal *)rac_willDeallocSignal; 25 | 26 | @end 27 | 28 | @interface NSObject (RACDeallocatingDeprecated) 29 | 30 | - (RACSignal *)rac_didDeallocSignal __attribute__((deprecated("Use -rac_willDeallocSignal"))); 31 | 32 | - (void)rac_addDeallocDisposable:(RACDisposable *)disposable __attribute__((deprecated("Add disposables to -rac_deallocDisposable instead"))); 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSObject+RACDescription.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSObject+RACDescription.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-05-13. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | // A private category providing a terser but faster alternative to -description. 12 | @interface NSObject (RACDescription) 13 | 14 | // A simplified description of the receiver, which does not invoke -description 15 | // (and thus should be much faster in many cases). 16 | // 17 | // This is for debugging purposes only, and will return a constant string 18 | // unless the RAC_DEBUG_SIGNAL_NAMES environment variable is set. 19 | - (NSString *)rac_description; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSObject+RACDescription.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSObject+RACDescription.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-05-13. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "NSObject+RACDescription.h" 10 | #import "RACTuple.h" 11 | 12 | @implementation NSObject (RACDescription) 13 | 14 | - (NSString *)rac_description { 15 | if (getenv("RAC_DEBUG_SIGNAL_NAMES") != NULL) { 16 | return [[NSString alloc] initWithFormat:@"<%@: %p>", self.class, self]; 17 | } else { 18 | return @"(description skipped)"; 19 | } 20 | } 21 | 22 | @end 23 | 24 | @implementation NSValue (RACDescription) 25 | 26 | - (NSString *)rac_description { 27 | return self.description; 28 | } 29 | 30 | @end 31 | 32 | @implementation NSString (RACDescription) 33 | 34 | - (NSString *)rac_description { 35 | return self.description; 36 | } 37 | 38 | @end 39 | 40 | @implementation RACTuple (RACDescription) 41 | 42 | - (NSString *)rac_description { 43 | if (getenv("RAC_DEBUG_SIGNAL_NAMES") != NULL) { 44 | return self.allObjects.description; 45 | } else { 46 | return @"(description skipped)"; 47 | } 48 | } 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSOrderedSet+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSOrderedSet+RACSequenceAdditions.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2012-10-29. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACSequence; 12 | 13 | @interface NSOrderedSet (RACSequenceAdditions) 14 | 15 | /// Creates and returns a sequence corresponding to the receiver. 16 | /// 17 | /// Mutating the receiver will not affect the sequence after it's been created. 18 | @property (nonatomic, copy, readonly) RACSequence *rac_sequence; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSOrderedSet+RACSequenceAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSOrderedSet+RACSequenceAdditions.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2012-10-29. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import "NSOrderedSet+RACSequenceAdditions.h" 10 | #import "NSArray+RACSequenceAdditions.h" 11 | 12 | @implementation NSOrderedSet (RACSequenceAdditions) 13 | 14 | - (RACSequence *)rac_sequence { 15 | // TODO: First class support for ordered set sequences. 16 | return self.array.rac_sequence; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSSet+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSSet+RACSequenceAdditions.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2012-10-29. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACSequence; 12 | 13 | @interface NSSet (RACSequenceAdditions) 14 | 15 | /// Creates and returns a sequence corresponding to the receiver. 16 | /// 17 | /// Mutating the receiver will not affect the sequence after it's been created. 18 | @property (nonatomic, copy, readonly) RACSequence *rac_sequence; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSSet+RACSequenceAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSSet+RACSequenceAdditions.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2012-10-29. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import "NSSet+RACSequenceAdditions.h" 10 | #import "NSArray+RACSequenceAdditions.h" 11 | 12 | @implementation NSSet (RACSequenceAdditions) 13 | 14 | - (RACSequence *)rac_sequence { 15 | // TODO: First class support for set sequences. 16 | return self.allObjects.rac_sequence; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSString+RACKeyPathUtilities.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+RACKeyPathUtilities.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Uri Baghin on 05/05/2013. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | // A private category of methods to extract parts of a key path. 12 | @interface NSString (RACKeyPathUtilities) 13 | 14 | // Returns an array of the components of the receiver. 15 | // 16 | // Calling this method on a string that isn't a key path is considered undefined 17 | // behavior. 18 | - (NSArray *)rac_keyPathComponents; 19 | 20 | // Returns a key path with all the components of the receiver except for the 21 | // last one. 22 | // 23 | // Calling this method on a string that isn't a key path is considered undefined 24 | // behavior. 25 | - (NSString *)rac_keyPathByDeletingLastKeyPathComponent; 26 | 27 | // Returns a key path with all the components of the receiver expect for the 28 | // first one. 29 | // 30 | // Calling this method on a string that isn't a key path is considered undefined 31 | // behavior. 32 | - (NSString *)rac_keyPathByDeletingFirstKeyPathComponent; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSString+RACKeyPathUtilities.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+RACKeyPathUtilities.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Uri Baghin on 05/05/2013. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "NSString+RACKeyPathUtilities.h" 10 | 11 | @implementation NSString (RACKeyPathUtilities) 12 | 13 | - (NSArray *)rac_keyPathComponents { 14 | if (self.length == 0) { 15 | return nil; 16 | } 17 | return [self componentsSeparatedByString:@"."]; 18 | } 19 | 20 | - (NSString *)rac_keyPathByDeletingLastKeyPathComponent { 21 | NSUInteger lastDotIndex = [self rangeOfString:@"." options:NSBackwardsSearch].location; 22 | if (lastDotIndex == NSNotFound) { 23 | return nil; 24 | } 25 | return [self substringToIndex:lastDotIndex]; 26 | } 27 | 28 | - (NSString *)rac_keyPathByDeletingFirstKeyPathComponent { 29 | NSUInteger firstDotIndex = [self rangeOfString:@"."].location; 30 | if (firstDotIndex == NSNotFound) { 31 | return nil; 32 | } 33 | return [self substringFromIndex:firstDotIndex + 1]; 34 | } 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSString+RACSequenceAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+RACSequenceAdditions.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2012-10-29. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACSequence; 12 | 13 | @interface NSString (RACSequenceAdditions) 14 | 15 | /// Creates and returns a sequence containing strings corresponding to each 16 | /// composed character sequence in the receiver. 17 | /// 18 | /// Mutating the receiver will not affect the sequence after it's been created. 19 | @property (nonatomic, copy, readonly) RACSequence *rac_sequence; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSString+RACSequenceAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+RACSequenceAdditions.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2012-10-29. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import "NSString+RACSequenceAdditions.h" 10 | #import "RACStringSequence.h" 11 | 12 | @implementation NSString (RACSequenceAdditions) 13 | 14 | - (RACSequence *)rac_sequence { 15 | return [RACStringSequence sequenceWithString:self offset:0]; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSString+RACSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+RACSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 5/11/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACScheduler; 12 | @class RACSignal; 13 | 14 | @interface NSString (RACSupport) 15 | 16 | // Reads in the contents of the file using +[NSString stringWithContentsOfURL:usedEncoding:error:]. 17 | // Note that encoding won't be valid until the signal completes successfully. 18 | // 19 | // scheduler - cannot be nil. 20 | + (RACSignal *)rac_readContentsOfURL:(NSURL *)URL usedEncoding:(NSStringEncoding *)encoding scheduler:(RACScheduler *)scheduler; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSString+RACSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+RACSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 5/11/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "NSString+RACSupport.h" 10 | #import "RACReplaySubject.h" 11 | #import "RACScheduler.h" 12 | 13 | @implementation NSString (RACSupport) 14 | 15 | + (RACSignal *)rac_readContentsOfURL:(NSURL *)URL usedEncoding:(NSStringEncoding *)encoding scheduler:(RACScheduler *)scheduler { 16 | NSCParameterAssert(scheduler != nil); 17 | 18 | RACReplaySubject *subject = [RACReplaySubject subject]; 19 | [subject setNameWithFormat:@"+rac_readContentsOfURL: %@ usedEncoding:scheduler: %@", URL, scheduler]; 20 | 21 | [scheduler schedule:^{ 22 | NSError *error = nil; 23 | NSString *string = [NSString stringWithContentsOfURL:URL usedEncoding:encoding error:&error]; 24 | if (string == nil) { 25 | [subject sendError:error]; 26 | } else { 27 | [subject sendNext:string]; 28 | [subject sendCompleted]; 29 | } 30 | }]; 31 | 32 | return subject; 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSURLConnection+RACSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSURLConnection+RACSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-10-01. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACSignal; 12 | 13 | @interface NSURLConnection (RACSupport) 14 | 15 | // Lazily loads data for the given request in the background. 16 | // 17 | // request - The URL request to load. This must not be nil. 18 | // 19 | // Returns a signal which will begin loading the request upon each subscription, 20 | // then send a `RACTuple` of the received `NSURLResponse` and downloaded 21 | // `NSData`, and complete on a background thread. If any errors occur, the 22 | // returned signal will error out. 23 | + (RACSignal *)rac_sendAsynchronousRequest:(NSURLRequest *)request; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSURLConnection+RACSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSURLConnection+RACSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-10-01. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "NSURLConnection+RACSupport.h" 10 | #import "RACDisposable.h" 11 | #import "RACSignal.h" 12 | #import "RACSubscriber.h" 13 | #import "RACTuple.h" 14 | 15 | @implementation NSURLConnection (RACSupport) 16 | 17 | + (RACSignal *)rac_sendAsynchronousRequest:(NSURLRequest *)request { 18 | NSCParameterAssert(request != nil); 19 | 20 | return [[RACSignal 21 | createSignal:^(id subscriber) { 22 | NSOperationQueue *queue = [[NSOperationQueue alloc] init]; 23 | queue.name = @"org.reactivecocoa.ReactiveCocoa.NSURLConnectionRACSupport"; 24 | 25 | [NSURLConnection sendAsynchronousRequest:request queue:queue completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) { 26 | // The docs say that `nil` data means an error occurred, but 27 | // `nil` responses can also occur in practice (circumstances 28 | // unknown). Consider either to be an error. 29 | // 30 | // Note that _empty_ data is not necessarily erroneous, as there 31 | // may be headers but no HTTP body. 32 | if (response == nil || data == nil) { 33 | [subscriber sendError:error]; 34 | } else { 35 | [subscriber sendNext:RACTuplePack(response, data)]; 36 | [subscriber sendCompleted]; 37 | } 38 | }]; 39 | 40 | return [RACDisposable disposableWithBlock:^{ 41 | // It's not clear if this will actually cancel the connection, 42 | // but we can at least prevent _some_ unnecessary work -- 43 | // without writing all the code for a proper delegate, which 44 | // doesn't really belong in RAC. 45 | queue.suspended = YES; 46 | [queue cancelAllOperations]; 47 | }]; 48 | }] 49 | setNameWithFormat:@"+rac_sendAsynchronousRequest: %@", request]; 50 | } 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSUserDefaults+RACSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSUserDefaults+RACSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Matt Diephouse on 12/19/13. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACChannelTerminal; 12 | 13 | @interface NSUserDefaults (RACSupport) 14 | 15 | /// Creates and returns a terminal for binding the user defaults key. 16 | /// 17 | /// **Note:** The value in the user defaults is *asynchronously* updated with 18 | /// values sent to the channel. 19 | /// 20 | /// key - The user defaults key to create the channel terminal for. 21 | /// 22 | /// Returns a channel terminal that sends the value of the user defaults key 23 | /// upon subscription, sends an updated value whenever the default changes, and 24 | /// updates the default asynchronously with values it receives. 25 | - (RACChannelTerminal *)rac_channelTerminalForKey:(NSString *)key; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/NSUserDefaults+RACSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSUserDefaults+RACSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Matt Diephouse on 12/19/13. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "NSUserDefaults+RACSupport.h" 10 | #import "RACEXTScope.h" 11 | #import "NSNotificationCenter+RACSupport.h" 12 | #import "NSObject+RACDeallocating.h" 13 | #import "RACChannel.h" 14 | #import "RACScheduler.h" 15 | #import "RACSignal+Operations.h" 16 | 17 | @implementation NSUserDefaults (RACSupport) 18 | 19 | - (RACChannelTerminal *)rac_channelTerminalForKey:(NSString *)key { 20 | RACChannel *channel = [RACChannel new]; 21 | 22 | RACScheduler *scheduler = [RACScheduler scheduler]; 23 | __block BOOL ignoreNextValue = NO; 24 | 25 | @weakify(self); 26 | [[[[[[[NSNotificationCenter.defaultCenter 27 | rac_addObserverForName:NSUserDefaultsDidChangeNotification object:self] 28 | map:^(id _) { 29 | @strongify(self); 30 | return [self objectForKey:key]; 31 | }] 32 | startWith:[self objectForKey:key]] 33 | // Don't send values that were set on the other side of the terminal. 34 | filter:^ BOOL (id _) { 35 | if (RACScheduler.currentScheduler == scheduler && ignoreNextValue) { 36 | ignoreNextValue = NO; 37 | return NO; 38 | } 39 | return YES; 40 | }] 41 | distinctUntilChanged] 42 | takeUntil:self.rac_willDeallocSignal] 43 | subscribe:channel.leadingTerminal]; 44 | 45 | [[channel.leadingTerminal 46 | deliverOn:scheduler] 47 | subscribeNext:^(id value) { 48 | @strongify(self); 49 | ignoreNextValue = YES; 50 | [self setObject:value forKey:key]; 51 | }]; 52 | 53 | return channel.followingTerminal; 54 | } 55 | 56 | @end 57 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACArraySequence.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACArraySequence.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2012-10-29. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import "RACSequence.h" 10 | 11 | // Private class that adapts an array to the RACSequence interface. 12 | @interface RACArraySequence : RACSequence 13 | 14 | // Returns a sequence for enumerating over the given array, starting from the 15 | // given offset. The array will be copied to prevent mutation. 16 | + (instancetype)sequenceWithArray:(NSArray *)array offset:(NSUInteger)offset; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACBehaviorSubject.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACBehaviorSubject.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 3/16/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACSubject.h" 10 | 11 | /// A behavior subject sends the last value it received when it is subscribed to. 12 | @interface RACBehaviorSubject : RACSubject 13 | 14 | /// Creates a new behavior subject with a default value. If it hasn't received 15 | /// any values when it gets subscribed to, it sends the default value. 16 | + (instancetype)behaviorSubjectWithDefaultValue:(id)value; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACBehaviorSubject.m: -------------------------------------------------------------------------------- 1 | // 2 | // RACBehaviorSubject.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 3/16/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACBehaviorSubject.h" 10 | #import "RACDisposable.h" 11 | #import "RACScheduler+Private.h" 12 | 13 | @interface RACBehaviorSubject () 14 | 15 | // This property should only be used while synchronized on self. 16 | @property (nonatomic, strong) id currentValue; 17 | 18 | @end 19 | 20 | @implementation RACBehaviorSubject 21 | 22 | #pragma mark Lifecycle 23 | 24 | + (instancetype)behaviorSubjectWithDefaultValue:(id)value { 25 | RACBehaviorSubject *subject = [self subject]; 26 | subject.currentValue = value; 27 | return subject; 28 | } 29 | 30 | #pragma mark RACSignal 31 | 32 | - (RACDisposable *)subscribe:(id)subscriber { 33 | RACDisposable *subscriptionDisposable = [super subscribe:subscriber]; 34 | 35 | RACDisposable *schedulingDisposable = [RACScheduler.subscriptionScheduler schedule:^{ 36 | @synchronized (self) { 37 | [subscriber sendNext:self.currentValue]; 38 | } 39 | }]; 40 | 41 | return [RACDisposable disposableWithBlock:^{ 42 | [subscriptionDisposable dispose]; 43 | [schedulingDisposable dispose]; 44 | }]; 45 | } 46 | 47 | #pragma mark RACSubscriber 48 | 49 | - (void)sendNext:(id)value { 50 | @synchronized (self) { 51 | self.currentValue = value; 52 | [super sendNext:value]; 53 | } 54 | } 55 | 56 | @end 57 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACBlockTrampoline.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACBlockTrampoline.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 10/21/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACTuple; 12 | 13 | // A private class that allows a limited type of dynamic block invocation. 14 | @interface RACBlockTrampoline : NSObject 15 | 16 | // Invokes the given block with the given arguments. All of the block's 17 | // argument types must be objects and it must be typed to return an object. 18 | // 19 | // At this time, it only supports blocks that take up to 15 arguments. Any more 20 | // is just cray. 21 | // 22 | // block - The block to invoke. Must accept as many arguments as are given in 23 | // the arguments array. Cannot be nil. 24 | // arguments - The arguments with which to invoke the block. `RACTupleNil`s will 25 | // be passed as nils. 26 | // 27 | // Returns the return value of invoking the block. 28 | + (id)invokeBlock:(id)block withArguments:(RACTuple *)arguments; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACCompoundDisposable.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACCompoundDisposable.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 11/30/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACDisposable.h" 10 | 11 | /// A disposable of disposables. When it is disposed, it disposes of all its 12 | /// contained disposables. 13 | /// 14 | /// If -addDisposable: is called after the compound disposable has been disposed 15 | /// of, the given disposable is immediately disposed. This allows a compound 16 | /// disposable to act as a stand-in for a disposable that will be delivered 17 | /// asynchronously. 18 | @interface RACCompoundDisposable : RACDisposable 19 | 20 | /// Creates and returns a new compound disposable. 21 | + (instancetype)compoundDisposable; 22 | 23 | /// Creates and returns a new compound disposable containing the given 24 | /// disposables. 25 | + (instancetype)compoundDisposableWithDisposables:(NSArray *)disposables; 26 | 27 | /// Adds the given disposable. If the receiving disposable has already been 28 | /// disposed of, the given disposable is disposed immediately. 29 | /// 30 | /// This method is thread-safe. 31 | /// 32 | /// disposable - The disposable to add. This may be nil, in which case nothing 33 | /// happens. 34 | - (void)addDisposable:(RACDisposable *)disposable; 35 | 36 | /// Removes the specified disposable from the compound disposable (regardless of 37 | /// its disposed status), or does nothing if it's not in the compound disposable. 38 | /// 39 | /// This is mainly useful for limiting the memory usage of the compound 40 | /// disposable for long-running operations. 41 | /// 42 | /// This method is thread-safe. 43 | /// 44 | /// disposable - The disposable to remove. This argument may be nil (to make the 45 | /// use of weak references easier). 46 | - (void)removeDisposable:(RACDisposable *)disposable; 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACCompoundDisposableProvider.d: -------------------------------------------------------------------------------- 1 | provider RACCompoundDisposable { 2 | probe added(char *compoundDisposable, char *disposable, long newTotal); 3 | probe removed(char *compoundDisposable, char *disposable, long newTotal); 4 | }; 5 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACDelegateProxy.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACDelegateProxy.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Cody Krieger on 5/19/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACSignal; 12 | 13 | // A private delegate object suitable for using 14 | // -rac_signalForSelector:fromProtocol: upon. 15 | @interface RACDelegateProxy : NSObject 16 | 17 | // The delegate to which messages should be forwarded if not handled by 18 | // any -signalForSelector: applications. 19 | @property (nonatomic, unsafe_unretained) id rac_proxiedDelegate; 20 | 21 | // Creates a delegate proxy capable of responding to selectors from `protocol`. 22 | - (instancetype)initWithProtocol:(Protocol *)protocol; 23 | 24 | // Calls -rac_signalForSelector:fromProtocol: using the `protocol` specified 25 | // during initialization. 26 | - (RACSignal *)signalForSelector:(SEL)selector; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACDisposable.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACDisposable.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 3/16/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACScopedDisposable; 12 | 13 | /// A disposable encapsulates the work necessary to tear down and cleanup a 14 | /// subscription. 15 | @interface RACDisposable : NSObject 16 | 17 | /// Whether the receiver has been disposed. 18 | /// 19 | /// Use of this property is discouraged, since it may be set to `YES` 20 | /// concurrently at any time. 21 | /// 22 | /// This property is not KVO-compliant. 23 | @property (atomic, assign, getter = isDisposed, readonly) BOOL disposed; 24 | 25 | + (instancetype)disposableWithBlock:(void (^)(void))block; 26 | 27 | /// Performs the disposal work. Can be called multiple times, though subsequent 28 | /// calls won't do anything. 29 | - (void)dispose; 30 | 31 | /// Returns a new disposable which will dispose of this disposable when it gets 32 | /// dealloc'd. 33 | - (RACScopedDisposable *)asScopedDisposable; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACDynamicSequence.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACDynamicSequence.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2012-10-29. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import "RACSequence.h" 10 | 11 | // Private class that implements a sequence dynamically using blocks. 12 | @interface RACDynamicSequence : RACSequence 13 | 14 | // Returns a sequence which evaluates `dependencyBlock` only once, the first 15 | // time either `headBlock` or `tailBlock` is evaluated. The result of 16 | // `dependencyBlock` will be passed into `headBlock` and `tailBlock` when 17 | // invoked. 18 | + (RACSequence *)sequenceWithLazyDependency:(id (^)(void))dependencyBlock headBlock:(id (^)(id dependency))headBlock tailBlock:(RACSequence *(^)(id dependency))tailBlock; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACDynamicSignal.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACDynamicSignal.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-10-10. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACSignal.h" 10 | 11 | // A private `RACSignal` subclasses that implements its subscription behavior 12 | // using a block. 13 | @interface RACDynamicSignal : RACSignal 14 | 15 | + (RACSignal *)createSignal:(RACDisposable * (^)(id subscriber))didSubscribe; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACDynamicSignal.m: -------------------------------------------------------------------------------- 1 | // 2 | // RACDynamicSignal.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-10-10. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACDynamicSignal.h" 10 | #import "RACEXTScope.h" 11 | #import "RACCompoundDisposable.h" 12 | #import "RACPassthroughSubscriber.h" 13 | #import "RACScheduler+Private.h" 14 | #import "RACSubscriber.h" 15 | #import 16 | 17 | @interface RACDynamicSignal () 18 | 19 | // The block to invoke for each subscriber. 20 | @property (nonatomic, copy, readonly) RACDisposable * (^didSubscribe)(id subscriber); 21 | 22 | @end 23 | 24 | @implementation RACDynamicSignal 25 | 26 | #pragma mark Lifecycle 27 | 28 | + (RACSignal *)createSignal:(RACDisposable * (^)(id subscriber))didSubscribe { 29 | RACDynamicSignal *signal = [[self alloc] init]; 30 | signal->_didSubscribe = [didSubscribe copy]; 31 | return [signal setNameWithFormat:@"+createSignal:"]; 32 | } 33 | 34 | #pragma mark Managing Subscribers 35 | 36 | - (RACDisposable *)subscribe:(id)subscriber { 37 | NSCParameterAssert(subscriber != nil); 38 | 39 | RACCompoundDisposable *disposable = [RACCompoundDisposable compoundDisposable]; 40 | subscriber = [[RACPassthroughSubscriber alloc] initWithSubscriber:subscriber signal:self disposable:disposable]; 41 | 42 | if (self.didSubscribe != NULL) { 43 | RACDisposable *schedulingDisposable = [RACScheduler.subscriptionScheduler schedule:^{ 44 | RACDisposable *innerDisposable = self.didSubscribe(subscriber); 45 | [disposable addDisposable:innerDisposable]; 46 | }]; 47 | 48 | [disposable addDisposable:schedulingDisposable]; 49 | } 50 | 51 | return disposable; 52 | } 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACEagerSequence.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACEagerSequence.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Uri Baghin on 02/01/2013. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACArraySequence.h" 10 | 11 | // Private class that implements an eager sequence. 12 | @interface RACEagerSequence : RACArraySequence 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACEmptySequence.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACEmptySequence.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2012-10-29. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import "RACSequence.h" 10 | 11 | // Private class representing an empty sequence. 12 | @interface RACEmptySequence : RACSequence 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACEmptySequence.m: -------------------------------------------------------------------------------- 1 | // 2 | // RACEmptySequence.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2012-10-29. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import "RACEmptySequence.h" 10 | 11 | @implementation RACEmptySequence 12 | 13 | #pragma mark Lifecycle 14 | 15 | + (instancetype)empty { 16 | static id singleton; 17 | static dispatch_once_t pred; 18 | 19 | dispatch_once(&pred, ^{ 20 | singleton = [[self alloc] init]; 21 | }); 22 | 23 | return singleton; 24 | } 25 | 26 | #pragma mark RACSequence 27 | 28 | - (id)head { 29 | return nil; 30 | } 31 | 32 | - (RACSequence *)tail { 33 | return nil; 34 | } 35 | 36 | - (RACSequence *)bind:(RACStreamBindBlock)bindBlock passingThroughValuesFromSequence:(RACSequence *)passthroughSequence { 37 | return passthroughSequence ?: self; 38 | } 39 | 40 | #pragma mark NSCoding 41 | 42 | - (Class)classForCoder { 43 | // Empty sequences should be encoded as themselves, not array sequences. 44 | return self.class; 45 | } 46 | 47 | - (id)initWithCoder:(NSCoder *)coder { 48 | // Return the singleton. 49 | return self.class.empty; 50 | } 51 | 52 | - (void)encodeWithCoder:(NSCoder *)coder { 53 | } 54 | 55 | #pragma mark NSObject 56 | 57 | - (NSString *)description { 58 | return [NSString stringWithFormat:@"<%@: %p>{ name = %@ }", self.class, self, self.name]; 59 | } 60 | 61 | - (NSUInteger)hash { 62 | // This hash isn't ideal, but it's better than -[RACSequence hash], which 63 | // would just be zero because we have no head. 64 | return (NSUInteger)(__bridge void *)self; 65 | } 66 | 67 | - (BOOL)isEqual:(RACSequence *)seq { 68 | return (self == seq); 69 | } 70 | 71 | @end 72 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACEmptySignal.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACEmptySignal.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-10-10. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACSignal.h" 10 | 11 | // A private `RACSignal` subclasses that synchronously sends completed to any 12 | // subscribers. 13 | @interface RACEmptySignal : RACSignal 14 | 15 | + (RACSignal *)empty; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACEmptySignal.m: -------------------------------------------------------------------------------- 1 | // 2 | // RACEmptySignal.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-10-10. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACEmptySignal.h" 10 | #import "RACScheduler+Private.h" 11 | #import "RACSubscriber.h" 12 | 13 | @implementation RACEmptySignal 14 | 15 | #pragma mark Properties 16 | 17 | // Only allow this signal's name to be customized in DEBUG, since it's 18 | // a singleton in release builds (see +empty). 19 | - (void)setName:(NSString *)name { 20 | #ifdef DEBUG 21 | [super setName:name]; 22 | #endif 23 | } 24 | 25 | - (NSString *)name { 26 | #ifdef DEBUG 27 | return super.name; 28 | #else 29 | return @"+empty"; 30 | #endif 31 | } 32 | 33 | #pragma mark Lifecycle 34 | 35 | + (RACSignal *)empty { 36 | #ifdef DEBUG 37 | // Create multiple instances of this class in DEBUG so users can set custom 38 | // names on each. 39 | return [[[self alloc] init] setNameWithFormat:@"+empty"]; 40 | #else 41 | static id singleton; 42 | static dispatch_once_t pred; 43 | 44 | dispatch_once(&pred, ^{ 45 | singleton = [[self alloc] init]; 46 | }); 47 | 48 | return singleton; 49 | #endif 50 | } 51 | 52 | #pragma mark Subscription 53 | 54 | - (RACDisposable *)subscribe:(id)subscriber { 55 | NSCParameterAssert(subscriber != nil); 56 | 57 | return [RACScheduler.subscriptionScheduler schedule:^{ 58 | [subscriber sendCompleted]; 59 | }]; 60 | } 61 | 62 | @end 63 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACErrorSignal.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACErrorSignal.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-10-10. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACSignal.h" 10 | 11 | // A private `RACSignal` subclasses that synchronously sends an error to any 12 | // subscribers. 13 | @interface RACErrorSignal : RACSignal 14 | 15 | + (RACSignal *)error:(NSError *)error; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACErrorSignal.m: -------------------------------------------------------------------------------- 1 | // 2 | // RACErrorSignal.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-10-10. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACErrorSignal.h" 10 | #import "RACScheduler+Private.h" 11 | #import "RACSubscriber.h" 12 | 13 | @interface RACErrorSignal () 14 | 15 | // The error to send upon subscription. 16 | @property (nonatomic, strong, readonly) NSError *error; 17 | 18 | @end 19 | 20 | @implementation RACErrorSignal 21 | 22 | #pragma mark Lifecycle 23 | 24 | + (RACSignal *)error:(NSError *)error { 25 | RACErrorSignal *signal = [[self alloc] init]; 26 | signal->_error = error; 27 | 28 | #ifdef DEBUG 29 | [signal setNameWithFormat:@"+error: %@", error]; 30 | #else 31 | signal.name = @"+error:"; 32 | #endif 33 | 34 | return signal; 35 | } 36 | 37 | #pragma mark Subscription 38 | 39 | - (RACDisposable *)subscribe:(id)subscriber { 40 | NSCParameterAssert(subscriber != nil); 41 | 42 | return [RACScheduler.subscriptionScheduler schedule:^{ 43 | [subscriber sendError:self.error]; 44 | }]; 45 | } 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACEvent.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACEvent.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-01-07. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | /// Describes the type of a RACEvent. 12 | /// 13 | /// RACEventTypeCompleted - A `completed` event. 14 | /// RACEventTypeError - An `error` event. 15 | /// RACEventTypeNext - A `next` event. 16 | typedef enum : NSUInteger { 17 | RACEventTypeCompleted, 18 | RACEventTypeError, 19 | RACEventTypeNext 20 | } RACEventType; 21 | 22 | /// Represents an event sent by a RACSignal. 23 | /// 24 | /// This corresponds to the `Notification` class in Rx. 25 | @interface RACEvent : NSObject 26 | 27 | /// Returns a singleton RACEvent representing the `completed` event. 28 | + (instancetype)completedEvent; 29 | 30 | /// Returns a new event of type RACEventTypeError, containing the given error. 31 | + (instancetype)eventWithError:(NSError *)error; 32 | 33 | /// Returns a new event of type RACEventTypeNext, containing the given value. 34 | + (instancetype)eventWithValue:(id)value; 35 | 36 | /// The type of event represented by the receiver. 37 | @property (nonatomic, assign, readonly) RACEventType eventType; 38 | 39 | /// Returns whether the receiver is of type RACEventTypeCompleted or 40 | /// RACEventTypeError. 41 | @property (nonatomic, getter = isFinished, assign, readonly) BOOL finished; 42 | 43 | /// The error associated with an event of type RACEventTypeError. This will be 44 | /// nil for all other event types. 45 | @property (nonatomic, strong, readonly) NSError *error; 46 | 47 | /// The value associated with an event of type RACEventTypeNext. This will be 48 | /// nil for all other event types. 49 | @property (nonatomic, strong, readonly) id value; 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACGroupedSignal.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACGroupedSignal.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 5/2/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACSubject.h" 10 | 11 | /// A grouped signal is used by -[RACSignal groupBy:transform:]. 12 | @interface RACGroupedSignal : RACSubject 13 | 14 | /// The key shared by the group. 15 | @property (nonatomic, readonly, copy) id key; 16 | 17 | + (instancetype)signalWithKey:(id)key; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACGroupedSignal.m: -------------------------------------------------------------------------------- 1 | // 2 | // RACGroupedSignal.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 5/2/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACGroupedSignal.h" 10 | 11 | @interface RACGroupedSignal () 12 | @property (nonatomic, copy) id key; 13 | @end 14 | 15 | @implementation RACGroupedSignal 16 | 17 | #pragma mark API 18 | 19 | + (instancetype)signalWithKey:(id)key { 20 | RACGroupedSignal *subject = [self subject]; 21 | subject.key = key; 22 | return subject; 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACImmediateScheduler.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACImmediateScheduler.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 11/30/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACScheduler.h" 10 | 11 | // A private scheduler which immediately executes its scheduled blocks. 12 | @interface RACImmediateScheduler : RACScheduler 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACImmediateScheduler.m: -------------------------------------------------------------------------------- 1 | // 2 | // RACImmediateScheduler.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 11/30/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACImmediateScheduler.h" 10 | #import "RACScheduler+Private.h" 11 | 12 | @implementation RACImmediateScheduler 13 | 14 | #pragma mark Lifecycle 15 | 16 | - (id)init { 17 | return [super initWithName:@"com.ReactiveCocoa.RACScheduler.immediateScheduler"]; 18 | } 19 | 20 | #pragma mark RACScheduler 21 | 22 | - (RACDisposable *)schedule:(void (^)(void))block { 23 | NSCParameterAssert(block != NULL); 24 | 25 | block(); 26 | return nil; 27 | } 28 | 29 | - (RACDisposable *)after:(NSDate *)date schedule:(void (^)(void))block { 30 | NSCParameterAssert(date != nil); 31 | NSCParameterAssert(block != NULL); 32 | 33 | [NSThread sleepUntilDate:date]; 34 | block(); 35 | 36 | return nil; 37 | } 38 | 39 | - (RACDisposable *)after:(NSDate *)date repeatingEvery:(NSTimeInterval)interval withLeeway:(NSTimeInterval)leeway schedule:(void (^)(void))block { 40 | NSCAssert(NO, @"+[RACScheduler immediateScheduler] does not support %@.", NSStringFromSelector(_cmd)); 41 | return nil; 42 | } 43 | 44 | - (RACDisposable *)scheduleRecursiveBlock:(RACSchedulerRecursiveBlock)recursiveBlock { 45 | for (__block NSUInteger remaining = 1; remaining > 0; remaining--) { 46 | recursiveBlock(^{ 47 | remaining++; 48 | }); 49 | } 50 | 51 | return nil; 52 | } 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACIndexSetSequence.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACIndexSetSequence.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Sergey Gavrilyuk on 12/18/13. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACSequence.h" 10 | 11 | // Private class that adapts an array to the RACSequence interface. 12 | @interface RACIndexSetSequence : RACSequence 13 | 14 | + (instancetype)sequenceWithIndexSet:(NSIndexSet *)indexSet; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACKVOProxy.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACKVOProxy.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Richard Speyer on 4/10/14. 6 | // Copyright (c) 2014 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | /// A singleton that can act as a proxy between a KVO observation and a RAC 12 | /// subscriber, in order to protect against KVO lifetime issues. 13 | @interface RACKVOProxy : NSObject 14 | 15 | /// Returns the singleton KVO proxy object. 16 | + (instancetype)sharedProxy; 17 | 18 | /// Registers an observer with the proxy, such that when the proxy receives a 19 | /// KVO change with the given context, it forwards it to the observer. 20 | /// 21 | /// observer - True observer of the KVO change. Must not be nil. 22 | /// context - Arbitrary context object used to differentiate multiple 23 | /// observations of the same keypath. Must be unique, cannot be nil. 24 | - (void)addObserver:(__weak NSObject *)observer forContext:(void *)context; 25 | 26 | /// Removes an observer from the proxy. Parameters must match those passed to 27 | /// addObserver:forContext:. 28 | /// 29 | /// observer - True observer of the KVO change. Must not be nil. 30 | /// context - Arbitrary context object used to differentiate multiple 31 | /// observations of the same keypath. Must be unique, cannot be nil. 32 | - (void)removeObserver:(NSObject *)observer forContext:(void *)context; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACKVOTrampoline.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACKVOTrampoline.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 1/15/13. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "NSObject+RACKVOWrapper.h" 11 | #import "RACDisposable.h" 12 | 13 | // A private trampoline object that represents a KVO observation. 14 | // 15 | // Disposing of the trampoline will stop observation. 16 | @interface RACKVOTrampoline : RACDisposable 17 | 18 | // Initializes the receiver with the given parameters. 19 | // 20 | // target - The object whose key path should be observed. Cannot be nil. 21 | // observer - The object that gets notified when the value at the key path 22 | // changes. Can be nil. 23 | // keyPath - The key path on `target` to observe. Cannot be nil. 24 | // options - Any key value observing options to use in the observation. 25 | // block - The block to call when the value at the observed key path changes. 26 | // Cannot be nil. 27 | // 28 | // Returns the initialized object. 29 | - (id)initWithTarget:(__weak NSObject *)target observer:(__weak NSObject *)observer keyPath:(NSString *)keyPath options:(NSKeyValueObservingOptions)options block:(RACKVOBlock)block; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACMulticastConnection+Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACMulticastConnection+Private.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 4/11/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACMulticastConnection.h" 10 | 11 | @class RACSubject; 12 | 13 | @interface RACMulticastConnection () 14 | 15 | - (id)initWithSourceSignal:(RACSignal *)source subject:(RACSubject *)subject; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACMulticastConnection.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACMulticastConnection.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 4/11/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACDisposable; 12 | @class RACSignal; 13 | 14 | /// A multicast connection encapsulates the idea of sharing one subscription to a 15 | /// signal to many subscribers. This is most often needed if the subscription to 16 | /// the underlying signal involves side-effects or shouldn't be called more than 17 | /// once. 18 | /// 19 | /// The multicasted signal is only subscribed to when 20 | /// -[RACMulticastConnection connect] is called. Until that happens, no values 21 | /// will be sent on `signal`. See -[RACMulticastConnection autoconnect] for how 22 | /// -[RACMulticastConnection connect] can be called automatically. 23 | /// 24 | /// Note that you shouldn't create RACMulticastConnection manually. Instead use 25 | /// -[RACSignal publish] or -[RACSignal multicast:]. 26 | @interface RACMulticastConnection : NSObject 27 | 28 | /// The multicasted signal. 29 | @property (nonatomic, strong, readonly) RACSignal *signal; 30 | 31 | /// Connect to the underlying signal by subscribing to it. Calling this multiple 32 | /// times does nothing but return the existing connection's disposable. 33 | /// 34 | /// Returns the disposable for the subscription to the multicasted signal. 35 | - (RACDisposable *)connect; 36 | 37 | /// Connects to the underlying signal when the returned signal is first 38 | /// subscribed to, and disposes of the subscription to the multicasted signal 39 | /// when the returned signal has no subscribers. 40 | /// 41 | /// If new subscribers show up after being disposed, they'll subscribe and then 42 | /// be immediately disposed of. The returned signal will never re-connect to the 43 | /// multicasted signal. 44 | /// 45 | /// Returns the autoconnecting signal. 46 | - (RACSignal *)autoconnect; 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACObjCRuntime.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACObjCRuntime.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Cody Krieger on 5/19/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | // A private class containing wrappers to runtime functions. 12 | @interface RACObjCRuntime : NSObject 13 | 14 | // Invokes objc_allocateClassPair(). Can be called from ARC code. 15 | + (Class)createClass:(const char *)className inheritingFromClass:(Class)superclass; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACObjCRuntime.m: -------------------------------------------------------------------------------- 1 | // 2 | // RACObjCRuntime.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Cody Krieger on 5/19/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACObjCRuntime.h" 10 | #import 11 | 12 | #if __has_feature(objc_arc) 13 | #error "This file must be compiled without ARC." 14 | #endif 15 | 16 | @implementation RACObjCRuntime 17 | 18 | + (Class)createClass:(const char *)className inheritingFromClass:(Class)superclass { 19 | return objc_allocateClassPair(superclass, className, 0); 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACPassthroughSubscriber.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACPassthroughSubscriber.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-06-13. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "RACSubscriber.h" 11 | 12 | @class RACCompoundDisposable; 13 | @class RACSignal; 14 | 15 | // A private subscriber that passes through all events to another subscriber 16 | // while not disposed. 17 | @interface RACPassthroughSubscriber : NSObject 18 | 19 | // Initializes the receiver to pass through events until disposed. 20 | // 21 | // subscriber - The subscriber to forward events to. This must not be nil. 22 | // signal - The signal that will be sending events to the receiver. 23 | // disposable - When this disposable is disposed, no more events will be 24 | // forwarded. This must not be nil. 25 | // 26 | // Returns an initialized passthrough subscriber. 27 | - (instancetype)initWithSubscriber:(id)subscriber signal:(RACSignal *)signal disposable:(RACCompoundDisposable *)disposable; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACQueueScheduler+Subclass.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACQueueScheduler+Subclass.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 6/6/13. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACQueueScheduler.h" 10 | #import "RACScheduler+Subclass.h" 11 | 12 | /// An interface for use by GCD queue-based subclasses. 13 | /// 14 | /// See RACScheduler+Subclass.h for subclassing notes. 15 | @interface RACQueueScheduler () 16 | 17 | /// The queue on which blocks are enqueued. 18 | #if OS_OBJECT_HAVE_OBJC_SUPPORT 19 | @property (nonatomic, strong, readonly) dispatch_queue_t queue; 20 | #else 21 | // Swift builds with OS_OBJECT_HAVE_OBJC_SUPPORT=0 for Playgrounds and LLDB :( 22 | @property (nonatomic, assign, readonly) dispatch_queue_t queue; 23 | #endif 24 | 25 | /// Initializes the receiver with the name of the scheduler and the queue which 26 | /// the scheduler should use. 27 | /// 28 | /// name - The name of the scheduler. If nil, a default name will be used. 29 | /// queue - The queue upon which the receiver should enqueue scheduled blocks. 30 | /// This argument must not be NULL. 31 | /// 32 | /// Returns the initialized object. 33 | - (id)initWithName:(NSString *)name queue:(dispatch_queue_t)queue; 34 | 35 | /// Converts a date into a GCD time using dispatch_walltime(). 36 | /// 37 | /// date - The date to convert. This must not be nil. 38 | + (dispatch_time_t)wallTimeWithDate:(NSDate *)date; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACQueueScheduler.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACQueueScheduler.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 11/30/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACScheduler.h" 10 | 11 | /// An abstract scheduler which asynchronously enqueues all its work to a Grand 12 | /// Central Dispatch queue. 13 | /// 14 | /// Because RACQueueScheduler is abstract, it should not be instantiated 15 | /// directly. Create a subclass using the `RACQueueScheduler+Subclass.h` 16 | /// interface and use that instead. 17 | @interface RACQueueScheduler : RACScheduler 18 | @end 19 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACReplaySubject.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACReplaySubject.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 3/14/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACSubject.h" 10 | 11 | extern const NSUInteger RACReplaySubjectUnlimitedCapacity; 12 | 13 | /// A replay subject saves the values it is sent (up to its defined capacity) 14 | /// and resends those to new subscribers. It will also replay an error or 15 | /// completion. 16 | @interface RACReplaySubject : RACSubject 17 | 18 | /// Creates a new replay subject with the given capacity. A capacity of 19 | /// RACReplaySubjectUnlimitedCapacity means values are never trimmed. 20 | + (instancetype)replaySubjectWithCapacity:(NSUInteger)capacity; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACReturnSignal.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACReturnSignal.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-10-10. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACSignal.h" 10 | 11 | // A private `RACSignal` subclasses that synchronously sends a value to any 12 | // subscribers, then completes. 13 | @interface RACReturnSignal : RACSignal 14 | 15 | + (RACSignal *)return:(id)value; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACScheduler+Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACScheduler+Private.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 11/29/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACScheduler.h" 10 | 11 | // The thread-specific current scheduler key. 12 | extern NSString * const RACSchedulerCurrentSchedulerKey; 13 | 14 | // A private interface for internal RAC use only. 15 | @interface RACScheduler () 16 | 17 | // A dedicated scheduler that fills two requirements: 18 | // 19 | // 1. By the time subscription happens, we need a valid +currentScheduler. 20 | // 2. Subscription should happen as soon as possible. 21 | // 22 | // To fulfill those two, if we already have a valid +currentScheduler, it 23 | // immediately executes scheduled blocks. If we don't, it will execute scheduled 24 | // blocks with a private background scheduler. 25 | + (instancetype)subscriptionScheduler; 26 | 27 | // Initializes the receiver with the given name. 28 | // 29 | // name - The name of the scheduler. If nil, a default name will be used. 30 | // 31 | // Returns the initialized object. 32 | - (id)initWithName:(NSString *)name; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACScheduler+Subclass.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACScheduler.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Miķelis Vindavs on 5/27/14. 6 | // Copyright (c) 2014 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "RACScheduler.h" 11 | 12 | /// An interface for use by subclasses. 13 | /// 14 | /// Subclasses should use `-performAsCurrentScheduler:` to do the actual block 15 | /// invocation so that +[RACScheduler currentScheduler] behaves as expected. 16 | /// 17 | /// **Note that RACSchedulers are expected to be serial**. Subclasses must honor 18 | /// that contract. See `RACTargetQueueScheduler` for a queue-based scheduler 19 | /// which will enforce the serialization guarantee. 20 | @interface RACScheduler () 21 | 22 | /// Performs the given block with the receiver as the current scheduler for 23 | /// its thread. This should only be called by subclasses to perform their 24 | /// scheduled blocks. 25 | /// 26 | /// block - The block to execute. Cannot be NULL. 27 | - (void)performAsCurrentScheduler:(void (^)(void))block; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACScopedDisposable.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACScopedDisposable.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 3/28/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACDisposable.h" 10 | 11 | /// A disposable that calls its own -dispose when it is dealloc'd. 12 | @interface RACScopedDisposable : RACDisposable 13 | 14 | /// Creates a new scoped disposable that will also dispose of the given 15 | /// disposable when it is dealloc'd. 16 | + (instancetype)scopedDisposableWithDisposable:(RACDisposable *)disposable; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACScopedDisposable.m: -------------------------------------------------------------------------------- 1 | // 2 | // RACScopedDisposable.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 3/28/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACScopedDisposable.h" 10 | 11 | @implementation RACScopedDisposable 12 | 13 | #pragma mark Lifecycle 14 | 15 | + (instancetype)scopedDisposableWithDisposable:(RACDisposable *)disposable { 16 | return [self disposableWithBlock:^{ 17 | [disposable dispose]; 18 | }]; 19 | } 20 | 21 | - (void)dealloc { 22 | [self dispose]; 23 | } 24 | 25 | #pragma mark RACDisposable 26 | 27 | - (RACScopedDisposable *)asScopedDisposable { 28 | // totally already are 29 | return self; 30 | } 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACSerialDisposable.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACSerialDisposable.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-07-22. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACDisposable.h" 10 | 11 | /// A disposable that contains exactly one other disposable and allows it to be 12 | /// swapped out atomically. 13 | @interface RACSerialDisposable : RACDisposable 14 | 15 | /// The inner disposable managed by the serial disposable. 16 | /// 17 | /// This property is thread-safe for reading and writing. However, if you want to 18 | /// read the current value _and_ write a new one atomically, use 19 | /// -swapInDisposable: instead. 20 | /// 21 | /// Disposing of the receiver will also dispose of the current disposable set for 22 | /// this property, then set the property to nil. If any new disposable is set 23 | /// after the receiver is disposed, it will be disposed immediately and this 24 | /// property will remain set to nil. 25 | @property (atomic, strong) RACDisposable *disposable; 26 | 27 | /// Creates a serial disposable which will wrap the given disposable. 28 | /// 29 | /// disposable - The value to set for `disposable`. This may be nil. 30 | /// 31 | /// Returns a RACSerialDisposable, or nil if an error occurs. 32 | + (instancetype)serialDisposableWithDisposable:(RACDisposable *)disposable; 33 | 34 | /// Atomically swaps the receiver's `disposable` for `newDisposable`. 35 | /// 36 | /// newDisposable - The new value for `disposable`. If the receiver has already 37 | /// been disposed, this disposable will be too, and `disposable` 38 | /// will remain set to nil. This argument may be nil. 39 | /// 40 | /// Returns the previous value for the `disposable` property. 41 | - (RACDisposable *)swapInDisposable:(RACDisposable *)newDisposable; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACSignalProvider.d: -------------------------------------------------------------------------------- 1 | provider RACSignal { 2 | probe next(char *signal, char *subscriber, char *valueDescription); 3 | probe completed(char *signal, char *subscriber); 4 | probe error(char *signal, char *subscriber, char *errorDescription); 5 | }; 6 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACSignalSequence.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACSignalSequence.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2012-11-09. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACSequence.h" 10 | 11 | @class RACSignal; 12 | 13 | // Private class that adapts a RACSignal to the RACSequence interface. 14 | @interface RACSignalSequence : RACSequence 15 | 16 | // Returns a sequence for enumerating over the given signal. 17 | + (RACSequence *)sequenceWithSignal:(RACSignal *)signal; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACStream+Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACStream+Private.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-07-22. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACStream.h" 10 | 11 | @interface RACStream () 12 | 13 | // Combines a list of streams using the logic of the given block. 14 | // 15 | // streams - The streams to combine. 16 | // block - An operator that combines two streams and returns a new one. The 17 | // returned stream should contain 2-tuples of the streams' combined 18 | // values. 19 | // 20 | // Returns a combined stream. 21 | + (instancetype)join:(id)streams block:(RACStream * (^)(id, id))block; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACStringSequence.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACStringSequence.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2012-10-29. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import "RACSequence.h" 10 | 11 | // Private class that adapts a string to the RACSequence interface. 12 | @interface RACStringSequence : RACSequence 13 | 14 | // Returns a sequence for enumerating over the given string, starting from the 15 | // given character offset. The string will be copied to prevent mutation. 16 | + (RACSequence *)sequenceWithString:(NSString *)string offset:(NSUInteger)offset; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACSubject.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACSubject.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 3/9/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACSignal.h" 10 | #import "RACSubscriber.h" 11 | 12 | /// A subject can be thought of as a signal that you can manually control by 13 | /// sending next, completed, and error. 14 | /// 15 | /// They're most helpful in bridging the non-RAC world to RAC, since they let you 16 | /// manually control the sending of events. 17 | @interface RACSubject : RACSignal 18 | 19 | /// Returns a new subject. 20 | + (instancetype)subject; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACSubscriber+Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACSubscriber+Private.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-06-13. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACSubscriber.h" 10 | 11 | // A simple block-based subscriber. 12 | @interface RACSubscriber : NSObject 13 | 14 | // Creates a new subscriber with the given blocks. 15 | + (instancetype)subscriberWithNext:(void (^)(id x))next error:(void (^)(NSError *error))error completed:(void (^)(void))completed; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACSubscriber.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACSubscriber.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 3/1/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACCompoundDisposable; 12 | 13 | /// Represents any object which can directly receive values from a RACSignal. 14 | /// 15 | /// You generally shouldn't need to implement this protocol. +[RACSignal 16 | /// createSignal:], RACSignal's subscription methods, or RACSubject should work 17 | /// for most uses. 18 | /// 19 | /// Implementors of this protocol may receive messages and values from multiple 20 | /// threads simultaneously, and so should be thread-safe. Subscribers will also 21 | /// be weakly referenced so implementations must allow that. 22 | @protocol RACSubscriber 23 | @required 24 | 25 | /// Sends the next value to subscribers. 26 | /// 27 | /// value - The value to send. This can be `nil`. 28 | - (void)sendNext:(id)value; 29 | 30 | /// Sends the error to subscribers. 31 | /// 32 | /// error - The error to send. This can be `nil`. 33 | /// 34 | /// This terminates the subscription, and invalidates the subscriber (such that 35 | /// it cannot subscribe to anything else in the future). 36 | - (void)sendError:(NSError *)error; 37 | 38 | /// Sends completed to subscribers. 39 | /// 40 | /// This terminates the subscription, and invalidates the subscriber (such that 41 | /// it cannot subscribe to anything else in the future). 42 | - (void)sendCompleted; 43 | 44 | /// Sends the subscriber a disposable that represents one of its subscriptions. 45 | /// 46 | /// A subscriber may receive multiple disposables if it gets subscribed to 47 | /// multiple signals; however, any error or completed events must terminate _all_ 48 | /// subscriptions. 49 | - (void)didSubscribeWithDisposable:(RACCompoundDisposable *)disposable; 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACSubscriptingAssignmentTrampoline.m: -------------------------------------------------------------------------------- 1 | // 2 | // RACSubscriptingAssignmentTrampoline.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 9/24/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACSubscriptingAssignmentTrampoline.h" 10 | #import "RACSignal+Operations.h" 11 | 12 | @interface RACSubscriptingAssignmentTrampoline () 13 | 14 | // The object to bind to. 15 | @property (nonatomic, strong, readonly) id target; 16 | 17 | // A value to use when `nil` is sent on the bound signal. 18 | @property (nonatomic, strong, readonly) id nilValue; 19 | 20 | @end 21 | 22 | @implementation RACSubscriptingAssignmentTrampoline 23 | 24 | - (id)initWithTarget:(id)target nilValue:(id)nilValue { 25 | // This is often a programmer error, but this prevents crashes if the target 26 | // object has unexpectedly deallocated. 27 | if (target == nil) return nil; 28 | 29 | self = [super init]; 30 | if (self == nil) return nil; 31 | 32 | _target = target; 33 | _nilValue = nilValue; 34 | 35 | return self; 36 | } 37 | 38 | - (void)setObject:(RACSignal *)signal forKeyedSubscript:(NSString *)keyPath { 39 | [signal setKeyPath:keyPath onObject:self.target nilValue:self.nilValue]; 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACSubscriptionScheduler.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACSubscriptionScheduler.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 11/30/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACScheduler.h" 10 | 11 | // A private scheduler used only for subscriptions. See the private 12 | // +[RACScheduler subscriptionScheduler] method for more information. 13 | @interface RACSubscriptionScheduler : RACScheduler 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACSubscriptionScheduler.m: -------------------------------------------------------------------------------- 1 | // 2 | // RACSubscriptionScheduler.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 11/30/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACSubscriptionScheduler.h" 10 | #import "RACScheduler+Private.h" 11 | 12 | @interface RACSubscriptionScheduler () 13 | 14 | // A private background scheduler on which to subscribe if the +currentScheduler 15 | // is unknown. 16 | @property (nonatomic, strong, readonly) RACScheduler *backgroundScheduler; 17 | 18 | @end 19 | 20 | @implementation RACSubscriptionScheduler 21 | 22 | #pragma mark Lifecycle 23 | 24 | - (id)init { 25 | self = [super initWithName:@"com.ReactiveCocoa.RACScheduler.subscriptionScheduler"]; 26 | if (self == nil) return nil; 27 | 28 | _backgroundScheduler = [RACScheduler scheduler]; 29 | 30 | return self; 31 | } 32 | 33 | #pragma mark RACScheduler 34 | 35 | - (RACDisposable *)schedule:(void (^)(void))block { 36 | NSCParameterAssert(block != NULL); 37 | 38 | if (RACScheduler.currentScheduler == nil) return [self.backgroundScheduler schedule:block]; 39 | 40 | block(); 41 | return nil; 42 | } 43 | 44 | - (RACDisposable *)after:(NSDate *)date schedule:(void (^)(void))block { 45 | RACScheduler *scheduler = RACScheduler.currentScheduler ?: self.backgroundScheduler; 46 | return [scheduler after:date schedule:block]; 47 | } 48 | 49 | - (RACDisposable *)after:(NSDate *)date repeatingEvery:(NSTimeInterval)interval withLeeway:(NSTimeInterval)leeway schedule:(void (^)(void))block { 50 | RACScheduler *scheduler = RACScheduler.currentScheduler ?: self.backgroundScheduler; 51 | return [scheduler after:date repeatingEvery:interval withLeeway:leeway schedule:block]; 52 | } 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACTargetQueueScheduler.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACTargetQueueScheduler.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 6/6/13. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACQueueScheduler.h" 10 | 11 | /// A scheduler that enqueues blocks on a private serial queue, targeting an 12 | /// arbitrary GCD queue. 13 | @interface RACTargetQueueScheduler : RACQueueScheduler 14 | 15 | /// Initializes the receiver with a serial queue that will target the given 16 | /// `targetQueue`. 17 | /// 18 | /// name - The name of the scheduler. If nil, a default name will be used. 19 | /// targetQueue - The queue to target. Cannot be NULL. 20 | /// 21 | /// Returns the initialized object. 22 | - (id)initWithName:(NSString *)name targetQueue:(dispatch_queue_t)targetQueue; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACTargetQueueScheduler.m: -------------------------------------------------------------------------------- 1 | // 2 | // RACTargetQueueScheduler.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 6/6/13. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACTargetQueueScheduler.h" 10 | #import "RACQueueScheduler+Subclass.h" 11 | 12 | @implementation RACTargetQueueScheduler 13 | 14 | #pragma mark Lifecycle 15 | 16 | - (id)initWithName:(NSString *)name targetQueue:(dispatch_queue_t)targetQueue { 17 | NSCParameterAssert(targetQueue != NULL); 18 | 19 | if (name == nil) { 20 | name = [NSString stringWithFormat:@"com.ReactiveCocoa.RACTargetQueueScheduler(%s)", dispatch_queue_get_label(targetQueue)]; 21 | } 22 | 23 | dispatch_queue_t queue = dispatch_queue_create(name.UTF8String, DISPATCH_QUEUE_SERIAL); 24 | if (queue == NULL) return nil; 25 | 26 | dispatch_set_target_queue(queue, targetQueue); 27 | 28 | return [super initWithName:name queue:queue]; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACTestScheduler.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACTestScheduler.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-07-06. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACScheduler.h" 10 | 11 | /// A special kind of scheduler that steps through virtualized time. 12 | /// 13 | /// This scheduler class can be used in unit tests to verify asynchronous 14 | /// behaviors without spending significant time waiting. 15 | /// 16 | /// This class can be used from multiple threads, but only one thread can `step` 17 | /// through the enqueued actions at a time. Other threads will wait while the 18 | /// scheduled blocks are being executed. 19 | @interface RACTestScheduler : RACScheduler 20 | 21 | /// Initializes a new test scheduler. 22 | - (instancetype)init; 23 | 24 | /// Executes the next scheduled block, if any. 25 | /// 26 | /// This method will block until the scheduled action has completed. 27 | - (void)step; 28 | 29 | /// Executes up to the next `ticks` scheduled blocks. 30 | /// 31 | /// This method will block until the scheduled actions have completed. 32 | /// 33 | /// ticks - The number of scheduled blocks to execute. If there aren't this many 34 | /// blocks enqueued, all scheduled blocks are executed. 35 | - (void)step:(NSUInteger)ticks; 36 | 37 | /// Executes all of the scheduled blocks on the receiver. 38 | /// 39 | /// This method will block until the scheduled actions have completed. 40 | - (void)stepAll; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACTupleSequence.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACTupleSequence.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-05-01. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACSequence.h" 10 | 11 | // Private class that adapts a RACTuple to the RACSequence interface. 12 | @interface RACTupleSequence : RACSequence 13 | 14 | // Returns a sequence for enumerating over the given backing array (from a 15 | // RACTuple), starting from the given offset. 16 | + (instancetype)sequenceWithTupleBackingArray:(NSArray *)backingArray offset:(NSUInteger)offset; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACUnarySequence.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACUnarySequence.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-05-01. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACSequence.h" 10 | 11 | // Private class representing a sequence of exactly one value. 12 | @interface RACUnarySequence : RACSequence 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACUnit.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACUnit.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 3/27/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | /// A unit represents an empty value. 12 | /// 13 | /// It should never be necessary to create a unit yourself. Just use +defaultUnit. 14 | @interface RACUnit : NSObject 15 | 16 | /// A singleton instance. 17 | + (RACUnit *)defaultUnit; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACUnit.m: -------------------------------------------------------------------------------- 1 | // 2 | // RACUnit.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 3/27/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACUnit.h" 10 | 11 | @implementation RACUnit 12 | 13 | #pragma mark API 14 | 15 | + (RACUnit *)defaultUnit { 16 | static dispatch_once_t onceToken; 17 | static RACUnit *defaultUnit = nil; 18 | dispatch_once(&onceToken, ^{ 19 | defaultUnit = [[self alloc] init]; 20 | }); 21 | 22 | return defaultUnit; 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACValueTransformer.h: -------------------------------------------------------------------------------- 1 | // 2 | // RACValueTransformer.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 3/6/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | // A private block based transformer. 12 | @interface RACValueTransformer : NSValueTransformer 13 | 14 | + (instancetype)transformerWithBlock:(id (^)(id value))block; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/RACValueTransformer.m: -------------------------------------------------------------------------------- 1 | // 2 | // RACValueTransformer.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 3/6/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "RACValueTransformer.h" 10 | 11 | @interface RACValueTransformer () 12 | @property (nonatomic, copy) id (^transformBlock)(id value); 13 | @end 14 | 15 | 16 | @implementation RACValueTransformer 17 | 18 | 19 | #pragma mark NSValueTransformer 20 | 21 | + (BOOL)allowsReverseTransformation { 22 | return NO; 23 | } 24 | 25 | - (id)transformedValue:(id)value { 26 | return self.transformBlock(value); 27 | } 28 | 29 | 30 | #pragma mark API 31 | 32 | @synthesize transformBlock; 33 | 34 | + (instancetype)transformerWithBlock:(id (^)(id value))block { 35 | NSCParameterAssert(block != NULL); 36 | 37 | RACValueTransformer *transformer = [[self alloc] init]; 38 | transformer.transformBlock = block; 39 | return transformer; 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIActionSheet+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIActionSheet+RACSignalSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Dave Lee on 2013-06-22. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACDelegateProxy; 12 | @class RACSignal; 13 | 14 | @interface UIActionSheet (RACSignalSupport) 15 | 16 | /// A delegate proxy which will be set as the receiver's delegate when any of the 17 | /// methods in this category are used. 18 | @property (nonatomic, strong, readonly) RACDelegateProxy *rac_delegateProxy; 19 | 20 | /// Creates a signal for button clicks on the receiver. 21 | /// 22 | /// When this method is invoked, the `rac_delegateProxy` will become the 23 | /// receiver's delegate. Any previous delegate will become the -[RACDelegateProxy 24 | /// rac_proxiedDelegate], so that it receives any messages that the proxy doesn't 25 | /// know how to handle. Setting the receiver's `delegate` afterward is 26 | /// considered undefined behavior. 27 | /// 28 | /// Returns a signal which will send the index of the specific button clicked. 29 | /// The signal will complete when the receiver is deallocated. 30 | - (RACSignal *)rac_buttonClickedSignal; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIActionSheet+RACSignalSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIActionSheet+RACSignalSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Dave Lee on 2013-06-22. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "UIActionSheet+RACSignalSupport.h" 10 | #import "RACDelegateProxy.h" 11 | #import "RACSignal+Operations.h" 12 | #import "NSObject+RACDeallocating.h" 13 | #import "NSObject+RACDescription.h" 14 | #import 15 | 16 | @implementation UIActionSheet (RACSignalSupport) 17 | 18 | static void RACUseDelegateProxy(UIActionSheet *self) { 19 | if (self.delegate == self.rac_delegateProxy) return; 20 | 21 | self.rac_delegateProxy.rac_proxiedDelegate = self.delegate; 22 | self.delegate = (id)self.rac_delegateProxy; 23 | } 24 | 25 | - (RACDelegateProxy *)rac_delegateProxy { 26 | RACDelegateProxy *proxy = objc_getAssociatedObject(self, _cmd); 27 | if (proxy == nil) { 28 | proxy = [[RACDelegateProxy alloc] initWithProtocol:@protocol(UIActionSheetDelegate)]; 29 | objc_setAssociatedObject(self, _cmd, proxy, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 30 | } 31 | 32 | return proxy; 33 | } 34 | 35 | - (RACSignal *)rac_buttonClickedSignal { 36 | RACSignal *signal = [[[[self.rac_delegateProxy 37 | signalForSelector:@selector(actionSheet:clickedButtonAtIndex:)] 38 | reduceEach:^(UIActionSheet *actionSheet, NSNumber *buttonIndex) { 39 | return buttonIndex; 40 | }] 41 | takeUntil:self.rac_willDeallocSignal] 42 | setNameWithFormat:@"%@ -rac_buttonClickedSignal", self.rac_description]; 43 | 44 | RACUseDelegateProxy(self); 45 | 46 | return signal; 47 | } 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIBarButtonItem+RACCommandSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIBarButtonItem+RACCommandSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Kyle LeNeau on 3/27/13. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACCommand; 12 | 13 | @interface UIBarButtonItem (RACCommandSupport) 14 | 15 | /// Sets the control's command. When the control is clicked, the command is 16 | /// executed with the sender of the event. The control's enabledness is bound 17 | /// to the command's `canExecute`. 18 | /// 19 | /// Note: this will reset the control's target and action. 20 | @property (nonatomic, strong) RACCommand *rac_command; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIBarButtonItem+RACCommandSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIBarButtonItem+RACCommandSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Kyle LeNeau on 3/27/13. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "UIBarButtonItem+RACCommandSupport.h" 10 | #import "RACEXTKeyPathCoding.h" 11 | #import "RACCommand.h" 12 | #import "RACDisposable.h" 13 | #import "RACSignal+Operations.h" 14 | #import 15 | 16 | static void *UIControlRACCommandKey = &UIControlRACCommandKey; 17 | static void *UIControlEnabledDisposableKey = &UIControlEnabledDisposableKey; 18 | 19 | @implementation UIBarButtonItem (RACCommandSupport) 20 | 21 | - (RACCommand *)rac_command { 22 | return objc_getAssociatedObject(self, UIControlRACCommandKey); 23 | } 24 | 25 | - (void)setRac_command:(RACCommand *)command { 26 | objc_setAssociatedObject(self, UIControlRACCommandKey, command, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 27 | 28 | // Check for stored signal in order to remove it and add a new one 29 | RACDisposable *disposable = objc_getAssociatedObject(self, UIControlEnabledDisposableKey); 30 | [disposable dispose]; 31 | 32 | if (command == nil) return; 33 | 34 | disposable = [command.enabled setKeyPath:@keypath(self.enabled) onObject:self]; 35 | objc_setAssociatedObject(self, UIControlEnabledDisposableKey, disposable, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 36 | 37 | [self rac_hijackActionAndTargetIfNeeded]; 38 | } 39 | 40 | - (void)rac_hijackActionAndTargetIfNeeded { 41 | SEL hijackSelector = @selector(rac_commandPerformAction:); 42 | if (self.target == self && self.action == hijackSelector) return; 43 | 44 | if (self.target != nil) NSLog(@"WARNING: UIBarButtonItem.rac_command hijacks the control's existing target and action."); 45 | 46 | self.target = self; 47 | self.action = hijackSelector; 48 | } 49 | 50 | - (void)rac_commandPerformAction:(id)sender { 51 | [self.rac_command execute:sender]; 52 | } 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIButton+RACCommandSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIButton+RACCommandSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Ash Furrow on 2013-06-06. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACCommand; 12 | 13 | @interface UIButton (RACCommandSupport) 14 | 15 | /// Sets the button's command. When the button is clicked, the command is 16 | /// executed with the sender of the event. The button's enabledness is bound 17 | /// to the command's `canExecute`. 18 | @property (nonatomic, strong) RACCommand *rac_command; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIButton+RACCommandSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIButton+RACCommandSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Ash Furrow on 2013-06-06. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "UIButton+RACCommandSupport.h" 10 | #import "RACEXTKeyPathCoding.h" 11 | #import "RACCommand.h" 12 | #import "RACDisposable.h" 13 | #import "RACSignal+Operations.h" 14 | #import 15 | 16 | static void *UIButtonRACCommandKey = &UIButtonRACCommandKey; 17 | static void *UIButtonEnabledDisposableKey = &UIButtonEnabledDisposableKey; 18 | 19 | @implementation UIButton (RACCommandSupport) 20 | 21 | - (RACCommand *)rac_command { 22 | return objc_getAssociatedObject(self, UIButtonRACCommandKey); 23 | } 24 | 25 | - (void)setRac_command:(RACCommand *)command { 26 | objc_setAssociatedObject(self, UIButtonRACCommandKey, command, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 27 | 28 | // Check for stored signal in order to remove it and add a new one 29 | RACDisposable *disposable = objc_getAssociatedObject(self, UIButtonEnabledDisposableKey); 30 | [disposable dispose]; 31 | 32 | if (command == nil) return; 33 | 34 | disposable = [command.enabled setKeyPath:@keypath(self.enabled) onObject:self]; 35 | objc_setAssociatedObject(self, UIButtonEnabledDisposableKey, disposable, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 36 | 37 | [self rac_hijackActionAndTargetIfNeeded]; 38 | } 39 | 40 | - (void)rac_hijackActionAndTargetIfNeeded { 41 | SEL hijackSelector = @selector(rac_commandPerformAction:); 42 | 43 | for (NSString *selector in [self actionsForTarget:self forControlEvent:UIControlEventTouchUpInside]) { 44 | if (hijackSelector == NSSelectorFromString(selector)) { 45 | return; 46 | } 47 | } 48 | 49 | [self addTarget:self action:hijackSelector forControlEvents:UIControlEventTouchUpInside]; 50 | } 51 | 52 | - (void)rac_commandPerformAction:(id)sender { 53 | [self.rac_command execute:sender]; 54 | } 55 | 56 | @end 57 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UICollectionReusableView+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // UICollectionReusableView+RACSignalSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Kent Wong on 2013-10-04. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACSignal; 12 | 13 | // This category is only applicable to iOS >= 6.0. 14 | @interface UICollectionReusableView (RACSignalSupport) 15 | 16 | /// A signal which will send a RACUnit whenever -prepareForReuse is invoked upon 17 | /// the receiver. 18 | /// 19 | /// Examples 20 | /// 21 | /// [[[self.cancelButton 22 | /// rac_signalForControlEvents:UIControlEventTouchUpInside] 23 | /// takeUntil:self.rac_prepareForReuseSignal] 24 | /// subscribeNext:^(UIButton *x) { 25 | /// // do other things 26 | /// }]; 27 | @property (nonatomic, strong, readonly) RACSignal *rac_prepareForReuseSignal; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UICollectionReusableView+RACSignalSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // UICollectionReusableView+RACSignalSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Kent Wong on 2013-10-04. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "UICollectionReusableView+RACSignalSupport.h" 10 | #import "NSObject+RACDescription.h" 11 | #import "NSObject+RACSelectorSignal.h" 12 | #import "RACSignal+Operations.h" 13 | #import "RACUnit.h" 14 | #import 15 | 16 | @implementation UICollectionReusableView (RACSignalSupport) 17 | 18 | - (RACSignal *)rac_prepareForReuseSignal { 19 | RACSignal *signal = objc_getAssociatedObject(self, _cmd); 20 | if (signal != nil) return signal; 21 | 22 | signal = [[[self 23 | rac_signalForSelector:@selector(prepareForReuse)] 24 | mapReplace:RACUnit.defaultUnit] 25 | setNameWithFormat:@"%@ -rac_prepareForReuseSignal", self.rac_description]; 26 | 27 | objc_setAssociatedObject(self, _cmd, signal, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 28 | return signal; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIControl+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIControl+RACSignalSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 4/17/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACSignal; 12 | 13 | @interface UIControl (RACSignalSupport) 14 | 15 | /// Creates and returns a signal that sends the sender of the control event 16 | /// whenever one of the control events is triggered. 17 | - (RACSignal *)rac_signalForControlEvents:(UIControlEvents)controlEvents; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIControl+RACSignalSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIControl+RACSignalSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 4/17/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "UIControl+RACSignalSupport.h" 10 | #import "RACEXTScope.h" 11 | #import "RACCompoundDisposable.h" 12 | #import "RACDisposable.h" 13 | #import "RACSignal.h" 14 | #import "RACSubscriber.h" 15 | #import "NSObject+RACDeallocating.h" 16 | #import "NSObject+RACDescription.h" 17 | 18 | @implementation UIControl (RACSignalSupport) 19 | 20 | - (RACSignal *)rac_signalForControlEvents:(UIControlEvents)controlEvents { 21 | @weakify(self); 22 | 23 | return [[RACSignal 24 | createSignal:^(id subscriber) { 25 | @strongify(self); 26 | 27 | [self addTarget:subscriber action:@selector(sendNext:) forControlEvents:controlEvents]; 28 | [self.rac_deallocDisposable addDisposable:[RACDisposable disposableWithBlock:^{ 29 | [subscriber sendCompleted]; 30 | }]]; 31 | 32 | return [RACDisposable disposableWithBlock:^{ 33 | @strongify(self); 34 | [self removeTarget:subscriber action:@selector(sendNext:) forControlEvents:controlEvents]; 35 | }]; 36 | }] 37 | setNameWithFormat:@"%@ -rac_signalForControlEvents: %lx", self.rac_description, (unsigned long)controlEvents]; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIControl+RACSignalSupportPrivate.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIControl+RACSignalSupportPrivate.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Uri Baghin on 06/08/2013. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACChannelTerminal; 12 | 13 | @interface UIControl (RACSignalSupportPrivate) 14 | 15 | // Adds a RACChannel-based interface to the receiver for the given 16 | // UIControlEvents and exposes it. 17 | // 18 | // controlEvents - A mask of UIControlEvents on which to send new values. 19 | // key - The key whose value should be read and set when a control 20 | // event fires and when a value is sent to the 21 | // RACChannelTerminal respectively. 22 | // nilValue - The value to be assigned to the key when `nil` is sent to the 23 | // RACChannelTerminal. 24 | // 25 | // Returns a RACChannelTerminal which will send future values from the receiver, 26 | // and update the receiver when values are sent to the terminal. 27 | - (RACChannelTerminal *)rac_channelForControlEvents:(UIControlEvents)controlEvents key:(NSString *)key nilValue:(id)nilValue; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIControl+RACSignalSupportPrivate.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIControl+RACSignalSupportPrivate.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Uri Baghin on 06/08/2013. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "UIControl+RACSignalSupportPrivate.h" 10 | #import "NSObject+RACDeallocating.h" 11 | #import "NSObject+RACLifting.h" 12 | #import "RACChannel.h" 13 | #import "RACCompoundDisposable.h" 14 | #import "RACDisposable.h" 15 | #import "RACSignal+Operations.h" 16 | #import "UIControl+RACSignalSupport.h" 17 | 18 | @implementation UIControl (RACSignalSupportPrivate) 19 | 20 | - (RACChannelTerminal *)rac_channelForControlEvents:(UIControlEvents)controlEvents key:(NSString *)key nilValue:(id)nilValue { 21 | NSCParameterAssert(key.length > 0); 22 | key = [key copy]; 23 | RACChannel *channel = [[RACChannel alloc] init]; 24 | 25 | [self.rac_deallocDisposable addDisposable:[RACDisposable disposableWithBlock:^{ 26 | [channel.followingTerminal sendCompleted]; 27 | }]]; 28 | 29 | RACSignal *eventSignal = [[[self 30 | rac_signalForControlEvents:controlEvents] 31 | mapReplace:key] 32 | takeUntil:[[channel.followingTerminal 33 | ignoreValues] 34 | catchTo:RACSignal.empty]]; 35 | [[self 36 | rac_liftSelector:@selector(valueForKey:) withSignals:eventSignal, nil] 37 | subscribe:channel.followingTerminal]; 38 | 39 | RACSignal *valuesSignal = [channel.followingTerminal 40 | map:^(id value) { 41 | return value ?: nilValue; 42 | }]; 43 | [self rac_liftSelector:@selector(setValue:forKey:) withSignals:valuesSignal, [RACSignal return:key], nil]; 44 | 45 | return channel.leadingTerminal; 46 | } 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIDatePicker+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIDatePicker+RACSignalSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Uri Baghin on 20/07/2013. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACChannelTerminal; 12 | 13 | @interface UIDatePicker (RACSignalSupport) 14 | 15 | /// Creates a new RACChannel-based binding to the receiver. 16 | /// 17 | /// nilValue - The date to set when the terminal receives `nil`. 18 | /// 19 | /// Returns a RACChannelTerminal that sends the receiver's date whenever the 20 | /// UIControlEventValueChanged control event is fired, and sets the date to the 21 | /// values it receives. 22 | - (RACChannelTerminal *)rac_newDateChannelWithNilValue:(NSDate *)nilValue; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIDatePicker+RACSignalSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIDatePicker+RACSignalSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Uri Baghin on 20/07/2013. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "UIDatePicker+RACSignalSupport.h" 10 | #import "RACEXTKeyPathCoding.h" 11 | #import "UIControl+RACSignalSupportPrivate.h" 12 | 13 | @implementation UIDatePicker (RACSignalSupport) 14 | 15 | - (RACChannelTerminal *)rac_newDateChannelWithNilValue:(NSDate *)nilValue { 16 | return [self rac_channelForControlEvents:UIControlEventValueChanged key:@keypath(self.date) nilValue:nilValue]; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIGestureRecognizer+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIGestureRecognizer+RACSignalSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Vera on 5/5/13. 6 | // Copyright (c) 2013 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACSignal; 12 | 13 | @interface UIGestureRecognizer (RACSignalSupport) 14 | 15 | /// Returns a signal that sends the receiver when its gesture occurs. 16 | - (RACSignal *)rac_gestureSignal; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIGestureRecognizer+RACSignalSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIGestureRecognizer+RACSignalSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Vera on 5/5/13. 6 | // Copyright (c) 2013 GitHub. All rights reserved. 7 | // 8 | 9 | #import "UIGestureRecognizer+RACSignalSupport.h" 10 | #import "RACEXTScope.h" 11 | #import "NSObject+RACDeallocating.h" 12 | #import "NSObject+RACDescription.h" 13 | #import "RACCompoundDisposable.h" 14 | #import "RACDisposable.h" 15 | #import "RACSignal.h" 16 | #import "RACSubscriber.h" 17 | 18 | @implementation UIGestureRecognizer (RACSignalSupport) 19 | 20 | - (RACSignal *)rac_gestureSignal { 21 | @weakify(self); 22 | 23 | return [[RACSignal 24 | createSignal:^(id subscriber) { 25 | @strongify(self); 26 | 27 | [self addTarget:subscriber action:@selector(sendNext:)]; 28 | [self.rac_deallocDisposable addDisposable:[RACDisposable disposableWithBlock:^{ 29 | [subscriber sendCompleted]; 30 | }]]; 31 | 32 | return [RACDisposable disposableWithBlock:^{ 33 | @strongify(self); 34 | [self removeTarget:subscriber action:@selector(sendNext:)]; 35 | }]; 36 | }] 37 | setNameWithFormat:@"%@ -rac_gestureSignal", self.rac_description]; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIImagePickerController+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIImagePickerController+RACSignalSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Timur Kuchkarov on 28.03.14. 6 | // Copyright (c) 2014 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACDelegateProxy; 12 | @class RACSignal; 13 | 14 | @interface UIImagePickerController (RACSignalSupport) 15 | 16 | /// A delegate proxy which will be set as the receiver's delegate when any of the 17 | /// methods in this category are used. 18 | @property (nonatomic, strong, readonly) RACDelegateProxy *rac_delegateProxy; 19 | 20 | /// Creates a signal for every new selected image. 21 | /// 22 | /// When this method is invoked, the `rac_delegateProxy` will become the 23 | /// receiver's delegate. Any previous delegate will become the -[RACDelegateProxy 24 | /// rac_proxiedDelegate], so that it receives any messages that the proxy doesn't 25 | /// know how to handle. Setting the receiver's `delegate` afterward is considered 26 | /// undefined behavior. 27 | /// 28 | /// Returns a signal which will send the dictionary with info for the selected image. 29 | /// Caller is responsible for picker controller dismissal. The signal will complete 30 | /// itself when the receiver is deallocated or when user cancels selection. 31 | - (RACSignal *)rac_imageSelectedSignal; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIImagePickerController+RACSignalSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIImagePickerController+RACSignalSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Timur Kuchkarov on 28.03.14. 6 | // Copyright (c) 2014 GitHub. All rights reserved. 7 | // 8 | 9 | #import "UIImagePickerController+RACSignalSupport.h" 10 | #import "RACDelegateProxy.h" 11 | #import "RACSignal+Operations.h" 12 | #import "NSObject+RACDeallocating.h" 13 | #import "NSObject+RACDescription.h" 14 | #import 15 | 16 | @implementation UIImagePickerController (RACSignalSupport) 17 | 18 | static void RACUseDelegateProxy(UIImagePickerController *self) { 19 | if (self.delegate == self.rac_delegateProxy) return; 20 | 21 | self.rac_delegateProxy.rac_proxiedDelegate = self.delegate; 22 | self.delegate = (id)self.rac_delegateProxy; 23 | } 24 | 25 | - (RACDelegateProxy *)rac_delegateProxy { 26 | RACDelegateProxy *proxy = objc_getAssociatedObject(self, _cmd); 27 | if (proxy == nil) { 28 | proxy = [[RACDelegateProxy alloc] initWithProtocol:@protocol(UIImagePickerControllerDelegate)]; 29 | objc_setAssociatedObject(self, _cmd, proxy, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 30 | } 31 | 32 | return proxy; 33 | } 34 | 35 | - (RACSignal *)rac_imageSelectedSignal { 36 | RACSignal *pickerCancelledSignal = [[self.rac_delegateProxy 37 | signalForSelector:@selector(imagePickerControllerDidCancel:)] 38 | merge:self.rac_willDeallocSignal]; 39 | 40 | RACSignal *imagePickerSignal = [[[[self.rac_delegateProxy 41 | signalForSelector:@selector(imagePickerController:didFinishPickingMediaWithInfo:)] 42 | reduceEach:^(UIImagePickerController *pickerController, NSDictionary *userInfo) { 43 | return userInfo; 44 | }] 45 | takeUntil:pickerCancelledSignal] 46 | setNameWithFormat:@"%@ -rac_imageSelectedSignal", self.rac_description]; 47 | 48 | RACUseDelegateProxy(self); 49 | 50 | return imagePickerSignal; 51 | } 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIRefreshControl+RACCommandSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIRefreshControl+RACCommandSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Dave Lee on 2013-10-17. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACCommand; 12 | 13 | @interface UIRefreshControl (RACCommandSupport) 14 | 15 | /// Manipulate the RACCommand property associated with this refresh control. 16 | /// 17 | /// When this refresh control is activated by the user, the command will be 18 | /// executed. Upon completion or error of the execution signal, -endRefreshing 19 | /// will be invoked. 20 | @property (nonatomic, strong) RACCommand *rac_command; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UISegmentedControl+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // UISegmentedControl+RACSignalSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Uri Baghin on 20/07/2013. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACChannelTerminal; 12 | 13 | @interface UISegmentedControl (RACSignalSupport) 14 | 15 | /// Creates a new RACChannel-based binding to the receiver. 16 | /// 17 | /// nilValue - The segment to select when the terminal receives `nil`. 18 | /// 19 | /// Returns a RACChannelTerminal that sends the receiver's currently selected 20 | /// segment's index whenever the UIControlEventValueChanged control event is 21 | /// fired, and sets the selected segment index to the values it receives. 22 | - (RACChannelTerminal *)rac_newSelectedSegmentIndexChannelWithNilValue:(NSNumber *)nilValue; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UISegmentedControl+RACSignalSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // UISegmentedControl+RACSignalSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Uri Baghin on 20/07/2013. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "UISegmentedControl+RACSignalSupport.h" 10 | #import "RACEXTKeyPathCoding.h" 11 | #import "UIControl+RACSignalSupportPrivate.h" 12 | 13 | @implementation UISegmentedControl (RACSignalSupport) 14 | 15 | - (RACChannelTerminal *)rac_newSelectedSegmentIndexChannelWithNilValue:(NSNumber *)nilValue { 16 | return [self rac_channelForControlEvents:UIControlEventValueChanged key:@keypath(self.selectedSegmentIndex) nilValue:nilValue]; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UISlider+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // UISlider+RACSignalSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Uri Baghin on 20/07/2013. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACChannelTerminal; 12 | 13 | @interface UISlider (RACSignalSupport) 14 | 15 | /// Creates a new RACChannel-based binding to the receiver. 16 | /// 17 | /// nilValue - The value to set when the terminal receives `nil`. 18 | /// 19 | /// Returns a RACChannelTerminal that sends the receiver's value whenever the 20 | /// UIControlEventValueChanged control event is fired, and sets the value to the 21 | /// values it receives. 22 | - (RACChannelTerminal *)rac_newValueChannelWithNilValue:(NSNumber *)nilValue; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UISlider+RACSignalSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // UISlider+RACSignalSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Uri Baghin on 20/07/2013. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "UISlider+RACSignalSupport.h" 10 | #import "RACEXTKeyPathCoding.h" 11 | #import "UIControl+RACSignalSupportPrivate.h" 12 | 13 | @implementation UISlider (RACSignalSupport) 14 | 15 | - (RACChannelTerminal *)rac_newValueChannelWithNilValue:(NSNumber *)nilValue { 16 | return [self rac_channelForControlEvents:UIControlEventValueChanged key:@keypath(self.value) nilValue:nilValue]; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIStepper+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIStepper+RACSignalSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Uri Baghin on 20/07/2013. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACChannelTerminal; 12 | 13 | @interface UIStepper (RACSignalSupport) 14 | 15 | /// Creates a new RACChannel-based binding to the receiver. 16 | /// 17 | /// nilValue - The value to set when the terminal receives `nil`. 18 | /// 19 | /// Returns a RACChannelTerminal that sends the receiver's value whenever the 20 | /// UIControlEventValueChanged control event is fired, and sets the value to the 21 | /// values it receives. 22 | - (RACChannelTerminal *)rac_newValueChannelWithNilValue:(NSNumber *)nilValue; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UIStepper+RACSignalSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIStepper+RACSignalSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Uri Baghin on 20/07/2013. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "UIStepper+RACSignalSupport.h" 10 | #import "RACEXTKeyPathCoding.h" 11 | #import "UIControl+RACSignalSupportPrivate.h" 12 | 13 | @implementation UIStepper (RACSignalSupport) 14 | 15 | - (RACChannelTerminal *)rac_newValueChannelWithNilValue:(NSNumber *)nilValue { 16 | return [self rac_channelForControlEvents:UIControlEventValueChanged key:@keypath(self.value) nilValue:nilValue]; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UISwitch+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // UISwitch+RACSignalSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Uri Baghin on 20/07/2013. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACChannelTerminal; 12 | 13 | @interface UISwitch (RACSignalSupport) 14 | 15 | /// Creates a new RACChannel-based binding to the receiver. 16 | /// 17 | /// Returns a RACChannelTerminal that sends whether the receiver is on whenever 18 | /// the UIControlEventValueChanged control event is fired, and sets it on or off 19 | /// when it receives @YES or @NO respectively. 20 | - (RACChannelTerminal *)rac_newOnChannel; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UISwitch+RACSignalSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // UISwitch+RACSignalSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Uri Baghin on 20/07/2013. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "UISwitch+RACSignalSupport.h" 10 | #import "RACEXTKeyPathCoding.h" 11 | #import "UIControl+RACSignalSupportPrivate.h" 12 | 13 | @implementation UISwitch (RACSignalSupport) 14 | 15 | - (RACChannelTerminal *)rac_newOnChannel { 16 | return [self rac_channelForControlEvents:UIControlEventValueChanged key:@keypath(self.on) nilValue:@NO]; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UITableViewCell+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // UITableViewCell+RACSignalSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-07-22. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACSignal; 12 | 13 | @interface UITableViewCell (RACSignalSupport) 14 | 15 | /// A signal which will send a RACUnit whenever -prepareForReuse is invoked upon 16 | /// the receiver. 17 | /// 18 | /// Examples 19 | /// 20 | /// [[[self.cancelButton 21 | /// rac_signalForControlEvents:UIControlEventTouchUpInside] 22 | /// takeUntil:self.rac_prepareForReuseSignal] 23 | /// subscribeNext:^(UIButton *x) { 24 | /// // do other things 25 | /// }]; 26 | @property (nonatomic, strong, readonly) RACSignal *rac_prepareForReuseSignal; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UITableViewCell+RACSignalSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // UITableViewCell+RACSignalSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Justin Spahr-Summers on 2013-07-22. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "UITableViewCell+RACSignalSupport.h" 10 | #import "NSObject+RACDescription.h" 11 | #import "NSObject+RACSelectorSignal.h" 12 | #import "RACSignal+Operations.h" 13 | #import "RACUnit.h" 14 | #import 15 | 16 | @implementation UITableViewCell (RACSignalSupport) 17 | 18 | - (RACSignal *)rac_prepareForReuseSignal { 19 | RACSignal *signal = objc_getAssociatedObject(self, _cmd); 20 | if (signal != nil) return signal; 21 | 22 | signal = [[[self 23 | rac_signalForSelector:@selector(prepareForReuse)] 24 | mapReplace:RACUnit.defaultUnit] 25 | setNameWithFormat:@"%@ -rac_prepareForReuseSignal", self.rac_description]; 26 | 27 | objc_setAssociatedObject(self, _cmd, signal, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 28 | return signal; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UITableViewHeaderFooterView+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // UITableViewHeaderFooterView+RACSignalSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Syo Ikeda on 12/30/13. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACSignal; 12 | 13 | // This category is only applicable to iOS >= 6.0. 14 | @interface UITableViewHeaderFooterView (RACSignalSupport) 15 | 16 | /// A signal which will send a RACUnit whenever -prepareForReuse is invoked upon 17 | /// the receiver. 18 | /// 19 | /// Examples 20 | /// 21 | /// [[[self.cancelButton 22 | /// rac_signalForControlEvents:UIControlEventTouchUpInside] 23 | /// takeUntil:self.rac_prepareForReuseSignal] 24 | /// subscribeNext:^(UIButton *x) { 25 | /// // do other things 26 | /// }]; 27 | @property (nonatomic, strong, readonly) RACSignal *rac_prepareForReuseSignal; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UITableViewHeaderFooterView+RACSignalSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // UITableViewHeaderFooterView+RACSignalSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Syo Ikeda on 12/30/13. 6 | // Copyright (c) 2013 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "UITableViewHeaderFooterView+RACSignalSupport.h" 10 | #import "NSObject+RACDescription.h" 11 | #import "NSObject+RACSelectorSignal.h" 12 | #import "RACSignal+Operations.h" 13 | #import "RACUnit.h" 14 | #import 15 | 16 | @implementation UITableViewHeaderFooterView (RACSignalSupport) 17 | 18 | - (RACSignal *)rac_prepareForReuseSignal { 19 | RACSignal *signal = objc_getAssociatedObject(self, _cmd); 20 | if (signal != nil) return signal; 21 | 22 | signal = [[[self 23 | rac_signalForSelector:@selector(prepareForReuse)] 24 | mapReplace:RACUnit.defaultUnit] 25 | setNameWithFormat:@"%@ -rac_prepareForReuseSignal", self.rac_description]; 26 | 27 | objc_setAssociatedObject(self, _cmd, signal, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 28 | return signal; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UITextField+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // UITextField+RACSignalSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 4/17/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACChannelTerminal; 12 | @class RACSignal; 13 | 14 | @interface UITextField (RACSignalSupport) 15 | 16 | /// Creates and returns a signal for the text of the field. It always starts with 17 | /// the current text. The signal sends next when the UIControlEventAllEditingEvents 18 | /// control event is fired on the control. 19 | - (RACSignal *)rac_textSignal; 20 | 21 | /// Creates a new RACChannel-based binding to the receiver. 22 | /// 23 | /// Returns a RACChannelTerminal that sends the receiver's text whenever the 24 | /// UIControlEventAllEditingEvents control event is fired, and sets the text 25 | /// to the values it receives. 26 | - (RACChannelTerminal *)rac_newTextChannel; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UITextField+RACSignalSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // UITextField+RACSignalSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Josh Abernathy on 4/17/12. 6 | // Copyright (c) 2012 GitHub, Inc. All rights reserved. 7 | // 8 | 9 | #import "UITextField+RACSignalSupport.h" 10 | #import "RACEXTKeyPathCoding.h" 11 | #import "RACEXTScope.h" 12 | #import "NSObject+RACDeallocating.h" 13 | #import "NSObject+RACDescription.h" 14 | #import "RACSignal+Operations.h" 15 | #import "UIControl+RACSignalSupport.h" 16 | #import "UIControl+RACSignalSupportPrivate.h" 17 | 18 | @implementation UITextField (RACSignalSupport) 19 | 20 | - (RACSignal *)rac_textSignal { 21 | @weakify(self); 22 | return [[[[[RACSignal 23 | defer:^{ 24 | @strongify(self); 25 | return [RACSignal return:self]; 26 | }] 27 | concat:[self rac_signalForControlEvents:UIControlEventAllEditingEvents]] 28 | map:^(UITextField *x) { 29 | return x.text; 30 | }] 31 | takeUntil:self.rac_willDeallocSignal] 32 | setNameWithFormat:@"%@ -rac_textSignal", self.rac_description]; 33 | } 34 | 35 | - (RACChannelTerminal *)rac_newTextChannel { 36 | return [self rac_channelForControlEvents:UIControlEventAllEditingEvents key:@keypath(self.text) nilValue:@""]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UITextView+RACSignalSupport.h: -------------------------------------------------------------------------------- 1 | // 2 | // UITextView+RACSignalSupport.h 3 | // ReactiveCocoa 4 | // 5 | // Created by Cody Krieger on 5/18/12. 6 | // Copyright (c) 2012 Cody Krieger. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACDelegateProxy; 12 | @class RACSignal; 13 | 14 | @interface UITextView (RACSignalSupport) 15 | 16 | /// A delegate proxy which will be set as the receiver's delegate when any of the 17 | /// methods in this category are used. 18 | @property (nonatomic, strong, readonly) RACDelegateProxy *rac_delegateProxy; 19 | 20 | /// Creates a signal for the text of the receiver. 21 | /// 22 | /// When this method is invoked, the `rac_delegateProxy` will become the 23 | /// receiver's delegate. Any previous delegate will become the -[RACDelegateProxy 24 | /// rac_proxiedDelegate], so that it receives any messages that the proxy doesn't 25 | /// know how to handle. Setting the receiver's `delegate` afterward is 26 | /// considered undefined behavior. 27 | /// 28 | /// Returns a signal which will send the current text upon subscription, then 29 | /// again whenever the receiver's text is changed. The signal will complete when 30 | /// the receiver is deallocated. 31 | - (RACSignal *)rac_textSignal; 32 | 33 | @end 34 | 35 | @interface UITextView (RACSignalSupportUnavailable) 36 | 37 | - (RACSignal *)rac_signalForDelegateMethod:(SEL)method __attribute__((unavailable("Use -rac_signalForSelector:fromProtocol: instead"))); 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /Pods/ReactiveCocoa/ReactiveCocoa/UITextView+RACSignalSupport.m: -------------------------------------------------------------------------------- 1 | // 2 | // UITextView+RACSignalSupport.m 3 | // ReactiveCocoa 4 | // 5 | // Created by Cody Krieger on 5/18/12. 6 | // Copyright (c) 2012 Cody Krieger. All rights reserved. 7 | // 8 | 9 | #import "UITextView+RACSignalSupport.h" 10 | #import "RACEXTScope.h" 11 | #import "NSObject+RACDeallocating.h" 12 | #import "NSObject+RACDescription.h" 13 | #import "RACDelegateProxy.h" 14 | #import "RACSignal+Operations.h" 15 | #import "RACTuple.h" 16 | #import 17 | 18 | @implementation UITextView (RACSignalSupport) 19 | 20 | static void RACUseDelegateProxy(UITextView *self) { 21 | if (self.delegate == self.rac_delegateProxy) return; 22 | 23 | self.rac_delegateProxy.rac_proxiedDelegate = self.delegate; 24 | self.delegate = (id)self.rac_delegateProxy; 25 | } 26 | 27 | - (RACDelegateProxy *)rac_delegateProxy { 28 | RACDelegateProxy *proxy = objc_getAssociatedObject(self, _cmd); 29 | if (proxy == nil) { 30 | proxy = [[RACDelegateProxy alloc] initWithProtocol:@protocol(UITextViewDelegate)]; 31 | objc_setAssociatedObject(self, _cmd, proxy, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 32 | } 33 | 34 | return proxy; 35 | } 36 | 37 | - (RACSignal *)rac_textSignal { 38 | @weakify(self); 39 | RACSignal *signal = [[[[[RACSignal 40 | defer:^{ 41 | @strongify(self); 42 | return [RACSignal return:RACTuplePack(self)]; 43 | }] 44 | concat:[self.rac_delegateProxy signalForSelector:@selector(textViewDidChange:)]] 45 | reduceEach:^(UITextView *x) { 46 | return x.text; 47 | }] 48 | takeUntil:self.rac_willDeallocSignal] 49 | setNameWithFormat:@"%@ -rac_textSignal", self.rac_description]; 50 | 51 | RACUseDelegateProxy(self); 52 | 53 | return signal; 54 | } 55 | 56 | @end 57 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-ReactiveCocoa/Pods-ReactiveCocoa-Private.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods-ReactiveCocoa.xcconfig" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/ReactiveCocoa" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/ReactiveCocoa" 4 | OTHER_LDFLAGS = -ObjC 5 | PODS_ROOT = ${SRCROOT} 6 | SKIP_INSTALL = YES -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-ReactiveCocoa/Pods-ReactiveCocoa-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ReactiveCocoa : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ReactiveCocoa 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-ReactiveCocoa/Pods-ReactiveCocoa-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | #import "Pods-environment.h" 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-ReactiveCocoa/Pods-ReactiveCocoa.xcconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimurBK/ReactiveLocalizationManager/7c1855ab1b220efb8a365085a2b48af9f6b4fae9/Pods/Target Support Files/Pods-ReactiveCocoa/Pods-ReactiveCocoa.xcconfig -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods/Pods-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## ReactiveCocoa 5 | 6 | **Copyright (c) 2012 - 2015, GitHub, Inc.** 7 | **All rights reserved.** 8 | 9 | Permission is hereby granted, free of charge, to any person obtaining a copy of 10 | this software and associated documentation files (the "Software"), to deal in 11 | the Software without restriction, including without limitation the rights to 12 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 13 | the Software, and to permit persons to whom the Software is furnished to do so, 14 | subject to the following conditions: 15 | 16 | The above copyright notice and this permission notice shall be included in all 17 | copies or substantial portions of the Software. 18 | 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 20 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 21 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 22 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 23 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 24 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 | 26 | Generated by CocoaPods - http://cocoapods.org 27 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods/Pods-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods : NSObject 3 | @end 4 | @implementation PodsDummy_Pods 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods/Pods-environment.h: -------------------------------------------------------------------------------- 1 | 2 | // To check if a library is compiled with CocoaPods you 3 | // can use the `COCOAPODS` macro definition which is 4 | // defined in the xcconfigs so it is available in 5 | // headers also when they are imported in the client 6 | // project. 7 | 8 | 9 | // ReactiveCocoa 10 | #define COCOAPODS_POD_AVAILABLE_ReactiveCocoa 11 | #define COCOAPODS_VERSION_MAJOR_ReactiveCocoa 2 12 | #define COCOAPODS_VERSION_MINOR_ReactiveCocoa 5 13 | #define COCOAPODS_VERSION_PATCH_ReactiveCocoa 0 14 | 15 | // ReactiveCocoa/Core 16 | #define COCOAPODS_POD_AVAILABLE_ReactiveCocoa_Core 17 | #define COCOAPODS_VERSION_MAJOR_ReactiveCocoa_Core 2 18 | #define COCOAPODS_VERSION_MINOR_ReactiveCocoa_Core 5 19 | #define COCOAPODS_VERSION_PATCH_ReactiveCocoa_Core 0 20 | 21 | // ReactiveCocoa/UI 22 | #define COCOAPODS_POD_AVAILABLE_ReactiveCocoa_UI 23 | #define COCOAPODS_VERSION_MAJOR_ReactiveCocoa_UI 2 24 | #define COCOAPODS_VERSION_MINOR_ReactiveCocoa_UI 5 25 | #define COCOAPODS_VERSION_PATCH_ReactiveCocoa_UI 0 26 | 27 | // ReactiveCocoa/no-arc 28 | #define COCOAPODS_POD_AVAILABLE_ReactiveCocoa_no_arc 29 | #define COCOAPODS_VERSION_MAJOR_ReactiveCocoa_no_arc 2 30 | #define COCOAPODS_VERSION_MINOR_ReactiveCocoa_no_arc 5 31 | #define COCOAPODS_VERSION_PATCH_ReactiveCocoa_no_arc 0 32 | 33 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods/Pods.debug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/ReactiveCocoa" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/ReactiveCocoa" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"Pods-ReactiveCocoa" 5 | OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) 6 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods/Pods.release.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/ReactiveCocoa" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/ReactiveCocoa" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"Pods-ReactiveCocoa" 5 | OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) 6 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ReactiveLocalizationManager 2 | This class helps change app language without changing device language or restarting app. 3 | **NOTE** This class depends on **ReactiveCocoa** (currently v.2.5.x). 4 | 5 | # Installation 6 | 7 | ReactiveLocalizationManager is available via [CocoaPods](http://cocoapods.org/). Add the following line to your podfile: 8 | 9 | pod 'ReactiveLocalizationManager', '~> 1.2' 10 | 11 | Alternatively just drag&drop ReactiveLocalizationManager folder to your project. 12 | -------------------------------------------------------------------------------- /ReactiveLocalizationManager.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "ReactiveLocalizationManager" 3 | s.version = "1.2.0" 4 | s.summary = "Simple reactive localization manager which helps change language in app without restarting it." 5 | s.homepage = "https://github.com/TimurBK/ReactiveLocalizationManager" 6 | s.license = { :type => 'MIT', :file => 'LICENSE' } 7 | s.author = 'Timur Kuchkarov' 8 | s.source = { :git => "https://github.com/TimurBK/ReactiveLocalizationManager.git", :tag => s.version.to_s } 9 | s.ios.deployment_target = '7.0' 10 | s.source_files = 'ReactiveLocalizationManager' 11 | s.requires_arc = true 12 | s.dependency 'ReactiveCocoa', '~> 2.5' 13 | end -------------------------------------------------------------------------------- /ReactiveLocalizationManager.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ReactiveLocalizationManager.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ReactiveLocalizationManager/NSObject+i2KRLMLocalizeObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSObject+LocalizeObject.h 3 | // ReactiveLocalizationManager 4 | // 5 | // Created by Timur Kuchkarov on 10.03.15. 6 | // Copyright (c) 2015 i-2K. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class RACSignal; 12 | 13 | typedef void (^i2KRLMLocalizationBlock)(id object, NSLocale *locale); 14 | 15 | @interface NSObject (i2KRLMLocalizeObject) 16 | 17 | - (void)i2KRLM_setLocalizationSignal:(RACSignal *)signal withBlock:(i2KRLMLocalizationBlock)block; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /ReactiveLocalizationManager/NSObject+i2KRLMLocalizeObject.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSObject+LocalizeObject.m 3 | // ReactiveLocalizationManager 4 | // 5 | // Created by Timur Kuchkarov on 10.03.15. 6 | // Copyright (c) 2015 i-2K. All rights reserved. 7 | // 8 | 9 | #import "NSObject+i2KRLMLocalizeObject.h" 10 | #import 11 | @import ObjectiveC.runtime; 12 | 13 | @implementation NSObject (i2KRLMLocalizeObject) 14 | 15 | - (void)i2KRLM_setLocalizationSignal:(RACSignal *)signal withBlock:(i2KRLMLocalizationBlock)block 16 | { 17 | [self i2KRLM_setLocalizationBlock:block]; 18 | [self rac_liftSelector:@selector(i2KRLM_localizeWithLocale:) withSignals:signal, nil]; 19 | } 20 | 21 | - (void)i2KRLM_localizeWithLocale:(NSLocale *)locale 22 | { 23 | [self i2KRLM_localizationBlock](self, locale); 24 | } 25 | 26 | - (void)i2KRLM_setLocalizationBlock:(i2KRLMLocalizationBlock)block 27 | { 28 | objc_setAssociatedObject(self, @selector(i2KRLM_localizationBlock), block, OBJC_ASSOCIATION_COPY_NONATOMIC); 29 | } 30 | 31 | - (i2KRLMLocalizationBlock)i2KRLM_localizationBlock 32 | { 33 | return objc_getAssociatedObject(self, @selector(i2KRLM_localizationBlock)); 34 | } 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /ReactiveLocalizationManager/i2KRLMLocalizationManagerObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // LocalizationManagerObject.h 3 | // ReactiveLocalizationManager 4 | // 5 | // Created by Timur Kuchkarov on 18.09.14. 6 | // 7 | // The MIT License (MIT) 8 | // 9 | // Copyright (c) 2015 Timur Kuchkarov, i-2K 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 12 | // documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 13 | // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to 14 | // permit persons to whom the Software is furnished to do so, subject to the following conditions: 15 | // 16 | // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 17 | // Software. 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 19 | // WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 20 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 21 | // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import "i2KRLMLocalizationManager.h" 25 | 26 | @interface i2KRLMLocalizationManagerObject : NSObject 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /ReactiveLocalizationManager/i2KRLMSingletonProtocol.h: -------------------------------------------------------------------------------- 1 | // 2 | // SingletonProtocol.h 3 | // ReactiveLocalizationManager 4 | // 5 | // Created by Timur Kuchkarov on 18.09.14. 6 | // 7 | // The MIT License (MIT) 8 | // 9 | // Copyright (c) 2015 Timur Kuchkarov, i-2K 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 12 | // documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 13 | // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to 14 | // permit persons to whom the Software is furnished to do so, subject to the following conditions: 15 | // 16 | // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 17 | // Software. 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 19 | // WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 20 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 21 | // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | 25 | @class RACSignal; 26 | 27 | @protocol i2KRLMSingletonProtocol 28 | 29 | /** 30 | * Shared instance of object. 31 | * 32 | * @return Shared instance available throughout the app. 33 | */ 34 | + (instancetype)sharedInstance; 35 | 36 | /** 37 | * Signal that sends 'next' each time error occurs. 38 | * 39 | * @return Signal of errors. 40 | */ 41 | - (RACSignal *)errorsSignal; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /ReactiveLocalizationManager/i2KRLMUtilities.h: -------------------------------------------------------------------------------- 1 | // 2 | // Utilities.h 3 | // ReactiveLocalizationManager 4 | // 5 | // Created by Timur Kuchkarov on 18.09.14. 6 | // 7 | // The MIT License (MIT) 8 | // 9 | // Copyright (c) 2015 Timur Kuchkarov, i-2K 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 12 | // documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 13 | // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to 14 | // permit persons to whom the Software is furnished to do so, subject to the following conditions: 15 | // 16 | // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 17 | // Software. 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 19 | // WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 20 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 21 | // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | 25 | FOUNDATION_EXPORT NSString *i2KLocalizedStringForKey(NSString *key); 26 | 27 | @interface i2KRLMUtilities : NSObject 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /ReactiveLocalizationManager/i2KRLMUtilities.m: -------------------------------------------------------------------------------- 1 | // 2 | // Utilities.m 3 | // ReactiveLocalizationManager 4 | // 5 | // Created by Timur Kuchkarov on 18.09.14. 6 | // 7 | // The MIT License (MIT) 8 | // 9 | // Copyright (c) 2015 Timur Kuchkarov, i-2K 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 12 | // documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 13 | // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to 14 | // permit persons to whom the Software is furnished to do so, subject to the following conditions: 15 | // 16 | // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 17 | // Software. 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 19 | // WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 20 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 21 | // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "i2KRLMUtilities.h" 24 | #import "i2KRLMLocalizationManagerObject.h" 25 | 26 | NSString *i2KLocalizedStringForKey(NSString *key) 27 | { 28 | return [[i2KRLMLocalizationManagerObject sharedInstance] localizedStringForKey:key]; 29 | } 30 | 31 | @interface i2KRLMUtilities () 32 | 33 | @end 34 | 35 | @implementation i2KRLMUtilities 36 | 37 | @end 38 | --------------------------------------------------------------------------------