[Mono-osx] CoreMIDI Progress

Peter Allen Webb peterallenwebb at gmail.com
Tue Jan 11 10:28:41 EST 2011


Oh, I see. Thanks!

 -- Pete

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.
>
> Miguel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110111/b53c0a07/attachment.html 


More information about the Mono-osx mailing list