Platforms to show: All Mac Windows Linux Cross-Platform

Back to MidiObjectMBS class.

MidiObjectMBS.BinaryProperty(name as CFStringMBS) as CFBinaryDataMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MIDI MBS MacCF Plugin 3.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Set or Get an object's data-type property.

Lasterror is set.
Returns nil on any error.
(Read and Write computed property)

Some examples using this property:

MidiObjectMBS.IntegerProperty(name as CFStringMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MIDI MBS MacCF Plugin 3.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Set or Get an object's integer-type property.
Example
// init midi
Var m as new MidiClientMBS
m.Init NewCFStringMBS("TestApp")

// create a source
Var name as CFStringMBS = NewCFStringMBS("TestSource")
Var source as MidiEndpointMBS = m.CreateSource(name)

// query name property
Var s as Integer = source.IntegerProperty(source.kMIDIPropertyUniqueID)
MsgBox "UniqueID: "+str(s)

// set it
source.IntegerProperty(source.kMIDIPropertyUniqueID) = 1234

// query again
Var t as Integer = source.IntegerProperty(source.kMIDIPropertyUniqueID)
MsgBox "UniqueID: "+str(t)

Returns 0 on any error.
Lasterror is set.
(Read and Write computed property)

MidiObjectMBS.ObjectProperty(name as CFStringMBS) as CFObjectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MIDI MBS MacCF Plugin 3.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Get or Set an object's dictionary-type property.

Lasterror is set.
New for CoreMIDI 1.3.
Renamed from Property to ObjectProperty in v4.3 for Xojo 6 compatibility.
(Read and Write computed property)

MidiObjectMBS.Properties(deep as boolean) as CFObjectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MIDI MBS MacCF Plugin 3.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Get all of an object's properties.

Deep parameter: true if the object's child objects are to be included (e.g. a device's entities, or an entity's endpoints).
Properties which an object inherits from its owning object (if any) are not included.

New for CoreMIDI 1.1.

Returns nil on any error.
Lasterror is set.

MidiObjectMBS.RemoveProperty(name as CFStringMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MIDI MBS MacCF Plugin 3.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Remove an object's property.

Lasterror is set.

MidiObjectMBS.StringProperty(name as CFStringMBS) as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MIDI MBS MacCF Plugin 3.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Get or Set an object's string-type property.
Example
Var m as MidiClientMBS
Var i, n as Integer
Var e as MIDIEndpointMBS
Var d as MIDIDeviceMBS
Var s as CFStringMBS

m = new MidiClientMBS
m.Init NewCFStringMBS("Test")
d = m.GetDevice(0)

s = d.StringProperty(d.kMIDIPropertyManufacturer)

MsgBox s.str

Lasterror is set.
(Read and Write computed property)

Some examples using this property:

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


The biggest plugin in space...