Re: Trouble with imported enums in Swift
Re: Trouble with imported enums in Swift
- Subject: Re: Trouble with imported enums in Swift
- From: Rick Mann <email@hidden>
- Date: Mon, 20 Oct 2014 19:23:09 -0700
> On Oct 20, 2014, at 19:17 , Roland King <email@hidden> wrote:
>
> well one is ‘==‘ and the other is ‘=‘ so not totally shocked there’s no error in the second one.
Well, okay, but == sure is getting confused, but = sees the two types as compatible.
> Have you tried
>
> 1) a switch
Type 'McpSweepState' does not conform to protocol 'IntervalType'
(I've never been able to get switch to work)
> 2) using .MCP_SWEEP_UNKNOWN or an even more totally qualified name McpSweepState.MCP_SWEEP_UNKNOWN
Could not find member 'MCP_SWEEP_UNKNOWN'
> 3) if !( mSweepState != MCP_SWEEP_UNKNOWN ) // I know you think I’m joking but I’m not
Could not find an overload for '!' that accepts the supplied arguments
--
Rick Mann
email@hidden
_______________________________________________
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