Re: Does Cocoa layer translate Objective-C objects to C++?
Re: Does Cocoa layer translate Objective-C objects to C++?
- Subject: Re: Does Cocoa layer translate Objective-C objects to C++?
- From: Andrew Farmer <email@hidden>
- Date: Mon, 4 May 2009 20:14:20 -0700
On 03 May 09, at 17:17, email@hidden wrote:
I was discussing with a developer about my desire to translate our C+
+ code (really simple and few methods and classes) to Objective-C,
for a Cocoa/Cocoa Touch software.
His answer has been: « I do not understand the reason, considering
that, after our translation to Objective-C, the Cocoa layer will
perform another translation to C++. »
Is it true? Cocoa (and/or Cocoa Touch) layer translates Objective-C
objects to C++?
No. While Objective-C++ will allow you to mix C++ code with Objective-
C code, their objects are not interchangeable. A C++ object cannot be
sent an ObjC message, for instance, nor can a Cocoa class be the
recipient of virtual method calls._______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden