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: Caleb Strockbine <email@hidden>
- Date: Tue, 05 May 2009 01:24:13 -0400
- Resent-date: Tue, 05 May 2009 01:43:10 -0400
- Resent-from: Caleb Strockbine <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: email@hidden
On May 4, 2009, at 11:07 PM, email@hidden wrote:
I am confused.
Perhaps, but not nearly so much as your developer friend.
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++. »
His answer is quite incorrect. Objective-C objects and C++ objects
accomplish some of the same things, but they are different, work
differently, and are not interchangeable. Objective-C and C++ are both
supersets of C, and it's possible to use Objective-C and C++ together,
even in the same source files, but that's about as far as it goes.
Is it true? Cocoa (and/or Cocoa Touch) layer translates Objective-C
objects to C++?
No.
-Caleb
_______________________________________________
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