Re: how is C often used in Cocoa, if at all?
Re: how is C often used in Cocoa, if at all?
- Subject: Re: how is C often used in Cocoa, if at all?
- From: Marc Weil <email@hidden>
- Date: Tue, 11 Feb 2003 16:22:59 -0500
In Cocoa itself, C really doesn't play that big of a role. ObjC is
completely Object Oriented, so the closest related language is C++, not C
(in terms of that kind of language, not including Smalltalk).
However, pure C and C++ code is allowed in any Cocoa application. This means
that, even though you are using the higher-level Cocoa APIs, you still have
complete, 100% access to the lower-level APIs (such as system includes like
time.h, etc.). This is really handy because it allows you to use
cross-platform code written in C or C++ without many changes, if any at all.
People will also use C/C++ functions and routines if they need to write a
function that has to be extremely efficient.
If you have any more questions, just e-mail me instead of the list, which is
for Cocoa questions specifically.
Regards,
Marc Weil (mw)
--
"Software exists to solve your problems. We exist to make the problems."
Microsoft
On 2/11/03 3:13 PM, "Ben Dougall" <email@hidden> wrote:
>
Hiyer,
>
>
I'm currently learning C before I get stuck into Objective-C and Cocoa,
>
and am just skimming this list in preperation - to see what's going on.
>
>
And I'm wondering if C is used much in writing Cocoa applications? It
>
doesn't seem to be, from what I've read on here, or have I got the
>
wrong impression there?
>
>
How often, and how is C often used from within Objective-C and Cocoa,
>
if at all? Are there some things that lend themselves well to being
>
written in straight C, and other things that don't? Which sort of
>
things? Is it just a matter of preference and ends up being easier not
>
using C?
>
>
I know these are very broad questions but I'm just trying to get an
>
understanding of how C fits in generally with Obj-C and Cocoa.
>
>
thanks, Ben.
_______________________________________________
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.