dispatch

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Rendered for darwin/amd64

Overview

Package dispatch holds small internal helpers that the generated Go wrappers call. It is in an "internal" directory because these helpers are an implementation detail of the generated packages, not part of their public API. Helpers meant for direct use by application code live in the rt package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func As

func As[W any](id objc.ID, className string, ctor func(objc.ID) W) (W, bool)

As converts an Objective-C object to a specific Go wrapper, but only if the object really is of the named class (or a subclass). When it matches, As builds the wrapper with ctor and returns it with true; otherwise it returns the wrapper's zero value and false — the same shape as a Go type assertion with the comma-ok form.

Types

This section is empty.

Jump to

Keyboard shortcuts

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