[swift-users] ObjC vs Swift action selectors
davidcatmull at gmail.com
Wed Dec 7 09:56:29 CST 2016
I created a simple test project, and found that it didn't fail. Then I
looked at my original test again and realized it was actually failing for
other reasons. So never mind :)
On Tue, Dec 6, 2016 at 1:55 PM, Joe Groff <jgroff at apple.com> wrote:
> On Dec 6, 2016, at 12:53 PM, David Catmull <davidcatmull at gmail.com> wrote:
> I tried, writing that as @objc(action:) #selector(ClassName.action(_:))
> but that got an "expected declaration" error.
> I also tried adding @objc(action:) to the method itself (which seems
> redundant anyway), but that didn't help either.
> The attribute has to go on the method definition. Would you be able to
> file a bug on bugs.swift.org with your Swift and ObjC code?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-users