Versions in this module Expand all Collapse all v0 v0.5.0 Jun 21, 2024 Changes in this version + const ASSOCIATION_ASSIGN + const ASSOCIATION_COPY + const ASSOCIATION_COPY_NONATOMIC + const ASSOCIATION_RETAIN + const ASSOCIATION_RETAIN_NONATOMIC + const PropertyAttributeNameGetter + const PropertyAttributeNameIvar + const PropertyAttributeNameNonatomic + const PropertyAttributeNameReadonly + const PropertyAttributeNameRetain + const PropertyAttributeNameSetter + const PropertyAttributeNameStrong + const PropertyAttributeNameType + const PropertyAttributeNameWeak + func AddClassMethod(class IClass, sel Selector, f any) bool + func AddMethod(class IClass, sel Selector, f any) bool + func AssociationKey(name string) unsafe.Pointer + func CallBlock[T any](b Block, params ...any) T + func Call[T any](o Handle, selector Selector, params ...any) T + func DisposeClass(class IClass) + func ForceCast[S any, T any](v S) T + func Ptr(o Handle) unsafe.Pointer + func RegisterClass(class IClass) + func RemoveAssociatedObjects(o IObject) + func ReplaceClassMethod(class IClass, sel Selector, f any) + func ReplaceMethod(class IClass, sel Selector, f any) + func Retain(o IObject) + func SetAssociatedObject(o IObject, key unsafe.Pointer, value IObject, policy AssociationPolicy) + func SetDeallocListener(o Object, listener func()) + func ToGoBytes(p unsafe.Pointer) []byte + func ToGoMap(ptr unsafe.Pointer, mapType reflect.Type) reflect.Value + func ToGoSlice(ptr unsafe.Pointer, sliceType reflect.Type) reflect.Value + func ToGoString(p unsafe.Pointer) string + func ToNSArray(slice reflect.Value) unsafe.Pointer + func ToNSData(bytes []byte) unsafe.Pointer + func ToNSDict(m reflect.Value) unsafe.Pointer + func ToNSString(s string) unsafe.Pointer + func WithAutoreleasePool(task func()) + type AssociationPolicy uintptr + type Block struct + func BlockFrom(ptr unsafe.Pointer) Block + func CreateGlobalBlock(f any) Block + func CreateMallocBlock(f any) Block + func (b Block) Copy() Block + func (b Block) Ptr() unsafe.Pointer + func (b Block) Release() + type Category struct + func (c Category) Ptr() unsafe.Pointer + type Class struct + func AllocateClass(superClass Class, name string, extraBytes uint) Class + func GetClass(name string) Class + func (c Class) AddMethod(sel Selector, imp IMP, types string) bool + func (c Class) AddProperty(name string, attributes []PropertyAttribute) bool + func (c Class) AddProtocol(protocol Protocol) bool + func (c Class) ClassMethod(sel Selector) Method + func (c Class) CopyMethodList() []Method + func (c Class) CopyPropertyList() []Property + func (c Class) CreateInstance(idxIvars uint) Object + func (c Class) InstanceMethod(sel Selector) Method + func (c Class) MetaClass() Class + func (c Class) MethodImplementation(sel Selector) IMP + func (c Class) MethodImplementationStret(sel Selector) IMP + func (c Class) Name() string + func (c Class) Property(name string) Property + func (c Class) Ptr() unsafe.Pointer + func (c Class) ReplaceMethod(sel Selector, imp IMP, types string) IMP + func (c Class) ReplaceProperty(name string, attributes []PropertyAttribute) + func (c Class) RespondsToSelector(sel Selector) bool + func (c Class) SetVersion(version int) + func (c Class) SuperClass() Class + func (c Class) Version() int + type Handle interface + Ptr func() unsafe.Pointer + type IClass interface + AddMethod func(sel Selector, imp IMP, types string) bool + AddProperty func(name string, attributes []PropertyAttribute) bool + AddProtocol func(protocol Protocol) bool + ClassMethod func(sel Selector) Method + CopyMethodList func() []Method + CopyPropertyList func() []Property + CreateInstance func(idxIvars uint) Object + InstanceMethod func(sel Selector) Method + MetaClass func() Class + MethodImplementation func(sel Selector) IMP + MethodImplementationStret func(sel Selector) IMP + Name func() string + Property func(name string) Property + ReplaceMethod func(sel Selector, imp IMP, types string) IMP + ReplaceProperty func(name string, attributes []PropertyAttribute) + RespondsToSelector func(sel Selector) bool + SetVersion func(version int) + SuperClass func() Class + Version func() int + type IMP struct + func IMPFrom(ptr unsafe.Pointer) IMP + func IMPWithBlock(b Block) IMP + func (i IMP) Block() Block + func (i IMP) Ptr() unsafe.Pointer + func (i IMP) RemoveBlock() bool + type IObject interface + Autorelease func() Object + Class func() Class + ConformsToProtocol func(protocol Protocol) bool + Dealloc func() + Description func() string + IsKindOfClass func(class Class) bool + IsMemberOfClass func(class Class) bool + IsNil func() bool + IsProxy func() bool + Release func() + RespondsToSelector func(sel Selector) bool + Retain func() Object + RetainCount func() uint + type IProtocol interface + CopyMethodDescriptionList func(required bool, instanceMethod bool) []MethodDescription + CopyPropertyList func() []Property + CopyProtocolList func() []Protocol + MethodDescription func(sel Selector, required bool, instanceMethod bool) MethodDescription + Name func() string + Property func(name string, required bool, isInstanceProperty bool) Property + type Integer = int64 + type Ivar struct + func (i Ivar) Ptr() unsafe.Pointer + type Method struct + func (m Method) Implementation() IMP + func (m Method) Name() Selector + func (m Method) Ptr() unsafe.Pointer + func (m Method) SetImplementation(imp IMP) IMP + func (m Method) TypeEncoding() string + type MethodDescription struct + Name Selector + Types string + type Object struct + func GetAssociatedObject(o IObject, key unsafe.Pointer) Object + func NewObject() Object + func ObjectFrom(ptr unsafe.Pointer) Object + func WrapAsProtocol[T any](protocolName string, d T) Object + func (o Object) Autorelease() Object + func (o Object) Class() Class + func (o Object) ConformsToProtocol(protocol Protocol) bool + func (o Object) Dealloc() + func (o Object) Description() string + func (o Object) IsKindOfClass(class Class) bool + func (o Object) IsMemberOfClass(class Class) bool + func (o Object) IsNil() bool + func (o Object) IsProxy() bool + func (o Object) PerformSelector(sel Selector) Object + func (o Object) PerformSelectorWithObject(sel Selector, object Object) Object + func (o Object) PerformSelectorWithObjectWithObject(sel Selector, obj1, obj2 Object) Object + func (o Object) Ptr() unsafe.Pointer + func (o Object) Release() + func (o Object) RespondsToSelector(sel Selector) bool + func (o Object) Retain() Object + func (o Object) RetainCount() uint + type Property struct + func (p Property) Attributes() string + func (p Property) CopyAttributeList() []PropertyAttribute + func (p Property) CopyAttributeValue(name string) string + func (p Property) Name() string + func (p Property) Ptr() unsafe.Pointer + type PropertyAttribute struct + Name string + Value string + type Protocol struct + func AllocateProtocol(name string) Protocol + func GetProtocol(name string) Protocol + func (p Protocol) CopyMethodDescriptionList(required bool, instanceMethod bool) []MethodDescription + func (p Protocol) CopyPropertyList() []Property + func (p Protocol) CopyProtocolList() []Protocol + func (p Protocol) MethodDescription(sel Selector, required bool, instanceMethod bool) MethodDescription + func (p Protocol) Name() string + func (p Protocol) Property(name string, required bool, isInstanceProperty bool) Property + func (p Protocol) Ptr() unsafe.Pointer + type Selector struct + func RegisterSelectorName(name string) Selector + func Sel(selName string) Selector + func SelectorFrom(ptr unsafe.Pointer) Selector + func (s Selector) Name() string + func (s Selector) Ptr() unsafe.Pointer + type SyncCache struct + func (c *SyncCache[K, V]) Load(key K, Compute func(key K) V) V + type UInteger = uint64 + type UserClass struct + func NewClass[T IObject](selectors ...Selector) UserClass[T] + func (c UserClass[T]) New() T + type Void struct