Classes
The following classes are available globally.
-
The
See moreTargetAction
class bridges the gap between Swift closures and the common Cocoa target (id
)/action (SEL
) paradigm. Construct aTargetAction
with a no-argument or single-argument callback closure. Then, use thetarget
andaction
properties of theTargetAction
instance as you would normally anywhere Cocoa calls for a target/action.Declaration
Swift
open class TargetAction