Re: Can I write a MIDI application in Cocoa?
Re: Can I write a MIDI application in Cocoa?
- Subject: Re: Can I write a MIDI application in Cocoa?
- From: "Dennis C. De Mars" <email@hidden>
- Date: Tue, 7 May 2002 17:30:56 -0000
>
>> If CoreAudio is new, why is it (apparently not) written in Cocoa? I
>
>> thought "all new apps should be in Cocoa" (Apple).
>
> CoreAudio isn't an app, it's part of the underpinnings of the OS. It's
>
> in C/C++ and you can use every little bit of it in a Cocoa app with no
>
> problems.
>
Thanks for your response ... I realize CoreAudio isn't an app. But it
>
isn't in Objective-C, right? Makes it more problematic, if only because
>
of inconsistency, to integrate it into a Cocoa app, no?
If the choice is between making an API C or C++, or making it Obj-C, consider
this: If the API is in C you can access it from a Cocoa app almost as easily
as you can access it from a Carbon app (even if it isn't your favorite kind
of interface). If the API is in Obj-C, it is practically impossible to use it
from a Carbon app. So, to support both Carbon and Cocoa, the API has to be in
C.
The philosophy "All new apps should be in Cocoa" doesn't mean "Apple is going
to cut off all existing Carbon apps (which most of the existing Mac SW market
consists of) at the knees." Apple wants existing Mac MIDI and other audio
applications to be ported to OS X, which generally won't happen if they can
only do this by rewriting in Cocoa.
Of course, the ideal thing would be for Apple to also provide an Obj-C
wrapper for some of these APIs. Maybe they will do that someday when they get
the time. In the meantime some developers are doing this themselves and
sharing their work, as another reply noted.
- Dennis D.
_______________________________________________
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.