platform.macos.core

Objective-C runtime objects, selectors, allocation, and reference management.

3 structs · 13 functions · Public API

Structs

ObjCReference

struct
@objc_object(.kind = "protocol_object", .handle = "handle")
ObjCReference : struct {
    handle : ObjCId = null
}

Functions

objc_getClass

func
objc_getClass : func(name : cstring) -> ObjCClass

objc_class

func
objc_class : func(name : cstring) -> ObjCClass

objc_selector

func
objc_selector : func(name : cstring) -> ObjCSelector

objc_alloc

func
objc_alloc : func(class : ObjCClass) -> ObjCId

objc_init

func
objc_init : func(object : ObjCId) -> ObjCId

objc_retain

func
objc_retain : func(object : ObjCId) -> ObjCId