Am 06.04.2012 um 02:36 schrieb Aaron Andrew Hunt:
> Oh, I think I figured out what happens... It's a CFObject with all kinds of
> data that has to be unpacked, and when I ask for the CFString property I am
> only reading something like an XML tag when I ask for, is that right?
it works for me like this:
// init midi
dim m as new MidiClientMBS
m.Init NewCFStringMBS("TestApp")
// create a source
dim name as CFStringMBS = NewCFStringMBS("TestSource")
dim source as MidiEndpointMBS = m.CreateSource(name)
// query name property
dim s as integer = source.IntegerProperty(source.kMIDIPropertyUniqueID)
MsgBox "UniqueID: "+str(s)
// set it
source.IntegerProperty(source.kMIDIPropertyUniqueID) = 1234
// query again
dim t as integer = source.IntegerProperty(source.kMIDIPropertyUniqueID)
MsgBox "UniqueID: "+str(t)
Greetings
Christian
--
Real Studio Conferences, Training and Meetings.
More details and registration here:
http://www.monkeybreadsoftware.de/realbasic/events/
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info