[Mono-osx] CoreMIDI Progress
Peter Allen Webb
peterallenwebb at gmail.com
Tue Jan 11 10:28:41 EST 2011
Oh, I see. Thanks!
On Tue, Jan 11, 2011 at 9:44 AM, Miguel de Icaza <miguel at novell.com> wrote:
> Hello Peter,
> Your suggestions make sense to me, except one. The MIDIObjectRef values
>> returned by the various functions in the CoreMIDI API are not pointers but
>> rather unsigned 32-bit integers used as unique identifiers for the various
>> "midi objects". Given that fact, I don't think it makes sense to use
>> INativeObject, unless I am confused about something.
> The "Handle" is merely that, a token that represents the unmanaged object.
> There is no magic associated with the IntPtr, other than the fact that an
> IntPtr can fit both an "int" and the native platform "void *", which happens
> to be two common ways of representing tokens in C APIs.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-osx