Documentation
¶
Overview ¶
Package objc provides Objective-C runtime bindings using purego.
Index ¶
- Constants
- func AddMethod(cls Class, sel SEL, impl any, types string) bool
- func Dlopen(path string, mode int) (uintptr, error)
- func GoString(nsstr ID) string
- func NewCallback(fn any) uintptr
- func RegisterClassPair(cls Class)
- func Send[T any](id ID, sel SEL, args ...any) T
- type Block
- type Class
- type ID
- type Protocol
- type SEL
Constants ¶
View Source
const ( RTLD_NOW = basepurego.RTLD_NOW RTLD_GLOBAL = basepurego.RTLD_GLOBAL )
RTLD constants for Dlopen
Variables ¶
This section is empty.
Functions ¶
func AddMethod ¶
AddMethod adds a new method to a class. impl must be a uintptr from purego.NewCallback.
func RegisterClassPair ¶
func RegisterClassPair(cls Class)
RegisterClassPair registers a class pair with the runtime.
Types ¶
type Class ¶
Type aliases from purego/objc
func AllocateClassPair ¶
AllocateClassPair calls objc_allocateClassPair.
Click to show internal directories.
Click to hide internal directories.