On Jan 20, 2006, at 11:29 AM, Jesse Carpenter wrote:
-- Chris wrote
Cocoa is not a C++ API, but you can mix C++ and Objective-C at
the statement level via Objective-C++. The source file for this
hybrid language is ".mm".
One simple question about mixing C++ with Objective-C. Is the C++
suffix .cpp ever used or all source files must use the Objective-C
Suffix? I assume that when you said hybrid, all source files use
the Objective-C Suffic .mm.
All source files don't need to be anything in particular. If you
want to compile a file as Objective-C++, give it the suffix ".mm".
If you want to compile a file as another language, use a file name
suffix appropriate to that language.
Instead of changing file suffixes, you can also set the language to
treat the file as in the Info window for the file within Xcode.
You should generally use the "Compile Source As" build setting to
compile all files as a specific language as a last resort.
-- Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden