On May 4, 2009, at 11:07 PM, [email protected] 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to