• 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: How to do isKindOfClass in Swift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to do isKindOfClass in Swift


  • Subject: Re: How to do isKindOfClass in Swift
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Mon, 12 Sep 2016 17:17:03 +0700

> On 12 Sep 2016, at 15:51, Quincey Morris <email@hidden> wrote:
>
> On Sep 12, 2016, at 01:32 , Gerriet M. Denkmann <email@hidden> wrote:
>>
>> In my real (as opposed to playground) code, each class lives in a different file.
>
> I just tried it with classes in different files, and no compile error. I don’t think this is a Swift 2 thing, because the “is” has been around since the beginning.

I also tried a small test project: and could NOT reproduce the compiler warning (“classes are unrelated”).
The I got back to the real project: and could also not reproduce it there.

One explanation: working with Swift, I quite often (a few times per day) see strange (runtime) errors. Cleaning the project, then building again invariable fixes these.
Maybe this was one of those.

Thanks for your help and your patience!

Kind regards,

Gerriet.


_______________________________________________

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: How to do isKindOfClass in Swift
      • From: Quincey Morris <email@hidden>
References: 
 >How to do isKindOfClass in Swift (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: How to do isKindOfClass in Swift (From: Quincey Morris <email@hidden>)
 >Re: How to do isKindOfClass in Swift (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: How to do isKindOfClass in Swift (From: Quincey Morris <email@hidden>)
 >Re: How to do isKindOfClass in Swift (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: How to do isKindOfClass in Swift (From: Quincey Morris <email@hidden>)
 >Re: How to do isKindOfClass in Swift (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: How to do isKindOfClass in Swift (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: How to do isKindOfClass in Swift
  • Next by Date: NSURLSession doesn't release delegate if NSURLSessionStreamTask created (macOS)
  • Previous by thread: Re: How to do isKindOfClass in Swift
  • Next by thread: Re: How to do isKindOfClass in Swift
  • Index(es):
    • Date
    • Thread