Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSUbiquitousKeyValueStoreMBS class.

NSUbiquitousKeyValueStoreMBS.ArrayValue(key as string) as Variant()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Get the value for this key as a variant.
Example
dim values() as Variant

values.Append "Hello"
values.Append "World"

dim u as new NSUbiquitousKeyValueStoreMBS

u.ArrayValue("key")=values

// later read back
dim nvalues() as Variant = u.ArrayValue("key")

See also:

NSUbiquitousKeyValueStoreMBS.ArrayValue(key as string, assigns values() as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Set the value for this key as a variant.
Example
dim u as new NSUbiquitousKeyValueStoreMBS
dim nvalues() as Variant = u.ArrayValue("key")

See also:

NSUbiquitousKeyValueStoreMBS.BooleanValue(key as string) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Get or set the value for this key as a boolean.

(Read and Write computed property)

NSUbiquitousKeyValueStoreMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The constructor.

NSUbiquitousKeyValueStoreMBS.DataValue(key as string) as memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
property iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Get or set the value for this key as a memoryblock.

(Read and Write computed property)

NSUbiquitousKeyValueStoreMBS.Destructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The destructor.

NSUbiquitousKeyValueStoreMBS.dictionaryRepresentation as dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
method iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The key value store as a dictionary.

NSUbiquitousKeyValueStoreMBS.DictionaryValue(key as string) as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Get or set the value for this key as a dictionary.

(Read and Write computed property)

NSUbiquitousKeyValueStoreMBS.DoubleValue(key as string) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Get or set the value for this key as a double.
Example
dim u as new NSUbiquitousKeyValueStoreMBS

u.DoubleValue("HighScore") = 3456

(Read and Write computed property)

NSUbiquitousKeyValueStoreMBS.IntegerValue(key as string) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Get or set the value for this key as an integer.
Example
dim u as new NSUbiquitousKeyValueStoreMBS

// query highscore value
MsgBox str(u.IntegerValue("HighScore"))

(Read and Write computed property)

NSUbiquitousKeyValueStoreMBS.removeObjectForKey(key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Removes the value for the key.

NSUbiquitousKeyValueStoreMBS.StringValue(key as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Get or set the string value for the given key.
Example
dim u as NSUbiquitousKeyValueStoreMBS = NSUbiquitousKeyValueStoreMBS.defaultStore

// safe something
u.StringValue("Font") = "Times"

(Read and Write computed property)

NSUbiquitousKeyValueStoreMBS.synchronize as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Synchronizes the key value store.
Example
dim u as NSUbiquitousKeyValueStoreMBS = NSUbiquitousKeyValueStoreMBS.defaultStore

// safe something
u.StringValue("Font") = "Times"

if u.synchronize then
MsgBox "OK"
else
MsgBox "Failed"
end if

Returns true on success.

NSUbiquitousKeyValueStoreMBS.VariantValue(key as string) as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property iCloud MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Get or set the value for this key as a variant.

(Read and Write computed property)

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


The biggest plugin in space...