• 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: Mixing Objective-C and C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mixing Objective-C and C++


  • Subject: Re: Mixing Objective-C and C++
  • From: Scott Ribe <email@hidden>
  • Date: Tue, 07 Nov 2006 12:06:17 -0700
  • Thread-topic: Mixing Objective-C and C++

> but how do I from the Objective-C side
> call the C++ code that I want to use?

Simple answer: give your files the extension ".mm" and just do it.

Longer answer, covering embedding, inheritance, exceptions and so on:

<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articl
es/chapter_4_section_10.html>


--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Mixing Objective-C and C++ (From: "Jason T. Slack" <email@hidden>)

  • Prev by Date: Re: Mixing Objective-C and C++
  • Next by Date: NSFetchRequest/NSPredicate behavior for different stores
  • Previous by thread: Re: Mixing Objective-C and C++
  • Next by thread: Re: Mixing Objective-C and C++
  • Index(es):
    • Date
    • Thread