dispatch

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 2 Imported by: 0

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