cocoa

package
v2.5.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

View Source
const IsIOS = false

Variables

This section is empty.

Functions

This section is empty.

Types

type CGFloat

type CGFloat float64

type CGSize

type CGSize struct {
	Width, Height CGFloat
}

type NSAutoreleasePool

type NSAutoreleasePool struct {
	objc.ID
}

func NSAutoreleasePool_new

func NSAutoreleasePool_new() NSAutoreleasePool

func (NSAutoreleasePool) Release

func (pool NSAutoreleasePool) Release()

type NSError

type NSError struct {
	objc.ID
}

type NSInvocation

type NSInvocation struct {
	objc.ID
}

NSInvocation is being used to call functions that can't be called directly with purego.SyscallN. See the downsides of that function for what it cannot do.

func NSInvocation_invocationWithMethodSignature

func NSInvocation_invocationWithMethodSignature(sig NSMethodSignature) NSInvocation

func (NSInvocation) GetReturnValue

func (inv NSInvocation) GetReturnValue(ret unsafe.Pointer)

func (NSInvocation) Invoke

func (inv NSInvocation) Invoke()

func (NSInvocation) SetArgumentAtIndex

func (inv NSInvocation) SetArgumentAtIndex(arg unsafe.Pointer, idx int)

func (NSInvocation) SetSelector

func (inv NSInvocation) SetSelector(_cmd objc.SEL)

func (NSInvocation) SetTarget

func (inv NSInvocation) SetTarget(target objc.ID)

type NSMethodSignature

type NSMethodSignature struct {
	objc.ID
}

func NSMethodSignature_instanceMethodSignatureForSelector

func NSMethodSignature_instanceMethodSignatureForSelector(self objc.ID, _cmd objc.SEL) NSMethodSignature

func NSMethodSignature_signatureWithObjCTypes

func NSMethodSignature_signatureWithObjCTypes(types string) NSMethodSignature

NSMethodSignature_signatureWithObjCTypes takes a string that represents the type signature of a method. It follows the encoding specified in the Apple Docs.

type NSString

type NSString struct {
	objc.ID
}

func NSString_alloc

func NSString_alloc() NSString

func (NSString) InitWithUTF8String

func (s NSString) InitWithUTF8String(utf8 string) NSString

func (NSString) String

func (s NSString) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL