title: Detecting attached USB devices under Mac OSX
body: <p>First of all a statement: I'm a newbie when it comes to programming for the Mac. However I have an assignment which requires USB communication with a device so I thought I'll start with something basic.</p>
  
  <p>I took the code from <a href="https://developer.apple.com/library/mac/samplecode/USBPrivateDataSample/Introduction/Intro.html" rel="noreferrer">here</a>, built it and ran it from the Terminal. It starts up and writes:</p>
  
  <blockquote>
    <p>Looking for devices matching vendor ID=1351 and product ID=8193.</p>
    
    <p>Starting run loop.</p>
  </blockquote>
  
  <p>However after this, if I plug in and out USB devices (I tried: iPod, GPS, mouse) nothing gets written on the screen, although as much as I understand there should be whenever I connect and disconnect a device.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks in advance.</p>