Using Objective-C and Cocoa, does anyone know how to get the icon for a user's computer (the one that shows under "Devices" and "Network" in Finder)? Not the harddisk icon, the actual one for a user's device. It ranges from a macbook icon to the mac pro "tower" icon to a Windows blue screen of death monitor icon.
I've tried stuff along the following lines:
NSImage *icon = [[NSWorkspace sharedWorkspace]
iconForFileType: NSFileTypeForHFSTypeCode(kComputerIcon)];
But that just returns the same icon all the time, obviously. I've also tried the iconForFile:
function but I don't know of a file path to use as the parameter. Can anybody point me in the right direction?