Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseDispatch ¶
ReleaseDispatch releases allocated dispatch_queue_t
func Retain ¶ added in v3.0.4
func Retain(o NSObject)
Retain increments reference count in objective-c world.
func SetFinalizer ¶
func SetFinalizer[T any](obj T, finalizer func(T))
Types ¶
type NSArray ¶
type NSArray struct {
*Pointer
}
NSArray indicates NSArray
func NewNSArray ¶
NewNSArray creates a new NSArray from pointer.
func (*NSArray) ToPointerSlice ¶
ToPointerSlice method returns slice of the obj-c object as unsafe.Pointer.
type NSObject ¶
type NSObject interface {
// contains filtered or unexported methods
}
NSObject indicates NSObject
type Pointer ¶
type Pointer struct {
// contains filtered or unexported fields
}
Pointer indicates any pointers which are allocated in objective-c world.
func ConvertToNSMutableArray ¶
ConvertToNSMutableArray converts to NSMutableArray from NSObject slice in Go world.
func ConvertToNSMutableDictionary ¶
ConvertToNSMutableDictionary converts to NSMutableDictionary from map[string]NSObject in Go world.
func NewPointer ¶
NewPointer creates a new Pointer for objc
Click to show internal directories.
Click to hide internal directories.