You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 2, 2018. It is now read-only.
[NSObject+BlockObservation removeObserverWithBlockToken:] should be removed not deprecated, because it is not compatible anymore with the [NSObject+BlockObservation addObserverForKeyPath:task:] call. Code that uses this old method will crash on
NSString *identifier = [split objectAtIndex:1];
The text was updated successfully, but these errors were encountered:
Yep, but now you've also removed - (NSString *)addObserverForKeyPath:(NSString *)keyPath task:(BKObservationBlock)task. That wasn't necessary, I guess. This method simply created an identifier for you instead of making the user create one every time he added an observer. It was quite convenient. I was only stating that it did not work with removeObserverWithBlockToken: since this method expected an internal block token composed of the keyPath and the identifier, but the addObservermethod only returned the identifier.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[NSObject+BlockObservation removeObserverWithBlockToken:]
should be removed not deprecated, because it is not compatible anymore with the[NSObject+BlockObservation addObserverForKeyPath:task:]
call. Code that uses this old method will crash onThe text was updated successfully, but these errors were encountered: