sdarlington / SDCloudUserDefaults

Store NSUserDefaults and iCloud data at the same time.
Apache License 2.0
108 stars 17 forks source link

The implementation of removeNotifications has no effect #2

Closed Clafou closed 10 years ago

Clafou commented 10 years ago

The removeObserver: call passes in the wrong object, and therefore does not have the intended effect. It should pass in the return value of the call to addObserverForName:object:queue:usingBlock:

sdarlington commented 10 years ago

This is what you get when you don't read the documentation when using a new API... Good spot.

Clafou commented 10 years ago

;) Most apps probably don't need to call this method anyway!

sdarlington commented 10 years ago

True, but if the method is there it should work!