Documentation ¶
Overview ¶
+build darwin
Index ¶
- Constants
- func AddStartCallback(c startCallback)
- func AddUrlCallback(c urlCallback)
- func AutoStart(flag bool)
- func BundleIdentifier() string
- func BundlePath() string
- func Log(message string)
- func ShowDialog(message string)
- func ShowFileDialog(title, defaultDirectory string, fileTypes []string, forFiles bool, ...) []string
- func ShowPrompt(message, buttonLabel, altButtonLabel string) int
- func Start()
- func Stop()
Constants ¶
View Source
const ( // NSAlertFirstButtonReturn return value when first button in a prompt is clicked NSAlertFirstButtonReturn = 1000 // NSAlertSecondButtonReturn return value when second buttion in a prompt is clicked NSAlertSecondButtonReturn = 1001 // NSAlertThirdButtonReturn return value when third button in a prompt is clicked NSAlertThirdButtonReturn = 1002 )
Variables ¶
This section is empty.
Functions ¶
func AddStartCallback ¶
func AddStartCallback(c startCallback)
AddStartCallback adds callback function which is called when app starts.
func AddUrlCallback ¶
func AddUrlCallback(c urlCallback)
AddUrlCallback adds a callback which will receive the URL app was started with.
func AutoStart ¶
func AutoStart(flag bool)
AutoStart sets whether app starts automatically at login.
func BundleIdentifier ¶
func BundleIdentifier() string
BundleIdentifier returns this app's bundle identifier in reverse RFC 1034 (e.g. com.bitbucket.djlawhead)
func ShowFileDialog ¶
func ShowFileDialog(title, defaultDirectory string, fileTypes []string, forFiles bool, multiselect bool) []string
ShowFileDialog shows a file-system dialog
func ShowPrompt ¶
ShowPrompt shows a yes/no dialog prompt
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.