NSUbiquitousKeyValueStoreMBS shared methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSUbiquitousKeyValueStoreMBS class.

NSUbiquitousKeyValueStoreMBS.available as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether this class is available.
Example
msgbox "iCloud Key Value Store available: "+str(NSUbiquitousKeyValueStoreMBS.available)

This does not tell you whether Apple switched on their servers.

NSUbiquitousKeyValueStoreMBS.defaultStore as NSUbiquitousKeyValueStoreMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a reference to the default key store.

Some examples using this method:

NSUbiquitousKeyValueStoreMBS.NSUbiquitousKeyValueStoreChangedKeysKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
A key name for the userinfo dictionary when you receive the NSUbiquitousKeyValueStoreDidChangeExternallyNotification notification.

Value for this key in the dictionary in an array of strings.

NSUbiquitousKeyValueStoreMBS.NSUbiquitousKeyValueStoreChangeReasonKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
A key name for the userinfo dictionary when you receive the NSUbiquitousKeyValueStoreDidChangeExternallyNotification notification.

Value for this key in the dictionary in an integer.

NSUbiquitousKeyValueStoreMBS.NSUbiquitousKeyValueStoreDidChangeExternallyNotification as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The notification name for the notification sent when the .

You can observe this notification with the NSNotificationObserverMBS class or simply subclass NSUbiquitousKeyValueStoreMBS and use the DidChangeExternally event.

The items on this page are in the following plugins: MBS MacCloud Plugin.


💬 Ask a question or report a problem