Re: Carbon -> Cocoa
Re: Carbon -> Cocoa
- Subject: Re: Carbon -> Cocoa
- From: Guillaume Laurent <email@hidden>
- Date: Mon, 20 Aug 2018 11:53:33 +0200
> On 17 Aug 2018, at 19:51, Jeremy Hughes <email@hidden> wrote:
>
>> Of course, the C++ business logic doesn't need any changes. The concern is,
>> how long will it last? Seems like the future is an entirely Swift-based API
>> that replaces Objective-C Cocoa in 5 years, with no easy way to link to
>> other languages.
>
> Core parts of Webkit are written in C++, so I think you’re safe with that.
>
> I haven’t tried to interface between Swift and C++, but I think it’s possible
> and will probably get easier. You could ask in the Swift forums.
It’s not currently possible, from what I’ve tried, the best way to do this is
to wrap a C++ class in an ObjC++ class.
_______________________________________________
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