• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Does Cocoa layer translate Objective-C objects to C++?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Does Cocoa layer translate Objective-C objects to C++? (From: email@hidden)

  • Prev by Date: Re: Does Cocoa layer translate Objective-C objects to C++?
  • Next by Date: Uncaching NSBundle's "objectForInfoDictionaryKey"
  • Previous by thread: Re: Does Cocoa layer translate Objective-C objects to C++?
  • Next by thread: Re: Does Cocoa layer translate Objective-C objects to C++?
  • Index(es):
    • Date
    • Thread