Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] Re: MidiEndpointMBS.kMIDIPropertyUniqueID is not unique? (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] WindowsShortcutMBS asks for resolving the file on creation?
Next thread: [MBS] Replacements for editableMovie and CreateMovie?


[MBS] Re: MidiEndpointMBS.kMIDIPropertyUniqueID is not unique?   -   Aaron Andrew Hunt
   [MBS] MidiEndpointMBS.kMIDIPropertyUniqueID is not unique?   -   Aaron Andrew Hunt
    Re: [MBS] MidiEndpointMBS.kMIDIPropertyUniqueID is not unique?   -   Christian Schmitz
    [MBS] Re: MidiEndpointMBS.kMIDIPropertyUniqueID is not unique?   -   Aaron Andrew Hunt
    Re: [MBS] MidiEndpointMBS.kMIDIPropertyUniqueID is not unique?   -   Christian Schmitz

[MBS] Re: MidiEndpointMBS.kMIDIPropertyUniqueID is not unique?
Date: 06.04.12 15:57 (Fri, 6 Apr 2012 10:57:19 -0400)
From: Aaron Andrew Hunt
Very clear example. My mistake was, instead of querying

source.IntegerProperty(source.kMIDIPropertyUniqueID)

which gives the ID as a number, I was querying

CFStringMBS(source.kMIDIPropertyUniqueID)

which doesn't give the ID number, but instead gives the string "uniqueID" for all endpoints.

Obviously, CFStringMBS() returns the name of the property, instead of the value of the property. Oops!

Thank you : )
Aaron
=cD
On Apr 6, 2012, at 6:00 AM, <email address removed> wrote:
> // query name property
> dim s as integer = source.IntegerProperty(source.kMIDIPropertyUniqueID)
> MsgBox "UniqueID: "+str(s)

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

[MBS] MidiEndpointMBS.kMIDIPropertyUniqueID is not unique?
Date: 05.04.12 18:23 (Thu, 5 Apr 2012 13:23:10 -0400)
From: Aaron Andrew Hunt
Every MidiEndpointMBS object shows a kMIDIPropertyUniqueID CFStringMBS value of "uniqueID", and this property can't be set, so ... ?

It seems totally useless, so I must be missing something?

Thanks!
Aaron

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] MidiEndpointMBS.kMIDIPropertyUniqueID is not unique?
Date: 06.04.12 10:17 (Fri, 6 Apr 2012 11:17:11 +0200)
From: Christian Schmitz

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

[MBS] Re: MidiEndpointMBS.kMIDIPropertyUniqueID is not unique?
Date: 06.04.12 01:36 (Thu, 5 Apr 2012 20:36:56 -0400)
From: 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?

Thanks,
Aaron

On Apr 5, 2012, at 1:23 PM, Aaron Andrew Hunt wrote:
> Every MidiEndpointMBS object shows a kMIDIPropertyUniqueID CFStringMBS value of "uniqueID", and this property can't be set, so ... ?
>
> It seems totally useless, so I must be missing something?
>
> Thanks!
> Aaron
>

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] MidiEndpointMBS.kMIDIPropertyUniqueID is not unique?
Date: 05.04.12 20:50 (Thu, 5 Apr 2012 21:50:20 +0200)
From: Christian Schmitz

Am 05.04.2012 um 19:23 schrieb Aaron Andrew Hunt:

> Every MidiEndpointMBS object shows a kMIDIPropertyUniqueID CFStringMBS value of "uniqueID", and this property can't be set, so ... ?
>
> It seems totally useless, so I must be missing something?

I think if it has an unique id, why change it?

Setting the property makes only sense for new endpoints where you want to set it.

Greetings
Christian