项目作者: bradleybernard

项目描述 :
macOS menu bar application to eject favorited mounted volumes
高级语言: Swift
项目地址: git://github.com/bradleybernard/EjectBar.git
创建时间: 2017-07-24T08:38:13Z
项目社区:https://github.com/bradleybernard/EjectBar

开源协议:MIT License

下载


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!