Re: can c++ tool call a cocoa framework?
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