title: How do I get the icon of the user's Mac?
body: <p>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 icon to a Windows blue screen of death monitor icon.</p>
  
  <p>I've tried stuff along the following lines:</p>
  
  <pre><code>NSImage *icon = [[NSWorkspace sharedWorkspace] 
                    iconForFileType: NSFileTypeForHFSTypeCode(kComputerIcon)];
  </code></pre>
  
  <p>But that just returns the same icon all the time, obviously. I've also tried the <code>iconForFile:</code> method but I don't know of a file path to use as the parameter. Can anybody point me in the right direction?</p>