• 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: Validating NSButton in Swift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Validating NSButton in Swift
      • From: Roland King <email@hidden>
    • Re: Validating NSButton in Swift
      • From: Quincey Morris <email@hidden>
References: 
 >Validating NSButton in Swift (From: Luc Van Bogaert <email@hidden>)
 >Re: Validating NSButton in Swift (From: Quincey Morris <email@hidden>)
 >Re: Validating NSButton in Swift (From: Luc Van Bogaert <email@hidden>)
 >Re: Validating NSButton in Swift (From: Roland King <email@hidden>)
 >Re: Validating NSButton in Swift (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Validating NSButton in Swift
  • Next by Date: Re: Validating NSButton in Swift
  • Previous by thread: Re: Validating NSButton in Swift
  • Next by thread: Re: Validating NSButton in Swift
  • Index(es):
    • Date
    • Thread