Re: How to do isKindOfClass in Swift
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