Re: Using Objective-C object in C++ source
Re: Using Objective-C object in C++ source
- Subject: Re: Using Objective-C object in C++ source
- From: Andreas Grosam <email@hidden>
- Date: Thu, 14 May 2009 19:45:42 +0200
On May 13, 2009, at 10:40 PM, Dave Carrigan wrote:
On May 13, 2009, at 1:36 PM, K. Chen wrote:
Can a C++ program instantiate and use an Objective-C object? Can
this be done in Xcode?
Yes and yes. Just give your C++ file a .mm extension and instantiate
to your heart's content.
Strictly, it is a No and a No.
A "C++ program" is defined in its corresponding standard. There is no
Objective-C object in C++.
What Dave meant is Objective-C++ -- which is Objective-C with the
capability to include *some* C++. The Objective-C++ compiler is
included in GCC and works in Xcode.
Objective-C++ is not C++, though! -Don't expect all works seamlessly.
In fact there are subtle issues, and IMHO many deficiencies - although
documented.
Regards
Andreas
_______________________________________________
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