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

Validating NSButton in Swift


  • Subject: Validating NSButton in Swift
  • From: Luc Van Bogaert <email@hidden>
  • Date: Sun, 13 Dec 2015 23:59:16 +0100

Hello,

I'm trying to rework some working Objective-C code to validate my user interface items to Swift.

I have a NSButton subclass that I want to conform to NSValidatedUserInterfaceItem, so I can call validateUserInterfaceItem: on a validator passing the button as a parameter. This requires my subclass to implement two methods: action() and tag(). The compiler complains about the selectors being identical to the 'action' and 'tag' selectors in superclass NSControl.

Is there a way to solve this?

--
Luc Van Bogaert

_______________________________________________

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: Quincey Morris <email@hidden>
  • Prev by Date: Re: LSSharedFIleList API deprecated
  • Next by Date: Re: Validating NSButton in Swift
  • Previous by thread: Re: RSSI is deprecated since iOS 8...
  • Next by thread: Re: Validating NSButton in Swift
  • Index(es):
    • Date
    • Thread