Re: OMS, FreeMIDI and Carbon...
Re: OMS, FreeMIDI and Carbon...
- Subject: Re: OMS, FreeMIDI and Carbon...
- From: Jeff Evans <email@hidden>
- Date: Fri, 28 Feb 2003 08:24:29 -0800
>
>> Also: I assume you will also be using OS X midi capabilities, in which case
>
>> you have to deal with calling Mach-O from carbon.
>
>> Calling Mach-O from a carbon app is possible but requires a lot of extra
>
>> gymnastics, although there are shortcuts - this is covered in the archives
>
>> extensively.
>
>>
>
> Kurt et al:
>
>
>
> Am I misunderstanding you? I've written a Carbon app that uses OSX's
>
> MIDI capabilities, and it seems to work just fine. The only thing is to
>
> compile that Carbon app for Mach-O - no other changes are required.
>
>
You did have to do something special to call the Mach-O frameworks from
>
Carbon right? Actually ... I just went looking for the info on my archives,
>
to make sure I wasn't brain-dead, and look what I found:
>
on 7/19/02 12:54 PM, Jeff Evans <email@hidden> wrote:
>
>
>> How to call frameworks from CFM apps has been discussed at some length on
>
>> this list. Curiously the question keeps coming up anyway.
>
>
>
> Well, it's curious how one's memory turns to mush. Kurt's note was a big
>
> help, and I would point others with this redundant question in the direction
>
> of Matt Ingall's very detailed message of 6/26/02, 10:50 a.m. Still, it may
>
> be best just to do a separate Mach-0 version for OSX, as several writers
>
> have proposed.
>
>
>
>
So I guess you did jump through the frameworks-from-CFM hoops. But I guess
>
you decided it wasn't so hard after all. I decided against it myself,
>
because it is simply more trouble than having 2 separate apps, and I have
>
lots of other things to do!
>
>
-Kurt Bigler
You know, Kurt, this is kind of worrisome. I don't mean that my mind has in
fact turned to mush, though I suppose it has, but that I don't see that I
did anything special to call Frameworks from Carbon. The special stuff came
only in calling OMS from Carbon, and a couple of contributors to this list
had some nice ideas about that. Anyway, I have one app that I have
Carbonized, and I compile it in two different forms: for Mach-O and for OS9.
The Mach-O version uses the Framework includes. The OS9 version
conditionally includes the OMS stuff and leaves out the CoreMIDI stuff.
That's all. The CoreMIDI stuff was very easy; the OMS kind of tricky.
Yours, Jeff
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.