Re: Future of Cocoa
Re: Future of Cocoa
- Subject: Re: Future of Cocoa
- From: Jens Alfke via Cocoa-dev <email@hidden>
- Date: Tue, 19 Nov 2019 14:07:18 -0800
> On Nov 19, 2019, at 12:51 PM, Richard Charles via Cocoa-dev
> <email@hidden> wrote:
>
> If I understand it correctly, there is a linkage between Swift and
> Objective-C. Apple devised a way to call the Cocoa frameworks written in
> Objective-C from the Swift language using the magic of the LLVM compiler.
The Swift compiler and runtime know how the Objective-C runtime works, so so
Swift can treat Obj-C classes and objects as first-class citizens.
> A great question would be is possible for Apple to pull the Objective-C rug
> out from underneath the Cocoa frameworks leaving only a Swift implementation?
Sure, since you can create Obj-C compatible classes in Swift simply by using
the @objc annotation.
However, rewriting a framework from scratch is always a perilous activity and
not something to be done lightly. This may happen over time, but I wouldn't
expect wholesale rewrites in the near future.
—Jens
_______________________________________________
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