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

Nishad

macrumors newbie
Original poster
Aug 2, 2007
11
0
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
 

Nutter

macrumors 6502
Mar 31, 2005
432
0
London, England
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".
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
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.