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.
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