• 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: swift and objective-c <--- possible to mix/code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: swift and objective-c <--- possible to mix/code?


  • Subject: Re: swift and objective-c <--- possible to mix/code?
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 03 Jun 2014 20:21:18 -0700


On Jun 3, 2014, at 2:30 PM, Amourine Technologies <email@hidden> wrote:

I've just did a cursor review of Swift.
Is it possible to mix code/file?

You can’t mix them in the same source file, but you can have a project with some Obj-C (.m, .mm) files and some Swift (.swift) files, and they’ll interoperate.

(Well, almost: according to what I read today, Swift classes can’t be subclassed in Obj-C, although the reverse is true.)

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >swift and objective-c (From: "McLaughlin, Michael P." <email@hidden>)
 >Re: swift and objective-c (From: Roland King <email@hidden>)
 >Re: swift and objective-c (From: Akis Kesoglou <email@hidden>)
 >Re: swift and objective-c <--- possible to mix/code? (From: Amourine Technologies <email@hidden>)

  • Prev by Date: Re: swift and objective-c
  • Next by Date: Some non-obvious Swift goodies
  • Previous by thread: Re: swift and objective-c <--- possible to mix/code?
  • Next by thread: Re: swift and objective-c <--- possible to mix/code?
  • Index(es):
    • Date
    • Thread