case://study-017
macOSProject 017
Click2Minimize
A focused macOS utility that adds the missing behaviour: clicking an app's dock icon minimises all its windows instead of bringing them forward. Swift + AppKit using the macOS Accessibility API. Single-purpose, well under 1k LOC, signed and notarised. Released via the standard menu-bar agent pattern.
Menu-bar agent
Type
PolyForm NC
License
macOS
Category
The Problem
What Wasn't Working
macOS dock-icon clicks bring an app's windows forward; there's no built-in way to make the click minimise them instead. Some workflows want the inverse — "if it's already visible, hide it."
The Solution
How I Fixed It
A menu-bar agent that intercepts dock-icon clicks via the macOS Accessibility API and toggles minimise/restore based on current window state. Signed and notarised for distribution outside the Mac App Store.
Stack
Technologies Used
Swift
AppKit
Cocoa
macOS Accessibility API
Results
Key Outcomes
✓
Single-purpose tool that does exactly one thing well✓
Native AppKit footprint, signed + notarised, published releases