Validating NSButton in Swift
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