ns

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

View Source
const (
	ModalResponseCancel   = 0
	ModalResponseOK       = 1
	ModalResponseStop     = -1000
	ModalResponseAbort    = -1001
	ModalResponseContinue = -1002
)

https://developer.apple.com/documentation/appkit/nsmodalresponse

Variables

This section is empty.

Functions

func StringArrayToSlice

func StringArrayToSlice(array Array) []string

StringArrayToSlice converts an NSArray of NSString into a slice of Go strings.

func URLArrayToStringSlice

func URLArrayToStringSlice(array Array) []string

URLArrayToStringSlice converts an NSArray of NSURL into a slice of Go strings.

Types

type Application

type Application struct {
	objc.Object
}

Application https://developer.apple.com/documentation/appkit/nsapplication?language=objc

type Array

type Array struct {
	objc.Object
}

Array https://developer.apple.com/documentation/foundation/nsarray?language=objc

func StringSliceToArray

func StringSliceToArray(slice []string) Array

StringSliceToArray converts a slice of Go strings into an NSArray of NSString.

func (Array) StringAtIndex

func (a Array) StringAtIndex(index int) String

StringAtIndex returns the String at the specified index. No check is made to verify the object is actually a String.

type EventModifierFlags

type EventModifierFlags uint

EventModifierFlags https://developer.apple.com/documentation/appkit/nseventmodifierflags?language=objc

const (
	EventModifierFlagCapsLock EventModifierFlags = 1 << (16 + iota)
	EventModifierFlagShift
	EventModifierFlagControl
	EventModifierFlagOption
	EventModifierFlagCommand
	EventModifierFlagNumericPad
	EventModifierFlagHelp
	EventModifierFlagFunction
)

https://developer.apple.com/documentation/appkit/nseventmodifierflags?language=objc

type MenuItem struct {
	objc.Object
}

MenuItem https://developer.apple.com/documentation/appkit/nsmenuitem?language=objc

type OpenPanel

type OpenPanel struct {
	SavePanel
}

OpenPanel https://developer.apple.com/documentation/appkit/nsopenpanel?language=objc

type PopupButtonCell

type PopupButtonCell struct {
	objc.Object
}

PopupButtonCell https://developer.apple.com/documentation/appkit/nspopupbuttoncell?language=objc

func (PopupButtonCell) PerformClickWithFrameInView

func (p PopupButtonCell) PerformClickWithFrameInView(frame Rect, view View)

PerformClickWithFrameInView https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1530205-performclickwithframe?language=objc

type String

type String struct {
	objc.Object
}

String https://developer.apple.com/documentation/foundation/nsstring?language=occ

func StringFromString

func StringFromString(str string) String

StringFromString returns a String created by copying the data from the given string.

Jump to

Keyboard shortcuts

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