NSUUIDMBS 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 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.


💬 Ask a question or report a problem