Re: Carbon API with carbon
Re: Carbon API with carbon
- Subject: Re: Carbon API with carbon
- From: Chilton Webb <email@hidden>
- Date: Sun, 14 Jul 2002 12:53:51 -0500
Hi Stefan,
No problems that I've seen. There are some Carbon APIs that have better
Cocoa counterparts, namely the HTMLRenderingLib and DataBrowser APIs, at
least in my experience. However, if you're trying to access those APIs
that store various types of data (Internet Config, for example), you'll
find the Carbon APIs to be quite straightforward and simple, assuming
you know C.
Likewise, accessing various BSD calls from a Carbon app is quite simple,
and some Cocoa objects can be accessed from a Carbon app with the same
amount of effort. As for stability, a poorly written Carbon app will
crash just as often as a poorly written Cocoa app.
The only thing you lose by calling Carbon APIs from Cocoa is
cross-platform compatibility, which is probably important if you're not
a Mac-Only programmer and want to use Cocoa for all of your
cross-platform apps. Then again, if you're writing code for another
platform, and something isn't in Cocoa that you need to access, you'll
end up calling some other framework anyway on the other platform, so I
guess it's a moot point.
FWIW, I'm happy to report that my Cocoa apps are all running fine. Cocoa
has greatly simplified the process of writing apps from scratch, in
those cases that I've had to do that. Thanks, Apple.
-Chilton
On Saturday, July 13, 2002, at 04:22 , Stefan Pantos wrote:
Just wondering if there is any problems with using any of the carbon
API's from a Cocoa application. Just wanting to do this to get a bit of
information which I am finding really difficult to get using cocoa.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.