Skip to content

macOS menu bar application to eject favorited mounted volumes

License

Notifications You must be signed in to change notification settings

bradleybernard/EjectBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EjectBar

A tiny, lightweight macOS menubar application to eject multiple mounted volumes in one click. Favorite a mounted volume to save it for quick unmounting later.

App Store

Available for free on the App Store for macOS 10.10 (Yosemite) and newer: https://apps.apple.com/us/app/ejectbar/id1264259104?mt=12

Description

The application lives in the macOS menubar and can be shown with a click on the icon to expose the menu for ejecting, showing/hiding the mounted volumes, showing/hiding the favorite volumes, and quitting. The main window for the application shows currently mounted volumes and whether they are saved as favorites, along with the buttons from the menubar.

Technologies

The app uses the Disk Arbitration framework to hook into mount/unmount volume callbacks at a low-level. In addition, the code uses low-level reference management since the DA framework only accepts C function pointers. Lastly, the app uses a class that boxes a callback using generic types Input, Output to create a generic function: (Input) -> Output.

Screenshots

Menu bar Mounted volumes Favorite volumes

Credits

Created by Bradley Bernard with techincal help from the Swift expert Joe Groff!

About

macOS menu bar application to eject favorited mounted volumes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages