Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSUUIDMBS class.

NSUUIDMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes a new UUID with RFC 4122 version 4 random bytes.

See also:

NSUUIDMBS.Constructor(UUID as MemoryBlock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes a new UUID with the given bytes.

See also:

NSUUIDMBS.Constructor(UUID as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes a new UUID with the formatted string.

See also:

NSUUIDMBS.copy as NSUUIDMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Copies the UUID.

NSUUIDMBS.isEqual(other as NSUUIDMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Compares two UUIDs.
Example
dim u1 as new NSUUIDMBS
dim s1 as string = u1.UUIDString

// make new object with same UUID
dim u2 as NSUUIDMBS = new NSUUIDMBS(s1)
dim s2 as string = u2.UUIDString

// other uuid
dim o as new NSUUIDMBS
dim so as string = o.UUIDString

dim e1 as Boolean = u1.isEqual(u2)
dim e2 as Boolean = u1.isEqual(o)

Break

Returns true if both are equal.

NSUUIDMBS.Operator_Compare(other as NSUUIDMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Compares two UUIDs.
Example
dim u1 as new NSUUIDMBS
dim s1 as string = u1.UUIDString

// make new object with same UUID
dim u2 as NSUUIDMBS = new NSUUIDMBS(s1)
dim s2 as string = u2.UUIDString

// other uuid
dim o as new NSUUIDMBS
dim so as string = o.UUIDString

if u1 = u2 then
MsgBox "u1 and u2 are equal."
else
MsgBox "u1 and u2 are not equal. Problem?"
end if

if u1 = o then
MsgBox "u1 and o are equal. Problem?"
else
MsgBox "u1 and o are not equal."
end if

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


The biggest plugin in space...