• 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: Carbon -> Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Carbon -> Cocoa (From: Casey McDermott <email@hidden>)
 >Re: Carbon -> Cocoa (From: Jeremy Hughes <email@hidden>)

  • Prev by Date: Re: Carbon -> Cocoa
  • Next by Date: is there a way to determine if an NSButton is toggleable ?
  • Previous by thread: Re: Carbon -> Cocoa
  • Next by thread: Re: Carbon -> Cocoa
  • Index(es):
    • Date
    • Thread