I am subscribing to NSUbiquitousKeyValueStoreDidChangeExternallyNotification
to monitor key value changes from iCloud. When received, I process the userinfo
included and apply my business logic.
However, sometimes (especially on first launch) I am receiving keys that seem system-related, or at least are not part of my application -
AppleKeyboards
NSInterfaceStyle
AppleKeyboardsExpanded
AppleICUForce24HourTimeAirPlayShouldShowDebugButtonInPicker
etc
This is how I subscribe to notifications:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(iCloudStoreChanged:)
name:NSUbiquitousKeyValueStoreDidChangeExternallyNotification
object:store];
Julien had it right here. I was not using any frameworks bit forgot that previously I had used MKiCloudSync to sync my NSUserDefaults. I can only assume these keys are added to NSUserDefaults by the system and were propogated to iCloud.