detecting unmounted devices on mac

Discussion in 'Mac Programming' started by Nishad, Sep 20, 2007.

  1. Nishad macrumors newbie

    Joined:
    Aug 2, 2007
    #1
    hi all,

    i am working on cocoa - objective c. i want to detect unmounted devices on mac programmatically OR where the informations about the unmounted devices will be stored. if any one know about these please share.

    with thanks and regards

    Nishad
     
  2. Nutter macrumors 6502

    Joined:
    Mar 31, 2005
    Location:
    London, England
    #2
    NSWorkspace

    You want to register for the notification "NSWorkspaceDidUnmountNotification".

    ... I'm assuming that you meant "devices which are being unmounted", rather than "devices which never get mounted in the first place".
     
  3. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #3
    diskutil will list unmounted volumes

    Run "man diskutil" in Terminal

    I don't think there is a public API for this.
     

Share This Page