• 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: can c++ tool call a cocoa framework?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can c++ tool call a cocoa framework?


  • Subject: Re: can c++ tool call a cocoa framework?
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 8 Feb 2010 12:39:52 -0800


On Feb 8, 2010, at 11:41 AM, Xochitl Lunde wrote:

I have a C++ standard tool application created in Xcode. Can this tool use a Cocoa framework?

You'll need to either
(a) change the extension of at least one of your source files to .mm so it can use Objective-C syntax and call the framework; or
(b) create a new .mm file (with .h header) to serve as glue, that can call the framework and itself be called by your C++ code.


If you don't want to rename files, it's possible to tweak the build settings in the project to compile .cpp (or .cc or whatever) as Objective-C++.

—Jens _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >can c++ tool call a cocoa framework? (From: Xochitl Lunde <email@hidden>)

  • Prev by Date: Re: can c++ tool call a cocoa framework?
  • Next by Date: Re: Programs' following -F not found
  • Previous by thread: Re: can c++ tool call a cocoa framework?
  • Next by thread: How to use Xcode with my project
  • Index(es):
    • Date
    • Thread