• 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: Is it possible to use the Cocoa API with c++???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it possible to use the Cocoa API with c++???


  • Subject: Re: Is it possible to use the Cocoa API with c++???
  • From: Chris Hanson <email@hidden>
  • Date: Fri, 22 Feb 2002 02:00:31 -0600

Not in the way you probably want to.

The reason is that C++ is not a dynamic language. Cocoa absolutely relies on the dynamic features of Objective-C and Java. These features are where a large portion of its power and ease of use come from.

You can mix C++ and Objective-C in the same file though by using Objective-C++. This doesn't mean you can subclass a C++ class in Objective-C or vice versa. It does mean though that you don't have to write any plain C glue to call preexisting C++ code in a Cocoa application.

-- Chris

--
Chris Hanson | Email: email@hidden
bDistributed.com, Inc. | Phone: +1-847-372-3955
Making Business Distributed | Fax: +1-847-589-3738
http://bdistributed.com/ | Personal Email: email@hidden
_______________________________________________
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: Quartz call to generate shadows?
  • Next by Date: How dynamicaly adddress a message?
  • Previous by thread: Re: Quartz call to generate shadows?
  • Next by thread: How dynamicaly adddress a message?
  • Index(es):
    • Date
    • Thread