• 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: Integrating C++ into Swift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Integrating C++ into Swift


  • Subject: Re: Integrating C++ into Swift
  • From: Uli Kusterer <email@hidden>
  • Date: Sat, 13 Jun 2015 12:34:35 -0700

> On 13 Jun 2015, at 12:26, Quincey Morris <email@hidden> wrote:
>
> On Jun 13, 2015, at 12:01 , Uli Kusterer <email@hidden> wrote:
>>
>> Right now, I get the impression that, given I’d have to use ObjC for bridging anyway, I might as well leave the GUI layer code in ObjC.
>
> How are you currently bridging from Obj-C to C++? In theory (I guess) every line of Obj-C code that you have now could be replaced by a Swift equivalent that’s 100% interoperable. Is there Obj-C++ in there somewhere?

Yeah, using ObjC++ right now. Swift does not have any way to talk to C++. Best on I know to do is go via C (e.g. by creating C++ methods declared as 'extern “C”’) or ObjC (by creating an outwardly ObjC class that is ObjC++ internally).

Cheers,
-- Uli Kusterer
“The Witnesses of TeachText are everywhere...”
http://zathras.de


_______________________________________________

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


  • Follow-Ups:
    • Re: Integrating C++ into Swift
      • From: Rick Mann <email@hidden>
References: 
 >Integrating C++ into Swift (From: Uli Kusterer <email@hidden>)
 >Re: Integrating C++ into Swift (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Integrating C++ into Swift
  • Next by Date: Re: Integrating C++ into Swift
  • Previous by thread: Re: Integrating C++ into Swift
  • Next by thread: Re: Integrating C++ into Swift
  • Index(es):
    • Date
    • Thread