Re: Validating NSButton in Swift
Re: Validating NSButton in Swift
- Subject: Re: Validating NSButton in Swift
- From: email@hidden
- Date: Mon, 14 Dec 2015 18:12:30 +0900
The bug should be that it gives you a wrong message, because it already conforms to the protocol because it inherits from a class that conforms to the protocol.
All you should have to do is implement an override of the methods to do custom stuff or of the properties.
You shouldn't declare conformity to NSValidatedUserInterfaceItem because it already confirms earlier in its ancestry.
Sent from my iPhone
> On Dec 14, 2015, at 6:02 PM, Quincey Morris <email@hidden> wrote:
>
>> On Dec 13, 2015, at 23:53 , Roland King <email@hidden> wrote:
>>
>> You appear to be a little out of luck here because
>
> I was afraid that was going to be the answer. I suspect the problem is the Swift Obj-C importer, rather than any misguided SDK intention, because there are also a *lot* of accessibility properties that come across as functions. Maybe I’ll file a bug report for that manifestation too.
>
> _______________________________________________
>
> 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
_______________________________________________
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