macos

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenFilePicker

func OpenFilePicker(initialPath string) ([]string, error)

OpenFilePicker launches the native macOS file picker. It returns a list of selected absolute file paths.

func SetBadge

func SetBadge(count int) error

SetBadge updates the macOS Dock badge count.

Types

type MacOSAppearance

type MacOSAppearance struct {
	DarkMode    bool
	AccentColor string
}

func GetAppearance

func GetAppearance() (*MacOSAppearance, error)

GetAppearance fetches the current macOS appearance (dark mode and accent color).

type MacOSContact

type MacOSContact struct {
	Name   string   `json:"name"`
	Emails []string `json:"emails"`
}

func FetchContacts

func FetchContacts() ([]MacOSContact, error)

FetchContacts calls the macOS Contacts framework via a compiled Swift helper.

Jump to

Keyboard shortcuts

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