├── .gitignore
├── MVVMDemo
├── .gitignore
├── MVVMDemo.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcuserdata
│ │ │ └── liangshixing.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcuserdata
│ │ └── liangshixing.xcuserdatad
│ │ └── xcschemes
│ │ ├── MVVMDemo.xcscheme
│ │ └── xcschememanagement.plist
├── MVVMDemo.xcworkspace
│ └── contents.xcworkspacedata
├── MVVMDemo
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── Base.lproj
│ │ ├── LaunchScreen.storyboard
│ │ └── Main.storyboard
│ ├── Common
│ │ ├── BaseCellViewModel.h
│ │ ├── BaseCellViewModel.m
│ │ ├── BaseTableViewCell.h
│ │ ├── BaseTableViewCell.m
│ │ ├── LocationManager.h
│ │ └── LocationManager.m
│ ├── Demo1
│ │ ├── Demo1HotelData.json
│ │ ├── Demo1Model.h
│ │ ├── Demo1Model.m
│ │ ├── Demo1TravelData.json
│ │ ├── Demo1ViewController.h
│ │ ├── Demo1ViewController.m
│ │ ├── Demo1ViewModel.h
│ │ ├── Demo1ViewModel.m
│ │ ├── Hotel.h
│ │ ├── Hotel.m
│ │ ├── HotelCellViewModel.h
│ │ ├── HotelCellViewModel.m
│ │ ├── POITableViewCell.h
│ │ ├── POITableViewCell.m
│ │ ├── POITableViewCell.xib
│ │ ├── Scenic.h
│ │ ├── Scenic.m
│ │ ├── ScenicCellViewModel.h
│ │ └── ScenicCellViewModel.m
│ ├── Demo2
│ │ ├── Demo2ViewController.h
│ │ ├── Demo2ViewController.m
│ │ ├── Demo2ViewModel.h
│ │ └── Demo2ViewModel.m
│ ├── Info.plist
│ ├── POICellViewModel.h
│ ├── POICellViewModel.m
│ ├── ViewController.h
│ ├── ViewController.m
│ └── main.m
├── MVVMDemoTests
│ ├── Info.plist
│ └── MVVMDemoTests.m
├── MVVMDemoUITests
│ ├── Info.plist
│ └── MVVMDemoUITests.m
├── Podfile
├── Podfile.lock
└── Pods
│ ├── Headers
│ ├── Private
│ │ ├── Mantle
│ │ │ ├── EXTKeyPathCoding.h
│ │ │ ├── EXTRuntimeExtensions.h
│ │ │ ├── EXTScope.h
│ │ │ ├── MTLJSONAdapter.h
│ │ │ ├── MTLModel+NSCoding.h
│ │ │ ├── MTLModel.h
│ │ │ ├── MTLReflection.h
│ │ │ ├── MTLTransformerErrorHandling.h
│ │ │ ├── MTLValueTransformer.h
│ │ │ ├── Mantle.h
│ │ │ ├── NSArray+MTLManipulationAdditions.h
│ │ │ ├── NSDictionary+MTLJSONKeyPath.h
│ │ │ ├── NSDictionary+MTLManipulationAdditions.h
│ │ │ ├── NSDictionary+MTLMappingAdditions.h
│ │ │ ├── NSError+MTLModelException.h
│ │ │ ├── NSObject+MTLComparisonAdditions.h
│ │ │ ├── NSValueTransformer+MTLInversionAdditions.h
│ │ │ ├── NSValueTransformer+MTLPredefinedTransformerAdditions.h
│ │ │ └── metamacros.h
│ │ └── 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
│ │ ├── Mantle
│ │ ├── MTLJSONAdapter.h
│ │ ├── MTLModel+NSCoding.h
│ │ ├── MTLModel.h
│ │ ├── MTLReflection.h
│ │ ├── MTLTransformerErrorHandling.h
│ │ ├── MTLValueTransformer.h
│ │ ├── Mantle.h
│ │ ├── NSArray+MTLManipulationAdditions.h
│ │ ├── NSDictionary+MTLJSONKeyPath.h
│ │ ├── NSDictionary+MTLManipulationAdditions.h
│ │ ├── NSDictionary+MTLMappingAdditions.h
│ │ ├── NSError+MTLModelException.h
│ │ ├── NSObject+MTLComparisonAdditions.h
│ │ ├── NSValueTransformer+MTLInversionAdditions.h
│ │ └── NSValueTransformer+MTLPredefinedTransformerAdditions.h
│ │ └── 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
│ ├── Mantle
│ ├── LICENSE.md
│ ├── Mantle
│ │ ├── MTLJSONAdapter.h
│ │ ├── MTLJSONAdapter.m
│ │ ├── MTLModel+NSCoding.h
│ │ ├── MTLModel+NSCoding.m
│ │ ├── MTLModel.h
│ │ ├── MTLModel.m
│ │ ├── MTLReflection.h
│ │ ├── MTLReflection.m
│ │ ├── MTLTransformerErrorHandling.h
│ │ ├── MTLTransformerErrorHandling.m
│ │ ├── MTLValueTransformer.h
│ │ ├── MTLValueTransformer.m
│ │ ├── Mantle.h
│ │ ├── NSArray+MTLManipulationAdditions.h
│ │ ├── NSArray+MTLManipulationAdditions.m
│ │ ├── NSDictionary+MTLJSONKeyPath.h
│ │ ├── NSDictionary+MTLJSONKeyPath.m
│ │ ├── NSDictionary+MTLManipulationAdditions.h
│ │ ├── NSDictionary+MTLManipulationAdditions.m
│ │ ├── NSDictionary+MTLMappingAdditions.h
│ │ ├── NSDictionary+MTLMappingAdditions.m
│ │ ├── NSError+MTLModelException.h
│ │ ├── NSError+MTLModelException.m
│ │ ├── NSObject+MTLComparisonAdditions.h
│ │ ├── NSObject+MTLComparisonAdditions.m
│ │ ├── NSValueTransformer+MTLInversionAdditions.h
│ │ ├── NSValueTransformer+MTLInversionAdditions.m
│ │ ├── NSValueTransformer+MTLPredefinedTransformerAdditions.h
│ │ ├── NSValueTransformer+MTLPredefinedTransformerAdditions.m
│ │ └── extobjc
│ │ │ ├── EXTKeyPathCoding.h
│ │ │ ├── EXTRuntimeExtensions.h
│ │ │ ├── EXTRuntimeExtensions.m
│ │ │ ├── EXTScope.h
│ │ │ ├── EXTScope.m
│ │ │ └── metamacros.h
│ └── README.md
│ ├── Pods.xcodeproj
│ ├── project.pbxproj
│ └── xcuserdata
│ │ └── liangshixing.xcuserdatad
│ │ └── xcschemes
│ │ ├── Mantle.xcscheme
│ │ ├── Pods.xcscheme
│ │ ├── ReactiveCocoa.xcscheme
│ │ └── xcschememanagement.plist
│ ├── 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
│ ├── Mantle
│ ├── Mantle-dummy.m
│ ├── Mantle-prefix.pch
│ └── Mantle.xcconfig
│ ├── Pods
│ ├── Pods-acknowledgements.markdown
│ ├── Pods-acknowledgements.plist
│ ├── Pods-dummy.m
│ ├── Pods-frameworks.sh
│ ├── Pods-resources.sh
│ ├── Pods.debug.xcconfig
│ └── Pods.release.xcconfig
│ └── ReactiveCocoa
│ ├── ReactiveCocoa-dummy.m
│ ├── ReactiveCocoa-prefix.pch
│ └── ReactiveCocoa.xcconfig
├── README.md
└── images
├── Demo2.png
├── MVC.png
├── MVVM.png
├── UI_binding.png
├── UML.png
└── photo.jpeg
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 |
--------------------------------------------------------------------------------
/MVVMDemo/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | xcuserdata
3 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo.xcodeproj/project.xcworkspace/xcuserdata/liangshixing.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liangshixing/mvvmdemo/f31e20ad06f7dfb2a349d98abdee77d017c7c5f8/MVVMDemo/MVVMDemo.xcodeproj/project.xcworkspace/xcuserdata/liangshixing.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo.xcodeproj/xcuserdata/liangshixing.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | MVVMDemo.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 687996D61D436FF9008175A5
16 |
17 | primary
18 |
19 |
20 | 687996EF1D436FF9008175A5
21 |
22 | primary
23 |
24 |
25 | 687996FA1D436FF9008175A5
26 |
27 | primary
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/23.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Assets.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 | }
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Common/BaseCellViewModel.h:
--------------------------------------------------------------------------------
1 | //
2 | // BaseCellViewModel.h
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/25.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface BaseCellViewModel : NSObject
12 |
13 | @property (nonatomic) NSString *cellName;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Common/BaseCellViewModel.m:
--------------------------------------------------------------------------------
1 | //
2 | // BaseCellViewModel.m
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/25.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import "BaseCellViewModel.h"
10 |
11 | @implementation BaseCellViewModel
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Common/BaseTableViewCell.h:
--------------------------------------------------------------------------------
1 | //
2 | // BaseTableViewCell.h
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/25.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import
10 | @class BaseCellViewModel;
11 |
12 | @interface BaseTableViewCell : UITableViewCell
13 |
14 | - (void)bindWithViewModel:(BaseCellViewModel *)viewModel;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Common/BaseTableViewCell.m:
--------------------------------------------------------------------------------
1 | //
2 | // BaseTableViewCell.m
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/25.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import "BaseTableViewCell.h"
10 |
11 | @implementation BaseTableViewCell
12 |
13 | - (void)bindWithViewModel:(BaseCellViewModel *)viewModel
14 | {
15 | }
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Common/LocationManager.h:
--------------------------------------------------------------------------------
1 | //
2 | // LocationManager.h
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/25.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface LocationManager : NSObject
12 |
13 | @property (nonatomic) NSInteger lastLoaionCityID;
14 | @property (nonatomic) NSString *lastLoaionCityName;
15 |
16 | + (instancetype)defaultLocationManager;
17 |
18 | @end
19 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Common/LocationManager.m:
--------------------------------------------------------------------------------
1 | //
2 | // LocationManager.m
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/25.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import "LocationManager.h"
10 |
11 | @implementation LocationManager
12 | + (instancetype)defaultLocationManager
13 | {
14 | static dispatch_once_t onceToken;
15 | static LocationManager *manager;
16 | dispatch_once(&onceToken, ^{
17 | manager = [[LocationManager alloc] init];
18 |
19 | manager.lastLoaionCityID = 1;
20 | manager.lastLoaionCityName = @"北京";
21 | });
22 | return manager;
23 | }
24 |
25 | @end
26 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Demo1/Demo1HotelData.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": [
3 | {
4 | "poiAttrTagList": [
5 | "亲子酒店"
6 | ],
7 | "scoreIntro": "好:4.3分",
8 | "frontImg": "http://p1.meituan.net/165.165/hotel/8d493464d522247b7fe94c2c9a19b732465367.jpg",
9 | "avgScore": 4.3,
10 | "poiLastOrderTime": "17分钟前有人预订",
11 | "lowestPrice": 227,
12 | "markNumbers": 1567,
13 | "lng": 116.42252,
14 | "lat": 39.899286,
15 | "poiSaleAndSpanTag": "1000+人消费",
16 | "posdescr": "崇文门,国瑞购物中心附近",
17 | "name": "北京西瓜时尚宾馆"
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Demo1/Demo1Model.h:
--------------------------------------------------------------------------------
1 | //
2 | // Demo1Model.h
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/24.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface Demo1Model : NSObject
13 |
14 | - (RACSignal *)loadTravelData;
15 | - (RACSignal *)loadHotelData;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Demo1/Demo1TravelData.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": [
3 | {
4 | "campaignTag": "返券20元",
5 | "lowestPrice": 72.9,
6 | "lng": 116.498275,
7 | "lat": 39.866279,
8 | "pictureTag": "http://p0.meituan.net/deal/6270713b784947977f6d03953b2162584175.png",
9 | "cityId": 1,
10 | "cityName": "北京",
11 | "avgScore": 4.7,
12 | "areaName": "朝阳区",
13 | "frontImg": "http://p0.meituan.net/165.100/deal/__5022013__1590999.jpg",
14 | "solds": 83731,
15 | "name": "北京欢乐谷"
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Demo1/Demo1ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // Demo1TableViewController.h
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/24.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface Demo1ViewController : UITableViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Demo1/Demo1ViewModel.h:
--------------------------------------------------------------------------------
1 | //
2 | // Demo1ViewModel.h
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/24.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface Demo1ViewModel : NSObject
13 |
14 | @property (nonatomic, readonly) RACSignal *dataSignal;
15 | @property (nonatomic, readonly) RACSignal *errorSignal; // NSError
16 |
17 | @property (nonatomic, readonly) RACCommand *loadDataCommand;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Demo1/Hotel.h:
--------------------------------------------------------------------------------
1 | //
2 | // Hotel.h
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/8/2.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface Hotel : MTLModel
13 |
14 | @property (nonatomic) NSArray *poiAttrTagList;
15 | @property (nonatomic) NSString *scoreIntro;
16 | @property (nonatomic) double avgScore;
17 | @property (nonatomic) double lowestPrice;
18 | @property (nonatomic) double lng;
19 | @property (nonatomic) double lat;
20 | @property (nonatomic) NSString *lastOrderTime;
21 | @property (nonatomic) NSString *saleTag;
22 | @property (nonatomic) NSString *positionDescription;
23 | @property (nonatomic) NSString *name;
24 | @property (nonatomic) NSURL *frontImageURL;
25 |
26 | @end
27 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Demo1/Hotel.m:
--------------------------------------------------------------------------------
1 | //
2 | // Hotel.m
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/8/2.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import "Hotel.h"
10 |
11 | @implementation Hotel
12 |
13 | + (NSDictionary *)JSONKeyPathsByPropertyKey
14 | {
15 | return @{@"poiAttrTagList" : @"poiAttrTagList",
16 | @"lowestPrice" : @"lowestPrice",
17 | @"scoreIntro" : @"scoreIntro",
18 | @"avgScore" : @"avgScore",
19 | @"lng" : @"lng",
20 | @"lat" : @"lat",
21 | @"positionDescription" : @"posdescr",
22 | @"frontImageURL" : @"frontImg",
23 | @"name" : @"name",
24 | @"saleTag" : @"poiSaleAndSpanTag",
25 | @"lastOrderTime" : @"poiLastOrderTime"};
26 | }
27 |
28 | + (NSValueTransformer *)frontImageURLJSONTransformer
29 | {
30 | return [NSValueTransformer valueTransformerForName:MTLURLValueTransformerName];
31 | }
32 |
33 | @end
34 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Demo1/HotelCellViewModel.h:
--------------------------------------------------------------------------------
1 | //
2 | // HotelCellViewModel.h
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/8/2.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import "POICellViewModel.h"
10 |
11 | @class Hotel;
12 | @interface HotelCellViewModel : POICellViewModel
13 |
14 | - (instancetype)initWithHotel:(Hotel *)hotel;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Demo1/HotelCellViewModel.m:
--------------------------------------------------------------------------------
1 | //
2 | // HotelCellViewModel.m
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/8/2.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import "HotelCellViewModel.h"
10 | #import "Hotel.h"
11 |
12 | @interface HotelCellViewModel ()
13 | @property (nonatomic) Hotel *hotel;
14 | @end
15 |
16 | @implementation HotelCellViewModel
17 |
18 | - (instancetype)initWithHotel:(Hotel *)hotel
19 | {
20 | if (self = [super init]) {
21 | self.cellName = @"POITableViewCell";
22 | _hotel = hotel;
23 | [self bindSignals];
24 | }
25 | return self;
26 | }
27 |
28 | - (void)bindSignals
29 | {
30 | RACSignal *hotelSignal = [RACSignal return :self.hotel];
31 |
32 | self.titleSignal = [hotelSignal map:^id (Hotel *hotel) {
33 | return hotel.name;
34 | }];
35 |
36 | self.priceSignal = [RACSignal empty];
37 | self.campaignSignal = [hotelSignal map:^id (Hotel *hotel) {
38 | return hotel.poiAttrTagList.firstObject ? : @"";
39 | }];
40 |
41 | self.campaignHiddenSignal = [hotelSignal map:^id (Hotel *hotel) {
42 | return @(hotel.poiAttrTagList.count == 0);
43 | }];
44 |
45 | self.frontImageSignal = [[[hotelSignal map:^id (Hotel *hotel) {
46 | NSData *data = [NSData dataWithContentsOfURL:hotel.frontImageURL];
47 | return [UIImage imageWithData:data];
48 | }] subscribeOn:[RACScheduler schedulerWithPriority:RACSchedulerPriorityBackground]]
49 | deliverOnMainThread];
50 | self.rightFooterSignal = [RACSignal empty];
51 | }
52 |
53 | @end
54 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Demo1/POITableViewCell.h:
--------------------------------------------------------------------------------
1 | //
2 | // ScenicCell.h
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/25.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "BaseTableViewCell.h"
11 |
12 | @interface POITableViewCell : BaseTableViewCell
13 |
14 | @property (weak, nonatomic) IBOutlet UIImageView *frontImageView;
15 | @property (weak, nonatomic) IBOutlet UILabel *titleLabel;
16 | @property (weak, nonatomic) IBOutlet UILabel *priceLabel;
17 | @property (weak, nonatomic) IBOutlet UILabel *rightFooterLabel;
18 | @property (weak, nonatomic) IBOutlet UILabel *campaignLabel;
19 | @property (weak, nonatomic) IBOutlet UIView *campaignView;
20 |
21 | @end
22 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Demo1/POITableViewCell.m:
--------------------------------------------------------------------------------
1 | //
2 | // ScenicCell.m
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/25.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import "POITableViewCell.h"
10 | #import "POICellViewModel.h"
11 |
12 | @interface POITableViewCell ()
13 |
14 | @property (nonatomic) POICellViewModel *viewModel;
15 |
16 | @end
17 |
18 | @implementation POITableViewCell
19 |
20 | - (void)bindWithViewModel:(POICellViewModel *)viewModel
21 | {
22 | RAC(_titleLabel, text) = [viewModel.titleSignal takeUntil:self.rac_prepareForReuseSignal];
23 | RAC(_priceLabel, attributedText) = [viewModel.priceSignal takeUntil:self.rac_prepareForReuseSignal];
24 | RAC(_rightFooterLabel, text) = [viewModel.rightFooterSignal takeUntil:self.rac_prepareForReuseSignal];
25 | RAC(_campaignLabel, text) = [viewModel.campaignSignal takeUntil:self.rac_prepareForReuseSignal];
26 | RAC(_campaignView, hidden) = [viewModel.campaignHiddenSignal takeUntil:self.rac_prepareForReuseSignal];
27 | RAC(_frontImageView, image) = [viewModel.frontImageSignal takeUntil:self.rac_prepareForReuseSignal];
28 | _viewModel = viewModel;
29 | }
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Demo1/Scenic.h:
--------------------------------------------------------------------------------
1 | //
2 | // TravelModel.h
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/24.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 | @interface Scenic : MTLModel
12 |
13 | @property (nonatomic) NSString *campaignTag;
14 | @property (nonatomic) double lowestPrice;
15 | @property (nonatomic) double lng;
16 | @property (nonatomic) double lat;
17 | @property (nonatomic) NSInteger cityID;
18 | @property (nonatomic) NSString *cityName;
19 | @property (nonatomic) NSString *areaName;
20 | @property (nonatomic) NSURL *frontImgURL;
21 | @property (nonatomic) NSInteger solds;
22 | @property (nonatomic) NSString *name;
23 |
24 | @end
25 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Demo1/Scenic.m:
--------------------------------------------------------------------------------
1 | //
2 | // TravelModel.m
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/24.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import "Scenic.h"
10 |
11 | @implementation Scenic
12 |
13 | + (NSDictionary *)JSONKeyPathsByPropertyKey
14 | {
15 | return @{@"campaignTag" : @"campaignTag",
16 | @"lowestPrice" : @"lowestPrice",
17 | @"lng" : @"lng",
18 | @"lat" : @"lat",
19 | @"cityID" : @"cityId",
20 | @"cityName" : @"cityName",
21 | @"areaName" : @"areaName",
22 | @"frontImgURL" : @"frontImg",
23 | @"solds" : @"solds",
24 | @"name" : @"name", };
25 | }
26 |
27 | + (NSValueTransformer *)frontImgURLJSONTransformer
28 | {
29 | return [NSValueTransformer valueTransformerForName:MTLURLValueTransformerName];
30 | }
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Demo1/ScenicCellViewModel.h:
--------------------------------------------------------------------------------
1 | //
2 | // ScenicCellViewModel.h
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/25.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "POICellViewModel.h"
11 |
12 | @class Scenic;
13 | @interface ScenicCellViewModel : POICellViewModel
14 |
15 | @property (nonatomic) NSInteger currentCityID;
16 |
17 | - (instancetype)initWithScenic:(Scenic *)scenic;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Demo2/Demo2ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // Demo2ViewController.h
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/8/3.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface Demo2ViewController : UIViewController
12 | @property (weak, nonatomic) IBOutlet UITextField *phoneTextField;
13 | @property (weak, nonatomic) IBOutlet UITextField *passwordTextField;
14 | @property (weak, nonatomic) IBOutlet UIButton *clearButton;
15 | @property (weak, nonatomic) IBOutlet UILabel *outputLabel;
16 | @end
17 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Demo2/Demo2ViewModel.h:
--------------------------------------------------------------------------------
1 | //
2 | // Demo2ViewModel.h
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/8/4.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface Demo2ViewModel : NSObject
13 |
14 | @property (nonatomic) RACChannelTerminal *phoneTerminal;
15 | @property (nonatomic) NSString *password;
16 | @property (nonatomic) RACSignal *verifyPhoneSignal;
17 | @property (nonatomic) RACSignal *verifyPasswordSignal;
18 | @property (nonatomic) RACSignal *outputSignal;
19 | @property (nonatomic) RACCommand *clearCommand;
20 |
21 | @end
22 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
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 | NSAppTransportSecurity
26 |
27 | NSAllowsArbitraryLoads
28 |
29 |
30 | UILaunchStoryboardName
31 | LaunchScreen
32 | UIMainStoryboardFile
33 | Main
34 | UIRequiredDeviceCapabilities
35 |
36 | armv7
37 |
38 | UISupportedInterfaceOrientations
39 |
40 | UIInterfaceOrientationPortrait
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/POICellViewModel.h:
--------------------------------------------------------------------------------
1 | //
2 | // POICellViewModel.h
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/25.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "BaseCellViewModel.h"
11 | #import
12 |
13 | @interface POICellViewModel : BaseCellViewModel
14 |
15 | @property (nonatomic) RACSignal *frontImageSignal; //UIImage
16 | @property (nonatomic) RACSignal *titleSignal; //NSString
17 | @property (nonatomic) RACSignal *priceSignal; //NSAttributeText
18 | @property (nonatomic) RACSignal *campaignSignal; //NSString
19 | @property (nonatomic) RACSignal *campaignHiddenSignal; //NSNumber(BOOL)
20 | @property (nonatomic) RACSignal *rightFooterSignal; //NSString
21 |
22 | @end
23 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/POICellViewModel.m:
--------------------------------------------------------------------------------
1 | //
2 | // POICellViewModel.m
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/25.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import "POICellViewModel.h"
10 |
11 | @implementation POICellViewModel
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/23.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UITableViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/23.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 |
11 | @interface ViewController ()
12 |
13 | @end
14 |
15 | @implementation ViewController
16 |
17 | - (void)viewDidLoad {
18 | [super viewDidLoad];
19 | // Do any additional setup after loading the view, typically from a nib.
20 | }
21 |
22 | - (void)didReceiveMemoryWarning {
23 | [super didReceiveMemoryWarning];
24 | // Dispose of any resources that can be recreated.
25 | }
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemo/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // MVVMDemo
4 | //
5 | // Created by Liang Shixing on 16/7/23.
6 | // Copyright © 2016年 Liang Shixing. 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 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemoTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemoUITests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/MVVMDemo/MVVMDemoUITests/MVVMDemoUITests.m:
--------------------------------------------------------------------------------
1 | //
2 | // MVVMDemoUITests.m
3 | // MVVMDemoUITests
4 | //
5 | // Created by Liang Shixing on 16/7/23.
6 | // Copyright © 2016年 Liang Shixing. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface MVVMDemoUITests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation MVVMDemoUITests
16 |
17 | - (void)setUp {
18 | [super setUp];
19 |
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 |
22 | // In UI tests it is usually best to stop immediately when a failure occurs.
23 | self.continueAfterFailure = NO;
24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
25 | [[[XCUIApplication alloc] init] launch];
26 |
27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
28 | }
29 |
30 | - (void)tearDown {
31 | // Put teardown code here. This method is called after the invocation of each test method in the class.
32 | [super tearDown];
33 | }
34 |
35 | - (void)testExample {
36 | // Use recording to get started writing UI tests.
37 | // Use XCTAssert and related functions to verify your tests produce the correct results.
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/MVVMDemo/Podfile:
--------------------------------------------------------------------------------
1 | pod 'Mantle'
2 | pod 'ReactiveCocoa', '~> 2.5'
3 |
--------------------------------------------------------------------------------
/MVVMDemo/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Mantle (2.0.7):
3 | - Mantle/extobjc (= 2.0.7)
4 | - Mantle/extobjc (2.0.7)
5 | - ReactiveCocoa (2.5):
6 | - ReactiveCocoa/UI (= 2.5)
7 | - ReactiveCocoa/Core (2.5):
8 | - ReactiveCocoa/no-arc
9 | - ReactiveCocoa/no-arc (2.5)
10 | - ReactiveCocoa/UI (2.5):
11 | - ReactiveCocoa/Core
12 |
13 | DEPENDENCIES:
14 | - Mantle
15 | - ReactiveCocoa (~> 2.5)
16 |
17 | SPEC CHECKSUMS:
18 | Mantle: bc40bb061d8c2c6fb48d5083e04d928c3b7f73d9
19 | ReactiveCocoa: e2db045570aa97c695e7aa97c2bcab222ae51f4a
20 |
21 | COCOAPODS: 0.39.0
22 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/EXTKeyPathCoding.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/extobjc/EXTKeyPathCoding.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/EXTRuntimeExtensions.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/extobjc/EXTRuntimeExtensions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/EXTScope.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/extobjc/EXTScope.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/MTLJSONAdapter.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/MTLJSONAdapter.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/MTLModel+NSCoding.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/MTLModel+NSCoding.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/MTLModel.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/MTLModel.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/MTLReflection.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/MTLReflection.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/MTLTransformerErrorHandling.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/MTLTransformerErrorHandling.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/MTLValueTransformer.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/MTLValueTransformer.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/Mantle.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/Mantle.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/NSArray+MTLManipulationAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/NSArray+MTLManipulationAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/NSDictionary+MTLJSONKeyPath.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/NSDictionary+MTLJSONKeyPath.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/NSDictionary+MTLManipulationAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/NSDictionary+MTLManipulationAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/NSDictionary+MTLMappingAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/NSDictionary+MTLMappingAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/NSError+MTLModelException.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/NSError+MTLModelException.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/NSObject+MTLComparisonAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/NSObject+MTLComparisonAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/NSValueTransformer+MTLInversionAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/NSValueTransformer+MTLInversionAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/NSValueTransformer+MTLPredefinedTransformerAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/NSValueTransformer+MTLPredefinedTransformerAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/Mantle/metamacros.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/extobjc/metamacros.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/MKAnnotationView+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/MKAnnotationView+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSArray+RACSequenceAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSArray+RACSequenceAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSData+RACSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSData+RACSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSDictionary+RACSequenceAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSDictionary+RACSequenceAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSEnumerator+RACSequenceAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSEnumerator+RACSequenceAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSFileHandle+RACSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSFileHandle+RACSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSIndexSet+RACSequenceAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSIndexSet+RACSequenceAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSInvocation+RACTypeParsing.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSInvocation+RACTypeParsing.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSNotificationCenter+RACSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSNotificationCenter+RACSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSObject+RACDeallocating.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACDeallocating.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSObject+RACDescription.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACDescription.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSObject+RACKVOWrapper.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACKVOWrapper.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSObject+RACLifting.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACLifting.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSObject+RACPropertySubscribing.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACPropertySubscribing.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSObject+RACSelectorSignal.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACSelectorSignal.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSOrderedSet+RACSequenceAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSOrderedSet+RACSequenceAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSSet+RACSequenceAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSSet+RACSequenceAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSString+RACKeyPathUtilities.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSString+RACKeyPathUtilities.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSString+RACSequenceAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSString+RACSequenceAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSString+RACSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSString+RACSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSURLConnection+RACSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSURLConnection+RACSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/NSUserDefaults+RACSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSUserDefaults+RACSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACArraySequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACArraySequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACBehaviorSubject.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACBehaviorSubject.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACBlockTrampoline.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACBlockTrampoline.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACChannel.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACChannel.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACCommand.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACCommand.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACCompoundDisposable.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACCompoundDisposable.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACDelegateProxy.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACDelegateProxy.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACDisposable.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACDisposable.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACDynamicSequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACDynamicSequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACDynamicSignal.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACDynamicSignal.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACEXTKeyPathCoding.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/extobjc/RACEXTKeyPathCoding.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACEXTRuntimeExtensions.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/extobjc/RACEXTRuntimeExtensions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACEXTScope.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/extobjc/RACEXTScope.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACEagerSequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACEagerSequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACEmptySequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACEmptySequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACEmptySignal.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACEmptySignal.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACErrorSignal.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACErrorSignal.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACEvent.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACEvent.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACGroupedSignal.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACGroupedSignal.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACImmediateScheduler.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACImmediateScheduler.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACIndexSetSequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACIndexSetSequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACKVOChannel.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACKVOChannel.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACKVOProxy.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACKVOProxy.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACKVOTrampoline.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACKVOTrampoline.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACMulticastConnection+Private.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACMulticastConnection+Private.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACMulticastConnection.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACMulticastConnection.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACObjCRuntime.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACObjCRuntime.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACPassthroughSubscriber.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACPassthroughSubscriber.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACQueueScheduler+Subclass.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACQueueScheduler+Subclass.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACQueueScheduler.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACQueueScheduler.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACReplaySubject.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACReplaySubject.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACReturnSignal.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACReturnSignal.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACScheduler+Private.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACScheduler+Private.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACScheduler+Subclass.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACScheduler+Subclass.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACScheduler.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACScheduler.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACScopedDisposable.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACScopedDisposable.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACSequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACSerialDisposable.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSerialDisposable.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACSignal+Operations.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSignal+Operations.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACSignal.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSignal.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACSignalSequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSignalSequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACStream+Private.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACStream+Private.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACStream.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACStream.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACStringSequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACStringSequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACSubject.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubject.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACSubscriber+Private.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubscriber+Private.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACSubscriber.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubscriber.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACSubscriptingAssignmentTrampoline.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubscriptingAssignmentTrampoline.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACSubscriptionScheduler.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubscriptionScheduler.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACTargetQueueScheduler.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACTargetQueueScheduler.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACTestScheduler.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACTestScheduler.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACTuple.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACTuple.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACTupleSequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACTupleSequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACUnarySequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACUnarySequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACUnit.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACUnit.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACValueTransformer.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACValueTransformer.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/RACmetamacros.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/extobjc/RACmetamacros.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/ReactiveCocoa.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/ReactiveCocoa.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UIActionSheet+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIActionSheet+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UIAlertView+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIAlertView+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UIBarButtonItem+RACCommandSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIBarButtonItem+RACCommandSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UIButton+RACCommandSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIButton+RACCommandSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UICollectionReusableView+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UICollectionReusableView+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UIControl+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIControl+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UIControl+RACSignalSupportPrivate.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIControl+RACSignalSupportPrivate.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UIDatePicker+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIDatePicker+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UIGestureRecognizer+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIGestureRecognizer+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UIImagePickerController+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIImagePickerController+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UIRefreshControl+RACCommandSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIRefreshControl+RACCommandSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UISegmentedControl+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UISegmentedControl+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UISlider+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UISlider+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UIStepper+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIStepper+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UISwitch+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UISwitch+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UITableViewCell+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UITableViewCell+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UITableViewHeaderFooterView+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UITableViewHeaderFooterView+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UITextField+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UITextField+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Private/ReactiveCocoa/UITextView+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UITextView+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/Mantle/MTLJSONAdapter.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/MTLJSONAdapter.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/Mantle/MTLModel+NSCoding.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/MTLModel+NSCoding.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/Mantle/MTLModel.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/MTLModel.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/Mantle/MTLReflection.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/MTLReflection.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/Mantle/MTLTransformerErrorHandling.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/MTLTransformerErrorHandling.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/Mantle/MTLValueTransformer.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/MTLValueTransformer.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/Mantle/Mantle.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/Mantle.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/Mantle/NSArray+MTLManipulationAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/NSArray+MTLManipulationAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/Mantle/NSDictionary+MTLJSONKeyPath.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/NSDictionary+MTLJSONKeyPath.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/Mantle/NSDictionary+MTLManipulationAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/NSDictionary+MTLManipulationAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/Mantle/NSDictionary+MTLMappingAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/NSDictionary+MTLMappingAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/Mantle/NSError+MTLModelException.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/NSError+MTLModelException.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/Mantle/NSObject+MTLComparisonAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/NSObject+MTLComparisonAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/Mantle/NSValueTransformer+MTLInversionAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/NSValueTransformer+MTLInversionAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/Mantle/NSValueTransformer+MTLPredefinedTransformerAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../Mantle/Mantle/NSValueTransformer+MTLPredefinedTransformerAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/MKAnnotationView+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/MKAnnotationView+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSArray+RACSequenceAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSArray+RACSequenceAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSData+RACSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSData+RACSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSDictionary+RACSequenceAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSDictionary+RACSequenceAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSEnumerator+RACSequenceAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSEnumerator+RACSequenceAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSFileHandle+RACSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSFileHandle+RACSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSIndexSet+RACSequenceAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSIndexSet+RACSequenceAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSInvocation+RACTypeParsing.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSInvocation+RACTypeParsing.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSNotificationCenter+RACSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSNotificationCenter+RACSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSObject+RACDeallocating.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACDeallocating.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSObject+RACDescription.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACDescription.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSObject+RACKVOWrapper.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACKVOWrapper.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSObject+RACLifting.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACLifting.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSObject+RACPropertySubscribing.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACPropertySubscribing.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSObject+RACSelectorSignal.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSObject+RACSelectorSignal.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSOrderedSet+RACSequenceAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSOrderedSet+RACSequenceAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSSet+RACSequenceAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSSet+RACSequenceAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSString+RACKeyPathUtilities.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSString+RACKeyPathUtilities.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSString+RACSequenceAdditions.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSString+RACSequenceAdditions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSString+RACSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSString+RACSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSURLConnection+RACSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSURLConnection+RACSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/NSUserDefaults+RACSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/NSUserDefaults+RACSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACArraySequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACArraySequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACBehaviorSubject.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACBehaviorSubject.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACBlockTrampoline.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACBlockTrampoline.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACChannel.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACChannel.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACCommand.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACCommand.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACCompoundDisposable.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACCompoundDisposable.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACDelegateProxy.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACDelegateProxy.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACDisposable.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACDisposable.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACDynamicSequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACDynamicSequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACDynamicSignal.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACDynamicSignal.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACEXTKeyPathCoding.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/extobjc/RACEXTKeyPathCoding.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACEXTRuntimeExtensions.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/extobjc/RACEXTRuntimeExtensions.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACEXTScope.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/extobjc/RACEXTScope.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACEagerSequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACEagerSequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACEmptySequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACEmptySequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACEmptySignal.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACEmptySignal.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACErrorSignal.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACErrorSignal.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACEvent.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACEvent.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACGroupedSignal.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACGroupedSignal.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACImmediateScheduler.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACImmediateScheduler.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACIndexSetSequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACIndexSetSequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACKVOChannel.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACKVOChannel.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACKVOProxy.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACKVOProxy.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACKVOTrampoline.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACKVOTrampoline.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACMulticastConnection.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACMulticastConnection.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACObjCRuntime.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACObjCRuntime.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACPassthroughSubscriber.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACPassthroughSubscriber.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACQueueScheduler+Subclass.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACQueueScheduler+Subclass.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACQueueScheduler.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACQueueScheduler.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACReplaySubject.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACReplaySubject.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACReturnSignal.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACReturnSignal.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACScheduler+Subclass.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACScheduler+Subclass.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACScheduler.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACScheduler.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACScopedDisposable.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACScopedDisposable.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACSequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACSerialDisposable.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSerialDisposable.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACSignal+Operations.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSignal+Operations.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACSignal.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSignal.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACSignalSequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSignalSequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACStream.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACStream.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACStringSequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACStringSequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACSubject.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubject.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACSubscriber.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubscriber.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACSubscriptingAssignmentTrampoline.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubscriptingAssignmentTrampoline.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACSubscriptionScheduler.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACSubscriptionScheduler.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACTargetQueueScheduler.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACTargetQueueScheduler.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACTestScheduler.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACTestScheduler.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACTuple.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACTuple.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACTupleSequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACTupleSequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACUnarySequence.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACUnarySequence.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACUnit.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACUnit.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACValueTransformer.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/RACValueTransformer.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/RACmetamacros.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/extobjc/RACmetamacros.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/ReactiveCocoa.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/ReactiveCocoa.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UIActionSheet+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIActionSheet+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UIAlertView+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIAlertView+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UIBarButtonItem+RACCommandSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIBarButtonItem+RACCommandSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UIButton+RACCommandSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIButton+RACCommandSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UICollectionReusableView+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UICollectionReusableView+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UIControl+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIControl+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UIControl+RACSignalSupportPrivate.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIControl+RACSignalSupportPrivate.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UIDatePicker+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIDatePicker+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UIGestureRecognizer+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIGestureRecognizer+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UIImagePickerController+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIImagePickerController+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UIRefreshControl+RACCommandSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIRefreshControl+RACCommandSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UISegmentedControl+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UISegmentedControl+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UISlider+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UISlider+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UIStepper+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UIStepper+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UISwitch+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UISwitch+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UITableViewCell+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UITableViewCell+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UITableViewHeaderFooterView+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UITableViewHeaderFooterView+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UITextField+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UITextField+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Headers/Public/ReactiveCocoa/UITextView+RACSignalSupport.h:
--------------------------------------------------------------------------------
1 | ../../../ReactiveCocoa/ReactiveCocoa/UITextView+RACSignalSupport.h
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Manifest.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Mantle (2.0.7):
3 | - Mantle/extobjc (= 2.0.7)
4 | - Mantle/extobjc (2.0.7)
5 | - ReactiveCocoa (2.5):
6 | - ReactiveCocoa/UI (= 2.5)
7 | - ReactiveCocoa/Core (2.5):
8 | - ReactiveCocoa/no-arc
9 | - ReactiveCocoa/no-arc (2.5)
10 | - ReactiveCocoa/UI (2.5):
11 | - ReactiveCocoa/Core
12 |
13 | DEPENDENCIES:
14 | - Mantle
15 | - ReactiveCocoa (~> 2.5)
16 |
17 | SPEC CHECKSUMS:
18 | Mantle: bc40bb061d8c2c6fb48d5083e04d928c3b7f73d9
19 | ReactiveCocoa: e2db045570aa97c695e7aa97c2bcab222ae51f4a
20 |
21 | COCOAPODS: 0.39.0
22 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/MTLReflection.h:
--------------------------------------------------------------------------------
1 | //
2 | // MTLReflection.h
3 | // Mantle
4 | //
5 | // Created by Justin Spahr-Summers on 2013-03-12.
6 | // Copyright (c) 2013 GitHub. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | /// Creates a selector from a key and a constant string.
12 | ///
13 | /// key - The key to insert into the generated selector. This key should be in
14 | /// its natural case.
15 | /// suffix - A string to append to the key as part of the selector.
16 | ///
17 | /// Returns a selector, or NULL if the input strings cannot form a valid
18 | /// selector.
19 | SEL MTLSelectorWithKeyPattern(NSString *key, const char *suffix) __attribute__((pure, nonnull(1, 2)));
20 |
21 | /// Creates a selector from a key and a constant prefix and suffix.
22 | ///
23 | /// prefix - A string to prepend to the key as part of the selector.
24 | /// key - The key to insert into the generated selector. This key should be in
25 | /// its natural case, and will have its first letter capitalized when
26 | /// inserted.
27 | /// suffix - A string to append to the key as part of the selector.
28 | ///
29 | /// Returns a selector, or NULL if the input strings cannot form a valid
30 | /// selector.
31 | SEL MTLSelectorWithCapitalizedKeyPattern(const char *prefix, NSString *key, const char *suffix) __attribute__((pure, nonnull(1, 2, 3)));
32 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/MTLTransformerErrorHandling.m:
--------------------------------------------------------------------------------
1 | //
2 | // MTLTransformerErrorHandling.h
3 | // Mantle
4 | //
5 | // Created by Robert Böhnke on 10/6/13.
6 | // Copyright (c) 2013 GitHub. All rights reserved.
7 | //
8 |
9 | #import "MTLTransformerErrorHandling.h"
10 |
11 | NSString * const MTLTransformerErrorHandlingErrorDomain = @"MTLTransformerErrorHandlingErrorDomain";
12 |
13 | const NSInteger MTLTransformerErrorHandlingErrorInvalidInput = 1;
14 |
15 | NSString * const MTLTransformerErrorHandlingInputValueErrorKey = @"MTLTransformerErrorHandlingInputValueErrorKey";
16 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/Mantle.h:
--------------------------------------------------------------------------------
1 | //
2 | // Mantle.h
3 | // Mantle
4 | //
5 | // Created by Justin Spahr-Summers on 2012-09-04.
6 | // Copyright (c) 2012 GitHub. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | //! Project version number for Mantle.
12 | FOUNDATION_EXPORT double MantleVersionNumber;
13 |
14 | //! Project version string for Mantle.
15 | FOUNDATION_EXPORT const unsigned char MantleVersionString[];
16 |
17 | #import
18 | #import
19 | #import
20 | #import
21 | #import
22 | #import
23 | #import
24 | #import
25 | #import
26 | #import
27 | #import
28 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/NSArray+MTLManipulationAdditions.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSArray+MTLManipulationAdditions.h
3 | // Mantle
4 | //
5 | // Created by Josh Abernathy on 9/19/12.
6 | // Copyright (c) 2012 GitHub. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSArray (MTLManipulationAdditions)
12 |
13 | /// The first object in the array or nil if the array is empty.
14 | /// Forwards to `firstObject` which has been first declared in iOS7, but works with iOS4/10.6.
15 | @property (nonatomic, readonly, strong) id mtl_firstObject;
16 |
17 | /// Returns a new array without all instances of the given object.
18 | - (NSArray *)mtl_arrayByRemovingObject:(id)object;
19 |
20 | /// Returns a new array without the first object. If the array is empty, it
21 | /// returns the empty array.
22 | - (NSArray *)mtl_arrayByRemovingFirstObject;
23 |
24 | /// Returns a new array without the last object. If the array is empty, it
25 | /// returns the empty array.
26 | - (NSArray *)mtl_arrayByRemovingLastObject;
27 |
28 | @end
29 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/NSArray+MTLManipulationAdditions.m:
--------------------------------------------------------------------------------
1 | //
2 | // NSArray+MTLManipulationAdditions.m
3 | // Mantle
4 | //
5 | // Created by Josh Abernathy on 9/19/12.
6 | // Copyright (c) 2012 GitHub. All rights reserved.
7 | //
8 |
9 | #import "NSArray+MTLManipulationAdditions.h"
10 |
11 | @interface NSArray (MTLDeclarations)
12 |
13 | // This declaration is needed so Mantle can be compiled with SDK 6 / 10.8.
14 | - (id)firstObject;
15 |
16 | @end
17 |
18 | @implementation NSArray (MTLManipulationAdditions)
19 |
20 | - (id)mtl_firstObject {
21 | return self.firstObject;
22 | }
23 |
24 | - (instancetype)mtl_arrayByRemovingObject:(id)object {
25 | NSMutableArray *result = [self mutableCopy];
26 | [result removeObject:object];
27 | return result;
28 | }
29 |
30 | - (instancetype)mtl_arrayByRemovingFirstObject {
31 | if (self.count == 0) return self;
32 |
33 | return [self subarrayWithRange:NSMakeRange(1, self.count - 1)];
34 | }
35 |
36 | - (instancetype)mtl_arrayByRemovingLastObject {
37 | if (self.count == 0) return self;
38 |
39 | return [self subarrayWithRange:NSMakeRange(0, self.count - 1)];
40 | }
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/NSDictionary+MTLJSONKeyPath.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSDictionary+MTLJSONKeyPath.h
3 | // Mantle
4 | //
5 | // Created by Robert Böhnke on 19/03/14.
6 | // Copyright (c) 2014 GitHub. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSDictionary (MTLJSONKeyPath)
12 |
13 | /// Looks up the value of a key path in the receiver.
14 | ///
15 | /// JSONKeyPath - The key path that should be resolved. Every element along this
16 | /// key path needs to be an instance of NSDictionary for the
17 | /// resolving to be successful.
18 | /// success - If not NULL, this will be set to a boolean indicating whether
19 | /// the key path was resolved successfully.
20 | /// error - If not NULL, this may be set to an error that occurs during
21 | /// resolving the value.
22 | ///
23 | /// Returns the value for the key path which may be nil. Clients should inspect
24 | /// the success parameter to decide how to proceed with the result.
25 | - (id)mtl_valueForJSONKeyPath:(NSString *)JSONKeyPath success:(BOOL *)success error:(NSError **)error;
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/NSDictionary+MTLJSONKeyPath.m:
--------------------------------------------------------------------------------
1 | //
2 | // NSDictionary+MTLJSONKeyPath.m
3 | // Mantle
4 | //
5 | // Created by Robert Böhnke on 19/03/14.
6 | // Copyright (c) 2014 GitHub. All rights reserved.
7 | //
8 |
9 | #import "NSDictionary+MTLJSONKeyPath.h"
10 |
11 | #import "MTLJSONAdapter.h"
12 |
13 | @implementation NSDictionary (MTLJSONKeyPath)
14 |
15 | - (id)mtl_valueForJSONKeyPath:(NSString *)JSONKeyPath success:(BOOL *)success error:(NSError **)error {
16 | NSArray *components = [JSONKeyPath componentsSeparatedByString:@"."];
17 |
18 | id result = self;
19 | for (NSString *component in components) {
20 | // Check the result before resolving the key path component to not
21 | // affect the last value of the path.
22 | if (result == nil || result == NSNull.null) break;
23 |
24 | if (![result isKindOfClass:NSDictionary.class]) {
25 | if (error != NULL) {
26 | NSDictionary *userInfo = @{
27 | NSLocalizedDescriptionKey: NSLocalizedString(@"Invalid JSON dictionary", @""),
28 | NSLocalizedFailureReasonErrorKey: [NSString stringWithFormat:NSLocalizedString(@"JSON key path %1$@ could not resolved because an incompatible JSON dictionary was supplied: \"%2$@\"", @""), JSONKeyPath, self]
29 | };
30 |
31 | *error = [NSError errorWithDomain:MTLJSONAdapterErrorDomain code:MTLJSONAdapterErrorInvalidJSONDictionary userInfo:userInfo];
32 | }
33 |
34 | if (success != NULL) *success = NO;
35 |
36 | return nil;
37 | }
38 |
39 | result = result[component];
40 | }
41 |
42 | if (success != NULL) *success = YES;
43 |
44 | return result;
45 | }
46 |
47 | @end
48 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/NSDictionary+MTLManipulationAdditions.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSDictionary+MTLManipulationAdditions.h
3 | // Mantle
4 | //
5 | // Created by Justin Spahr-Summers on 2012-09-24.
6 | // Copyright (c) 2012 GitHub. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSDictionary (MTLManipulationAdditions)
12 |
13 | /// Merges the keys and values from the given dictionary into the receiver. If
14 | /// both the receiver and `dictionary` have a given key, the value from
15 | /// `dictionary` is used.
16 | ///
17 | /// Returns a new dictionary containing the entries of the receiver combined with
18 | /// those of `dictionary`.
19 | - (NSDictionary *)mtl_dictionaryByAddingEntriesFromDictionary:(NSDictionary *)dictionary;
20 |
21 | /// Creates a new dictionary with all the entries for the given keys removed from
22 | /// the receiver.
23 | - (NSDictionary *)mtl_dictionaryByRemovingValuesForKeys:(NSArray *)keys;
24 |
25 | @end
26 |
27 | @interface NSDictionary (MTLManipulationAdditions_Deprecated)
28 |
29 | - (NSDictionary *)mtl_dictionaryByRemovingEntriesWithKeys:(NSSet *)keys __attribute__((deprecated("Replaced by -mtl_dictionaryByRemovingValuesForKeys:")));
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/NSDictionary+MTLManipulationAdditions.m:
--------------------------------------------------------------------------------
1 | //
2 | // NSDictionary+MTLManipulationAdditions.m
3 | // Mantle
4 | //
5 | // Created by Justin Spahr-Summers on 2012-09-24.
6 | // Copyright (c) 2012 GitHub. All rights reserved.
7 | //
8 |
9 | #import "NSDictionary+MTLManipulationAdditions.h"
10 |
11 | @implementation NSDictionary (MTLManipulationAdditions)
12 |
13 | - (NSDictionary *)mtl_dictionaryByAddingEntriesFromDictionary:(NSDictionary *)dictionary {
14 | NSMutableDictionary *result = [self mutableCopy];
15 | [result addEntriesFromDictionary:dictionary];
16 | return result;
17 | }
18 |
19 | - (NSDictionary *)mtl_dictionaryByRemovingValuesForKeys:(NSArray *)keys {
20 | NSMutableDictionary *result = [self mutableCopy];
21 | [result removeObjectsForKeys:keys];
22 | return result;
23 | }
24 |
25 | @end
26 |
27 | @implementation NSDictionary (MTLManipulationAdditions_Deprecated)
28 |
29 | #pragma clang diagnostic push
30 | #pragma clang diagnostic ignored "-Wdeprecated"
31 |
32 | - (NSDictionary *)mtl_dictionaryByRemovingEntriesWithKeys:(NSSet *)keys {
33 | return [self mtl_dictionaryByRemovingValuesForKeys:keys.allObjects];
34 | }
35 |
36 | #pragma clang diagnostic pop
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/NSDictionary+MTLMappingAdditions.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSDictionary+MTLMappingAdditions.h
3 | // Mantle
4 | //
5 | // Created by Robert Böhnke on 10/31/13.
6 | // Copyright (c) 2013 GitHub. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSDictionary (MTLMappingAdditions)
12 |
13 | /// Creates an identity mapping for serialization.
14 | ///
15 | /// class - A subclass of MTLModel.
16 | ///
17 | /// Returns a dictionary that maps all properties of the given class to
18 | /// themselves.
19 | + (NSDictionary *)mtl_identityPropertyMapWithModel:(Class)modelClass;
20 |
21 | @end
22 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/NSDictionary+MTLMappingAdditions.m:
--------------------------------------------------------------------------------
1 | //
2 | // NSDictionary+MTLMappingAdditions.m
3 | // Mantle
4 | //
5 | // Created by Robert Böhnke on 10/31/13.
6 | // Copyright (c) 2013 GitHub. All rights reserved.
7 | //
8 |
9 | #import "MTLModel.h"
10 |
11 | #import "NSDictionary+MTLMappingAdditions.h"
12 |
13 | @implementation NSDictionary (MTLMappingAdditions)
14 |
15 | + (NSDictionary *)mtl_identityPropertyMapWithModel:(Class)modelClass {
16 | NSCParameterAssert([modelClass conformsToProtocol:@protocol(MTLModel)]);
17 |
18 | NSArray *propertyKeys = [modelClass propertyKeys].allObjects;
19 |
20 | return [NSDictionary dictionaryWithObjects:propertyKeys forKeys:propertyKeys];
21 | }
22 |
23 | @end
24 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/NSError+MTLModelException.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSError+MTLModelException.h
3 | // Mantle
4 | //
5 | // Created by Robert Böhnke on 7/6/13.
6 | // Copyright (c) 2013 GitHub. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSError (MTLModelException)
12 |
13 | /// Creates a new error for an exception that occurred during updating an
14 | /// MTLModel.
15 | ///
16 | /// exception - The exception that was thrown while updating the model.
17 | /// This argument must not be nil.
18 | ///
19 | /// Returns an error that takes its localized description and failure reason
20 | /// from the exception.
21 | + (instancetype)mtl_modelErrorWithException:(NSException *)exception;
22 |
23 | @end
24 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/NSError+MTLModelException.m:
--------------------------------------------------------------------------------
1 | //
2 | // NSError+MTLModelException.m
3 | // Mantle
4 | //
5 | // Created by Robert Böhnke on 7/6/13.
6 | // Copyright (c) 2013 GitHub. All rights reserved.
7 | //
8 |
9 | #import "MTLModel.h"
10 |
11 | #import "NSError+MTLModelException.h"
12 |
13 | // The domain for errors originating from MTLModel.
14 | static NSString * const MTLModelErrorDomain = @"MTLModelErrorDomain";
15 |
16 | // An exception was thrown and caught.
17 | static const NSInteger MTLModelErrorExceptionThrown = 1;
18 |
19 | // Associated with the NSException that was caught.
20 | static NSString * const MTLModelThrownExceptionErrorKey = @"MTLModelThrownException";
21 |
22 | @implementation NSError (MTLModelException)
23 |
24 | + (instancetype)mtl_modelErrorWithException:(NSException *)exception {
25 | NSParameterAssert(exception != nil);
26 |
27 | NSDictionary *userInfo = @{
28 | NSLocalizedDescriptionKey: exception.description,
29 | NSLocalizedFailureReasonErrorKey: exception.reason,
30 | MTLModelThrownExceptionErrorKey: exception
31 | };
32 |
33 | return [NSError errorWithDomain:MTLModelErrorDomain code:MTLModelErrorExceptionThrown userInfo:userInfo];
34 | }
35 |
36 | @end
37 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/NSObject+MTLComparisonAdditions.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSObject+MTLComparisonAdditions.h
3 | // Mantle
4 | //
5 | // Created by Josh Vera on 10/26/12.
6 | // Copyright (c) 2012 GitHub. All rights reserved.
7 | //
8 | // Portions copyright (c) 2011 Bitswift. All rights reserved.
9 | // See the LICENSE file for more information.
10 | //
11 |
12 | #import
13 |
14 | /// Returns whether both objects are identical or equal via -isEqual:
15 | BOOL MTLEqualObjects(id obj1, id obj2);
16 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/NSObject+MTLComparisonAdditions.m:
--------------------------------------------------------------------------------
1 | //
2 | // NSObject+MTLComparisonAdditions.m
3 | // Mantle
4 | //
5 | // Created by Josh Vera on 10/26/12.
6 | // Copyright (c) 2012 GitHub. All rights reserved.
7 | //
8 | // Portions copyright (c) 2011 Bitswift. All rights reserved.
9 | // See the LICENSE file for more information.
10 | //
11 |
12 | #import "NSObject+MTLComparisonAdditions.h"
13 |
14 | BOOL MTLEqualObjects(id obj1, id obj2) {
15 | return (obj1 == obj2 || [obj1 isEqual:obj2]);
16 | }
17 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/NSValueTransformer+MTLInversionAdditions.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSValueTransformer+MTLInversionAdditions.h
3 | // Mantle
4 | //
5 | // Created by Justin Spahr-Summers on 2013-05-18.
6 | // Copyright (c) 2013 GitHub. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSValueTransformer (MTLInversionAdditions)
12 |
13 | /// Flips the direction of the receiver's transformation, such that
14 | /// -transformedValue: will become -reverseTransformedValue:, and vice-versa.
15 | ///
16 | /// The receiver must allow reverse transformation.
17 | ///
18 | /// Returns an inverted transformer.
19 | - (NSValueTransformer *)mtl_invertedTransformer;
20 |
21 | @end
22 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/NSValueTransformer+MTLInversionAdditions.m:
--------------------------------------------------------------------------------
1 | //
2 | // NSValueTransformer+MTLInversionAdditions.m
3 | // Mantle
4 | //
5 | // Created by Justin Spahr-Summers on 2013-05-18.
6 | // Copyright (c) 2013 GitHub. All rights reserved.
7 | //
8 |
9 | #import "NSValueTransformer+MTLInversionAdditions.h"
10 | #import "MTLTransformerErrorHandling.h"
11 | #import "MTLValueTransformer.h"
12 |
13 | @implementation NSValueTransformer (MTLInversionAdditions)
14 |
15 | - (NSValueTransformer *)mtl_invertedTransformer {
16 | NSParameterAssert(self.class.allowsReverseTransformation);
17 |
18 | if ([self conformsToProtocol:@protocol(MTLTransformerErrorHandling)]) {
19 | NSParameterAssert([self respondsToSelector:@selector(reverseTransformedValue:success:error:)]);
20 |
21 | id errorHandlingSelf = (id)self;
22 |
23 | return [MTLValueTransformer transformerUsingForwardBlock:^(id value, BOOL *success, NSError **error) {
24 | return [errorHandlingSelf reverseTransformedValue:value success:success error:error];
25 | } reverseBlock:^(id value, BOOL *success, NSError **error) {
26 | return [errorHandlingSelf transformedValue:value success:success error:error];
27 | }];
28 | } else {
29 | return [MTLValueTransformer transformerUsingForwardBlock:^(id value, BOOL *success, NSError **error) {
30 | return [self reverseTransformedValue:value];
31 | } reverseBlock:^(id value, BOOL *success, NSError **error) {
32 | return [self transformedValue:value];
33 | }];
34 | }
35 | }
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Mantle/Mantle/extobjc/EXTScope.m:
--------------------------------------------------------------------------------
1 | //
2 | // EXTScope.m
3 | // extobjc
4 | //
5 | // Created by Justin Spahr-Summers on 2011-05-04.
6 | // Copyright (C) 2012 Justin Spahr-Summers.
7 | // Released under the MIT license.
8 | //
9 |
10 | #import "EXTScope.h"
11 |
12 | void mtl_executeCleanupBlock (__strong mtl_cleanupBlock_t *block) {
13 | (*block)();
14 | }
15 |
16 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Pods.xcodeproj/xcuserdata/liangshixing.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | Mantle.xcscheme
8 |
9 | isShown
10 |
11 |
12 | Pods.xcscheme
13 |
14 | isShown
15 |
16 |
17 | ReactiveCocoa.xcscheme
18 |
19 | isShown
20 |
21 |
22 |
23 | SuppressBuildableAutocreation
24 |
25 | 1337FFB150DBCCA04D765DFD87AB29D5
26 |
27 | primary
28 |
29 |
30 | 426BC4549A625B5E1E4200D5261A98BF
31 |
32 | primary
33 |
34 |
35 | 597C5D512328FA92DFD7F91AD6632A1B
36 |
37 | primary
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/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 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Target Support Files/Mantle/Mantle-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_Mantle : NSObject
3 | @end
4 | @implementation PodsDummy_Mantle
5 | @end
6 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Target Support Files/Mantle/Mantle-prefix.pch:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #endif
4 |
5 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Target Support Files/Mantle/Mantle.xcconfig:
--------------------------------------------------------------------------------
1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
2 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/Mantle" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/ReactiveCocoa"
3 | OTHER_LDFLAGS = -framework "Foundation"
4 | PODS_ROOT = ${SRCROOT}
5 | SKIP_INSTALL = YES
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Target Support Files/Pods/Pods-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_Pods : NSObject
3 | @end
4 | @implementation PodsDummy_Pods
5 | @end
6 |
--------------------------------------------------------------------------------
/MVVMDemo/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/Mantle" "${PODS_ROOT}/Headers/Public/ReactiveCocoa"
3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/Mantle" -isystem "${PODS_ROOT}/Headers/Public/ReactiveCocoa"
4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"Mantle" -l"ReactiveCocoa" -framework "Foundation"
5 | PODS_ROOT = ${SRCROOT}/Pods
--------------------------------------------------------------------------------
/MVVMDemo/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/Mantle" "${PODS_ROOT}/Headers/Public/ReactiveCocoa"
3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/Mantle" -isystem "${PODS_ROOT}/Headers/Public/ReactiveCocoa"
4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"Mantle" -l"ReactiveCocoa" -framework "Foundation"
5 | PODS_ROOT = ${SRCROOT}/Pods
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Target Support Files/ReactiveCocoa/ReactiveCocoa-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_ReactiveCocoa : NSObject
3 | @end
4 | @implementation PodsDummy_ReactiveCocoa
5 | @end
6 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Target Support Files/ReactiveCocoa/ReactiveCocoa-prefix.pch:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #endif
4 |
5 |
--------------------------------------------------------------------------------
/MVVMDemo/Pods/Target Support Files/ReactiveCocoa/ReactiveCocoa.xcconfig:
--------------------------------------------------------------------------------
1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
2 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/ReactiveCocoa" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/ReactiveCocoa"
3 | PODS_ROOT = ${SRCROOT}
4 | SKIP_INSTALL = YES
--------------------------------------------------------------------------------
/images/Demo2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liangshixing/mvvmdemo/f31e20ad06f7dfb2a349d98abdee77d017c7c5f8/images/Demo2.png
--------------------------------------------------------------------------------
/images/MVC.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liangshixing/mvvmdemo/f31e20ad06f7dfb2a349d98abdee77d017c7c5f8/images/MVC.png
--------------------------------------------------------------------------------
/images/MVVM.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liangshixing/mvvmdemo/f31e20ad06f7dfb2a349d98abdee77d017c7c5f8/images/MVVM.png
--------------------------------------------------------------------------------
/images/UI_binding.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liangshixing/mvvmdemo/f31e20ad06f7dfb2a349d98abdee77d017c7c5f8/images/UI_binding.png
--------------------------------------------------------------------------------
/images/UML.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liangshixing/mvvmdemo/f31e20ad06f7dfb2a349d98abdee77d017c7c5f8/images/UML.png
--------------------------------------------------------------------------------
/images/photo.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liangshixing/mvvmdemo/f31e20ad06f7dfb2a349d98abdee77d017c7c5f8/images/photo.jpeg
--------------------------------------------------------------------------------