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

naveen

macrumors member
Original poster
Oct 27, 2004
43
0
Hi all

I want to get the hard disks attched to system. Currently i am get the hard disks from the /dev/disk*. Is there any system API for getting the hard disks attached to my system.
How i can use the IOKit for this purpose.


Thanks and Regards
 

caveman_uk

Guest
Feb 17, 2003
2,390
1
Hitchin, Herts, UK
You can use NSWorkspace to get the mounted volumes though that isn't the same as the mounted physical drives. You can also use NSWorkspaces notifications to tell you when volumes are mounted and unmounted.

I presume you want the physical drive? In that case I don't know but there maybe useful info in the 'MoreIsBetter' example code - there's a scetion called 'MoreDisks' link
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.