Documentation ¶
Index ¶
- Constants
- func Beep()
- func DoubleClickInterval() time.Duration
- func StringArrayToSlice(array Array) []string
- func URLArrayToStringSlice(array Array) []string
- type ActivationPolicy
- type Application
- func (a Application) GetDelegate() objc.Object
- func (a Application) HideOtherApplications()
- func (a Application) KeyWindow() Window
- func (a Application) MainWindow() Window
- func (a Application) SetActivationPolicy(policy ActivationPolicy)
- func (a Application) SetDelegate(delegate objc.Object)
- func (a Application) SetHelpMenu(menu Menu)
- func (a Application) SetMainMenu(menu Menu)
- func (a Application) SetServicesMenu(menu Menu)
- func (a Application) SetWindowsMenu(menu Menu)
- func (a Application) UnhideAllApplications()
- type Array
- type Color
- type ColorSpace
- type ControlStateValue
- type Data
- type DistributedNotificationCenter
- type Event
- type EventModifierFlags
- type Menu
- type MenuItem
- func (m MenuItem) IsSeparatorItem() bool
- func (m MenuItem) Menu() Menu
- func (m MenuItem) SetKeyEquivalentModifierMask(modifiers EventModifierFlags)
- func (m MenuItem) SetState(state ControlStateValue)
- func (m MenuItem) SetSubMenu(menu Menu)
- func (m MenuItem) SetTag(tag int)
- func (m MenuItem) SetTarget(target objc.Object)
- func (m MenuItem) SetTitle(title string)
- func (m MenuItem) State() ControlStateValue
- func (m MenuItem) SubMenu() Menu
- func (m MenuItem) Tag() int
- func (m MenuItem) Title() string
- type MutableArray
- type OpenPanel
- func (p OpenPanel) AllowsMultipleSelection() bool
- func (p OpenPanel) CanChooseDirectories() bool
- func (p OpenPanel) CanChooseFiles() bool
- func (p OpenPanel) ResolvesAliases() bool
- func (p OpenPanel) SetAllowsMultipleSelection(set bool)
- func (p OpenPanel) SetCanChooseDirectories(set bool)
- func (p OpenPanel) SetCanChooseFiles(set bool)
- func (p OpenPanel) SetResolvesAliases(set bool)
- func (p OpenPanel) URLs() Array
- type Pasteboard
- type PasteboardItem
- type Point
- type PopupButtonCell
- func (p PopupButtonCell) PerformClickWithFrameInView(frame Rect, view View)
- func (p PopupButtonCell) SelectItem(menuItem MenuItem)
- func (p PopupButtonCell) SetAltersStateOfSelectedItem(enabled bool)
- func (p PopupButtonCell) SetAutoEnablesItems(enabled bool)
- func (p PopupButtonCell) SetMenu(menu Menu)
- type Rect
- type RunningApplication
- type SavePanel
- type Size
- type String
- type URL
- type UTType
- type UserDefaults
- type View
- type Window
Constants ¶
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 Beep ¶
func Beep()
Beep https://developer.apple.com/documentation/appkit/1473622-nsbeep?language=objc
func DoubleClickInterval ¶
DoubleClickInterval https://developer.apple.com/documentation/appkit/nsevent/1528384-doubleclickinterval?language=objc
func StringArrayToSlice ¶
StringArrayToSlice converts an NSArray of NSString into a slice of Go strings.
func URLArrayToStringSlice ¶
URLArrayToStringSlice converts an NSArray of NSURL into a slice of Go strings.
Types ¶
type ActivationPolicy ¶
type ActivationPolicy uint
ActivationPolicy https://developer.apple.com/documentation/appkit/nsapplicationactivationpolicy?language=objc
const ( ActivationPolicyRegular ActivationPolicy = iota ActivationPolicyAccessory ActivationPolicyProhibited )
https://developer.apple.com/documentation/appkit/nsapplicationactivationpolicy?language=objc
type Application ¶
Application https://developer.apple.com/documentation/appkit/nsapplication?language=objc
func App ¶
func App() Application
App https://developer.apple.com/documentation/appkit/nsapp?language=objc
func (Application) GetDelegate ¶
func (a Application) GetDelegate() objc.Object
GetDelegate https://developer.apple.com/documentation/appkit/nsapplication/1428705-delegate?language=objc
func (Application) HideOtherApplications ¶
func (a Application) HideOtherApplications()
HideOtherApplications https://developer.apple.com/documentation/appkit/nsapplication/1428746-hideotherapplications?language=objc
func (Application) KeyWindow ¶
func (a Application) KeyWindow() Window
KeyWindow https://developer.apple.com/documentation/appkit/nsapplication/1428406-keywindow?language=objc
func (Application) MainWindow ¶
func (a Application) MainWindow() Window
MainWindow https://developer.apple.com/documentation/appkit/nsapplication/1428723-mainwindow?language=objc
func (Application) SetActivationPolicy ¶
func (a Application) SetActivationPolicy(policy ActivationPolicy)
SetActivationPolicy https://developer.apple.com/documentation/appkit/nsapplication/1428621-setactivationpolicy?language=objc
func (Application) SetDelegate ¶
func (a Application) SetDelegate(delegate objc.Object)
SetDelegate https://developer.apple.com/documentation/appkit/nsapplication/1428705-delegate?language=objc
func (Application) SetHelpMenu ¶
func (a Application) SetHelpMenu(menu Menu)
SetHelpMenu https://developer.apple.com/documentation/appkit/nsapplication/1428644-helpmenu?language=objc
func (Application) SetMainMenu ¶
func (a Application) SetMainMenu(menu Menu)
SetMainMenu https://developer.apple.com/documentation/appkit/nsapplication/1428634-mainmenu?language=objc
func (Application) SetServicesMenu ¶
func (a Application) SetServicesMenu(menu Menu)
SetServicesMenu https://developer.apple.com/documentation/appkit/nsapplication/1428608-servicesmenu?language=objc
func (Application) SetWindowsMenu ¶
func (a Application) SetWindowsMenu(menu Menu)
SetWindowsMenu https://developer.apple.com/documentation/appkit/nsapplication/1428547-windowsmenu?language=objc
func (Application) UnhideAllApplications ¶
func (a Application) UnhideAllApplications()
UnhideAllApplications https://developer.apple.com/documentation/appkit/nsapplication/1428737-unhideallapplications?language=objc
type Array ¶
Array https://developer.apple.com/documentation/foundation/nsarray?language=objc
func StringSliceToArray ¶
StringSliceToArray converts a slice of Go strings into an NSArray of NSString.
func (Array) Count ¶
Count https://developer.apple.com/documentation/foundation/nsarray/1409982-count?language=objc
func (Array) ObjectAtIndex ¶
ObjectAtIndex https://developer.apple.com/documentation/foundation/nsarray/1417555-objectatindex?language=objc
func (Array) StringAtIndex ¶
StringAtIndex returns the String at the specified index. No check is made to verify the object is actually a String.
type Color ¶
Color https://developer.apple.com/documentation/appkit/nscolor?language=objc
func ControlAccentColor ¶
func ControlAccentColor() Color
ControlAccentColor https://developer.apple.com/documentation/appkit/nscolor/3000782-controlaccentcolor?language=objc
func (Color) ColorUsingColorSpace ¶
func (c Color) ColorUsingColorSpace(cs ColorSpace) Color
ColorUsingColorSpace https://developer.apple.com/documentation/appkit/nscolor/1527379-colorusingcolorspace/
func (Color) GetRedGreenBlueAlpha ¶
GetRedGreenBlueAlpha https://developer.apple.com/documentation/appkit/nscolor/1527848-getred?language=objc
type ColorSpace ¶
ColorSpace https://developer.apple.com/documentation/appkit/nscolorspace?language=objc
func DeviceRGBColorSpace ¶
func DeviceRGBColorSpace() ColorSpace
DeviceRGBColorSpace https://developer.apple.com/documentation/appkit/nscolorspace/1412066-devicergbcolorspace?language=objc
type ControlStateValue ¶
type ControlStateValue int
ControlStateValue https://developer.apple.com/documentation/appkit/nscontrolstatevalue?language=objc
const ( ControlStateValueMixed ControlStateValue = iota - 1 ControlStateValueOff ControlStateValueOn )
https://developer.apple.com/documentation/appkit/nscontrolstatevalue?language=objc
type Data ¶
Data https://developer.apple.com/documentation/foundation/nsdata?language=objc
func NewData ¶
NewData https://developer.apple.com/documentation/foundation/nsdata/1547231-datawithbytes?language=objc
func (Data) Bytes ¶
Bytes https://developer.apple.com/documentation/foundation/nsdata/1411450-getbytes?language=objc
type DistributedNotificationCenter ¶
DistributedNotificationCenter https://developer.apple.com/documentation/foundation/nsdistributednotificationcenter/
func DefaultCenter ¶
func DefaultCenter() DistributedNotificationCenter
DefaultCenter https://developer.apple.com/documentation/foundation/nsdistributednotificationcenter/1412063-defaultcenter
func (DistributedNotificationCenter) AddObserver ¶
func (c DistributedNotificationCenter) AddObserver(delegate objc.Object, selector objc.Selector, name string)
AddObserver https://developer.apple.com/documentation/foundation/nsdistributednotificationcenter/1414151-addobserver
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 Menu ¶
Menu https://developer.apple.com/documentation/appkit/nsmenu?language=objc
func NewMenu ¶
NewMenu https://developer.apple.com/documentation/appkit/nsmenu/1518144-initwithtitle?language=objc
func (Menu) InsertItemAtIndex ¶
InsertItemAtIndex https://developer.apple.com/documentation/appkit/nsmenu/1518201-insertitem?language=objc
func (Menu) ItemAtIndex ¶
ItemAtIndex https://developer.apple.com/documentation/appkit/nsmenu/1518218-itematindex?language=objc
func (Menu) NumberOfItems ¶
NumberOfItems https://developer.apple.com/documentation/appkit/nsmenu/1518202-numberofitems?language=objc
func (Menu) RemoveItemAtIndex ¶
RemoveItemAtIndex https://developer.apple.com/documentation/appkit/nsmenu/1518207-removeitematindex?language=objc
func (Menu) SetDelegate ¶
SetDelegate https://developer.apple.com/documentation/appkit/nsmenu/1518169-delegate?language=objc
type MenuItem ¶
MenuItem https://developer.apple.com/documentation/appkit/nsmenuitem?language=objc
func NewMenuItem ¶
NewMenuItem https://developer.apple.com/documentation/appkit/nsmenuitem/1514858-initwithtitle?language=objc
func NewSeparatorMenuItem ¶
func NewSeparatorMenuItem() MenuItem
NewSeparatorMenuItem https://developer.apple.com/documentation/appkit/nsmenuitem/1514838-separatoritem?language=objc
func (MenuItem) IsSeparatorItem ¶
IsSeparatorItem https://developer.apple.com/documentation/appkit/nsmenuitem/1514837-separatoritem?language=objc
func (MenuItem) Menu ¶
Menu https://developer.apple.com/documentation/appkit/nsmenuitem/1514830-menu?language=objc
func (MenuItem) SetKeyEquivalentModifierMask ¶
func (m MenuItem) SetKeyEquivalentModifierMask(modifiers EventModifierFlags)
SetKeyEquivalentModifierMask https://developer.apple.com/documentation/appkit/nsmenuitem/1514815-keyequivalentmodifiermask?language=objc
func (MenuItem) SetState ¶
func (m MenuItem) SetState(state ControlStateValue)
SetState https://developer.apple.com/documentation/appkit/nsmenuitem/1514804-state?language=objc
func (MenuItem) SetSubMenu ¶
SetSubMenu https://developer.apple.com/documentation/appkit/nsmenuitem/1514845-submenu?language=objc
func (MenuItem) SetTag ¶
SetTag https://developer.apple.com/documentation/appkit/nsmenuitem/1514840-tag?language=objc
func (MenuItem) SetTarget ¶
SetTarget https://developer.apple.com/documentation/appkit/nsmenuitem/1514843-target?language=objc
func (MenuItem) SetTitle ¶
SetTitle https://developer.apple.com/documentation/appkit/nsmenuitem/1514805-title?language=objc
func (MenuItem) State ¶
func (m MenuItem) State() ControlStateValue
State https://developer.apple.com/documentation/appkit/nsmenuitem/1514804-state?language=objc
func (MenuItem) SubMenu ¶
SubMenu https://developer.apple.com/documentation/appkit/nsmenuitem/1514845-submenu?language=objc
func (MenuItem) Tag ¶
Tag https://developer.apple.com/documentation/appkit/nsmenuitem/1514840-tag?language=objc
func (MenuItem) Title ¶
Title https://developer.apple.com/documentation/appkit/nsmenuitem/1514805-title?language=objc
type MutableArray ¶
type MutableArray struct {
Array
}
MutableArray https://developer.apple.com/documentation/foundation/nsmutablearray?language=objc
func MutableArrayWithCapacity ¶
func MutableArrayWithCapacity(capacity int) MutableArray
MutableArrayWithCapacity https://developer.apple.com/documentation/foundation/nsmutablearray/1460057-arraywithcapacity?language=objc
func (MutableArray) AddObject ¶
func (a MutableArray) AddObject(obj objc.Object)
AddObject https://developer.apple.com/documentation/foundation/nsmutablearray/1411274-addobject?language=objc
type OpenPanel ¶
type OpenPanel struct {
SavePanel
}
OpenPanel https://developer.apple.com/documentation/appkit/nsopenpanel?language=objc
func NewOpenPanel ¶
func NewOpenPanel() OpenPanel
NewOpenPanel https://developer.apple.com/documentation/appkit/nsopenpanel/1584365-openpanel?language=objc
func (OpenPanel) AllowsMultipleSelection ¶
AllowsMultipleSelection https://developer.apple.com/documentation/appkit/nsopenpanel/1530786-allowsmultipleselection?language=objc
func (OpenPanel) CanChooseDirectories ¶
CanChooseDirectories https://developer.apple.com/documentation/appkit/nsopenpanel/1532668-canchoosedirectories?language=objc
func (OpenPanel) CanChooseFiles ¶
CanChooseFiles https://developer.apple.com/documentation/appkit/nsopenpanel/1527060-canchoosefiles?language=objc
func (OpenPanel) ResolvesAliases ¶
ResolvesAliases https://developer.apple.com/documentation/appkit/nsopenpanel/1533625-resolvesaliases?language=objc
func (OpenPanel) SetAllowsMultipleSelection ¶
SetAllowsMultipleSelection https://developer.apple.com/documentation/appkit/nsopenpanel/1530786-allowsmultipleselection?language=objc
func (OpenPanel) SetCanChooseDirectories ¶
SetCanChooseDirectories https://developer.apple.com/documentation/appkit/nsopenpanel/1532668-canchoosedirectories?language=objc
func (OpenPanel) SetCanChooseFiles ¶
SetCanChooseFiles https://developer.apple.com/documentation/appkit/nsopenpanel/1527060-canchoosefiles?language=objc
func (OpenPanel) SetResolvesAliases ¶
SetResolvesAliases https://developer.apple.com/documentation/appkit/nsopenpanel/1533625-resolvesaliases?language=objc
func (OpenPanel) URLs ¶
URLs https://developer.apple.com/documentation/appkit/nsopenpanel/1529845-urls?language=objc
type Pasteboard ¶
Pasteboard https://developer.apple.com/documentation/appkit/nspasteboard?language=objc
func GeneralPasteboard ¶
func GeneralPasteboard() Pasteboard
GeneralPasteboard https://developer.apple.com/documentation/appkit/nspasteboard/1530091-generalpasteboard?language=objc
func (Pasteboard) ChangeCount ¶
func (p Pasteboard) ChangeCount() int
ChangeCount https://developer.apple.com/documentation/appkit/nspasteboard/1533544-changecount?language=objc
func (Pasteboard) ClearContents ¶
func (p Pasteboard) ClearContents()
ClearContents https://developer.apple.com/documentation/appkit/nspasteboard/1533599-clearcontents?language=objc
func (Pasteboard) Items ¶
func (p Pasteboard) Items() Array
Items https://developer.apple.com/documentation/appkit/nspasteboard/1529995-pasteboarditems?language=objc
func (Pasteboard) Types ¶
func (p Pasteboard) Types() Array
Types https://developer.apple.com/documentation/appkit/nspasteboard/1529599-types?language=objc
func (Pasteboard) WriteItems ¶
func (p Pasteboard) WriteItems(data Array)
WriteItems https://developer.apple.com/documentation/appkit/nspasteboard/1525945-writeobjects?language=objc
type PasteboardItem ¶
PasteboardItem https://developer.apple.com/documentation/appkit/nspasteboarditem?language=objc
func NewPasteboardItem ¶
func NewPasteboardItem() PasteboardItem
NewPasteboardItem https://developer.apple.com/documentation/appkit/nspasteboarditem?language=objc
func (PasteboardItem) DataForType ¶
func (p PasteboardItem) DataForType(pbType string) Data
DataForType https://developer.apple.com/documentation/appkit/nspasteboarditem/1508496-datafortype?language=objc
func (PasteboardItem) SetDataForType ¶
func (p PasteboardItem) SetDataForType(data Data, pbType string)
SetDataForType https://developer.apple.com/documentation/appkit/nspasteboarditem/1508501-setdata?language=objc
func (PasteboardItem) Types ¶
func (p PasteboardItem) Types() Array
Types https://developer.apple.com/documentation/appkit/nspasteboarditem/1508499-types?language=objc
type Point ¶
Point https://developer.apple.com/documentation/foundation/nspoint?language=objc
type PopupButtonCell ¶
PopupButtonCell https://developer.apple.com/documentation/appkit/nspopupbuttoncell?language=objc
func NewPopupButtonCell ¶
func NewPopupButtonCell(text string, pullsDown bool) PopupButtonCell
NewPopupButtonCell https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1528591-inittextcell?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
func (PopupButtonCell) SelectItem ¶
func (p PopupButtonCell) SelectItem(menuItem MenuItem)
SelectItem https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1525225-selectitem?language=objc
func (PopupButtonCell) SetAltersStateOfSelectedItem ¶
func (p PopupButtonCell) SetAltersStateOfSelectedItem(enabled bool)
SetAltersStateOfSelectedItem https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1528446-altersstateofselecteditem?language=objc
func (PopupButtonCell) SetAutoEnablesItems ¶
func (p PopupButtonCell) SetAutoEnablesItems(enabled bool)
SetAutoEnablesItems https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1530889-autoenablesitems?language=objc
func (PopupButtonCell) SetMenu ¶
func (p PopupButtonCell) SetMenu(menu Menu)
SetMenu https://developer.apple.com/documentation/appkit/nspopupbuttoncell/1529059-menu?language=objc
type Rect ¶
Rect https://developer.apple.com/documentation/foundation/nsrect?language=objc
type RunningApplication ¶
RunningApplication https://developer.apple.com/documentation/appkit/nsrunningapplication?language=objc
func CurrentApplication ¶
func CurrentApplication() RunningApplication
CurrentApplication https://developer.apple.com/documentation/appkit/nsrunningapplication/1533604-currentapplication?language=objc
func (RunningApplication) Hide ¶
func (a RunningApplication) Hide()
Hide https://developer.apple.com/documentation/appkit/nsrunningapplication/1526608-hide?language=objc
type SavePanel ¶
SavePanel https://developer.apple.com/documentation/appkit/nssavepanel?language=objc
func NewSavePanel ¶
func NewSavePanel() SavePanel
NewSavePanel https://developer.apple.com/documentation/appkit/nssavepanel/1539016-savepanel?language=objc
func (SavePanel) AllowedFileTypes ¶
AllowedFileTypes https://developer.apple.com/documentation/appkit/nssavepanel/1534419-allowedfiletypes?language=objc
func (SavePanel) DirectoryURL ¶
DirectoryURL https://developer.apple.com/documentation/appkit/nssavepanel/1531279-directoryurl?language=objc
func (SavePanel) RunModal ¶
RunModal https://developer.apple.com/documentation/appkit/nssavepanel/1525357-runmodal?language=objc
func (SavePanel) SetAllowedFileTypes ¶
SetAllowedFileTypes https://developer.apple.com/documentation/appkit/nssavepanel/1534419-allowedfiletypes?language=objc
func (SavePanel) SetDirectoryURL ¶
SetDirectoryURL https://developer.apple.com/documentation/appkit/nssavepanel/1531279-directoryurl?language=objc
func (SavePanel) URL ¶
URL https://developer.apple.com/documentation/appkit/nssavepanel/1534384-url?language=objc
type Size ¶
Size https://developer.apple.com/documentation/foundation/nssize?language=objc
type String ¶
String https://developer.apple.com/documentation/foundation/nsstring?language=occ
func StringFromString ¶
StringFromString returns a String created by copying the data from the given string.
type URL ¶
URL https://developer.apple.com/documentation/foundation/nsurl?language=objc
func NewFileURL ¶
NewFileURL https://developer.apple.com/documentation/foundation/nsurl/1414650-fileurlwithpath?language=objc
func NewURL ¶
NewURL https://developer.apple.com/documentation/foundation/nsurl/1572047-urlwithstring?language=objc
func (URL) AbsoluteString ¶
AbsoluteString https://developer.apple.com/documentation/foundation/nsurl/1409868-absolutestring?language=objc
type UTType ¶
UTType https://developer.apple.com/documentation/uniformtypeidentifiers/uttype?language=objc
func ImportedTypeWithIdentifier ¶
ImportedTypeWithIdentifier https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3600610-importedtypewithidentifier?language=objc
func (UTType) PreferredMIMEType ¶
PreferredMIMEType https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548211-preferredmimetype?language=objc
type UserDefaults ¶
UserDefaults https://developer.apple.com/documentation/foundation/nsuserdefaults/
func StandardUserDefaults ¶
func StandardUserDefaults() UserDefaults
StandardUserDefaults https://developer.apple.com/documentation/foundation/nsuserdefaults/1416603-standarduserdefaults
func (UserDefaults) StringForKey ¶
func (u UserDefaults) StringForKey(key string) string
StringForKey https://developer.apple.com/documentation/foundation/nsuserdefaults/1416700-stringforkey
type View ¶
View https://developer.apple.com/documentation/appkit/nsview?language=objc
type Window ¶
Window https://developer.apple.com/documentation/appkit/nswindow?language=objc
func (Window) ContentView ¶
ContentView https://developer.apple.com/documentation/appkit/nswindow/1419160-contentview?language=objc
Source Files ¶
- application_darwin.go
- array_darwin.go
- beep_darwin.go
- color_darwin.go
- colorspace_darwin.go
- data_darwin.go
- distributed_notification_center_darwin.go
- event_darwin.go
- menu_darwin.go
- menu_item_darwin.go
- mutable_array_darwin.go
- open_panel_darwin.go
- pasteboard_darwin.go
- pasteboard_item_darwin.go
- popup_button_cell_darwin.go
- rect_darwin.go
- running_application_darwin.go
- save_panel_darwin.go
- string_darwin.go
- url_darwin.go
- user_defaults_darwin.go
- util_darwin.go
- uttype_darwin.go
- view_darwin.go
- window_darwin.go