action

package
v0.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2023 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(instance CanSet, handler Handler)

Set set action for an ojbc instance, if it has target and setAction method.

Types

type CanSet

type CanSet interface {
	objc.IObject
	SetTarget(target objc.IObject)
	SetAction(sel objc.Selector)
}

CanSet is an interface for objc instance which can set a target and action

type Handler

type Handler func(sender objc.IObject)

Handler is a callback function for an ActionTarget.

type Target

type Target struct {
	objc.Object
}

Target hold an objc Target target instance

func Wrap

func Wrap(handler Handler) (target Target, selector objc.Selector)

Wrap create a new objc Target instance, from Handler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL