RACKVOTrampoline Class Reference
Inherits from | RACDisposable : NSObject |
Declared in | RACKVOTrampoline.h RACKVOTrampoline.m |
Overview
The KVO trampoline object. Represents a KVO observation.
Disposing of the trampoline will stop observation.
Instance Methods
dispose
Performs the disposal work. Can be called multiple times, though sebsequent calls won’t do anything.
- (void)dispose
Declared In
RACDisposable.h
initWithTarget:observer:keyPath:options:block:
Initializes the receiver with the given parameters.
- (id)initWithTarget:(NSObject *)target observer:(NSObject *)observer keyPath:(NSString *)keyPath options:(NSKeyValueObservingOptions)options block:(RACKVOBlock)block
Discussion
target - The object whose key path should be observed. Cannot be nil.
observer - The object that gets notified when the value at the key path
changes. Can be nil.
keyPath - The key path on target
to observe. Cannot be nil.
options - Any key value observing options to use in the observation.
block - The block to call when the value at the observed key path changes.
Cannot be nil.
Returns the initialized object.
Declared In
RACKVOTrampoline.h