• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how is C often used in Cocoa, if at all?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how is C often used in Cocoa, if at all?


  • Subject: Re: how is C often used in Cocoa, if at all?
  • From: Gregory Weston <email@hidden>
  • Date: Tue, 11 Feb 2003 19:09:30 -0500

On 2/11/03 at 2:16 PM, Marc Weil <email@hidden> wrote:

> 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).

I don't really agree that Objective-C and C++ are that closely related.
Objective-C is C with a fairly thin layer over top to support a Smalltalkesque
dynamic OO methodology. C++ is an object-supporting language heavily based on,
but not completely compatible with, C. Put another way, an Obj-C compiler _will_
compile C code, but a C++ compiler may legitimately not.

For the original poster, you have to understand the distinction between C the
language and C the standard library. If you're using Objective-C you are using C
the language. If you're using Cocoa, large chunks of the C standard library
become almost superfluous if you're not especially concerned about portability.
If you _are_ worried about portability you're probably going to end up doing
most or all of your back end in C with Cocoa restricted to the interaction
between that engine and the user and machine.

G
_______________________________________________
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.

  • Prev by Date: Re: how is C often used in Cocoa, if at all?
  • Next by Date: Re: help needed with OO concepts when copying
  • Previous by thread: Re: how is C often used in Cocoa, if at all?
  • Next by thread: Re: how is C often used in Cocoa, if at all?
  • Index(es):
    • Date
    • Thread