Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Nishad

macrumors newbie
Original poster
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
 
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".
 
diskutil will list unmounted volumes

Run "man diskutil" in Terminal

I don't think there is a public API for this.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.