How keepcoolch/smbmounter works
SMBMounter is a macOS menu-bar app for configuring and managing SMB and WebDAV network shares. Users add a target and credentials, then connect manually or rely on auto-mount and reconnect; the app resolves and preflights hosts, asks Finder to mount, verifies mounted volumes, and reflects status in its UI. ShareManager coordinates these stages, persistence, and monitoring. The manager excerpt is partial, so some documented capabilities are shown at its source path without asserting unsampled internal call details.
Main entry points: ShareManager.swift Share manager · ContentView.swift Share overview · AppDelegate.swift App lifecycle · ShareEditView.swift Share editor
Components 17
Menu Bar Interface
- App lifecycle
SMBMounter/AppDelegate.swift - Share overview
SMBMounter/ContentView.swift - Share editor
SMBMounter/ShareEditView.swift - Share status row
SMBMounter/ShareRowView.swift
Connection Lifecycle
- Share manager
SMBMounter/ShareManager.swift - Host preflight
SMBMounter/ShareManager.swift - Mount and retry
SMBMounter/ShareManager.swift - Mount verification
SMBMounter/ShareManager.swift
Share State
- Share model
SMBMounter/SMBShare.swift - Credential Keychain
SMBMounter/KeychainHelper.swift - Saved shares
Other components
- Mac user
- Network and Bonjour
- Finder mount
- Mounted volumes
- macOS notifications
- Finder workspace
Connections 21
- Mac user → App lifecycle: launches
- App lifecycle → Share manager: starts monitoring
- App lifecycle → Share overview: presents
- Mac user → Share overview: manages shares
- Share overview → Share editor: opens editor
- Share editor → Share manager: saves changes
- Share overview → Share manager: connects or disconnects
- Share overview → Share status row: displays
- Share status row → Share manager: requests mount action
- Share manager → Share model: updates share state
- Share manager → Saved shares: loads and saves
- Share editor → Credential Keychain: reads saved password
- Share manager → Credential Keychain: stores credentials
- Share manager → Host preflight: resolves and preflights
- Host preflight → Network and Bonjour: probes host
- Share manager → Mount and retry: starts mount flow
- Mount and retry → Finder mount: mounts via URL
- Share manager → Mount verification: checks mount status
- Mount verification → Mounted volumes: examines mounted volumes
- Share manager → macOS notifications: sends connection notices
- Share overview → Finder workspace: opens mount point