How tombonez/notunes works
noTunes is a macOS menu-bar app that blocks iTunes and Apple Music from opening. At launch, it sets up the status-bar control, optionally hides the icon from saved preferences, terminates any already-running target apps, and observes future application launches. The enabled state blocks targets; an optional replacement setting launches another app or URL through macOS open. The implementation is concentrated in one sampled source file, so the nodes distinguish its responsibilities rather than implying separate modules.
Main entry points: AppDelegate.swift noTunes App Delegate
Components 11
Menu Bar Controls
- noTunes App Delegate
noTunes/AppDelegate.swift - Status Bar Control
noTunes/AppDelegate.swift - Saved Preferences
noTunes/AppDelegate.swift
Launch Blocking
- macOS Workspace
- Launch Observer
noTunes/AppDelegate.swift - Running App Check
noTunes/AppDelegate.swift - iTunes and Music
Replacement Launch
- Replacement Handler
noTunes/AppDelegate.swift - macOS open Service
- Configured Replacement
Other components
- User
Connections 13
- User → Status Bar Control: clicks
README.md - noTunes App Delegate → Status Bar Control: configures
noTunes/AppDelegate.swift - noTunes App Delegate → Saved Preferences: reads
noTunes/AppDelegate.swift - noTunes App Delegate → Running App Check: checks at launch
noTunes/AppDelegate.swift - noTunes App Delegate → Launch Observer: registers
noTunes/AppDelegate.swift - Status Bar Control → Running App Check: toggles blocking
noTunes/AppDelegate.swift - Launch Observer → macOS Workspace: observes launches
noTunes/AppDelegate.swift - Launch Observer → iTunes and Music: terminates targets
noTunes/AppDelegate.swift - Launch Observer → Replacement Handler: invokes on target
noTunes/AppDelegate.swift - Running App Check → iTunes and Music: terminates running
noTunes/AppDelegate.swift - Replacement Handler → Saved Preferences: reads replacement
noTunes/AppDelegate.swift - Replacement Handler → macOS open Service: launches via
noTunes/AppDelegate.swift - macOS open Service → Configured Replacement: opens