title: Detect when a volume is mounted on OS X
body: <p>I have an OS X application that needs to respond to a volume being mounted or unmounted. </p>
  
  <p>I've already solved this problem by retrieving the list of volumes periodically and checking for changes, but I'd like to know if there is a better way.</p>