I subscribed one object for some changes from another object like this:
[objA addObserver:self
forKeyPath:keyPath
options:NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld
context:nil];
And when changes are made the
- (void) observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
is called.
But values for "new" and "old" keys for change dictionary are always the same. This issue is reproducible only in iOS 4.x. In iOS 5.x it works fine. Any suggestions?