title: NSRange output of location and length
body: <p>An issue I have (maybe it is really easy to solve, but I am new to Obj-C.
  I want to print out the location and length of NSRange I created, but I get an error message. Here the code</p>
  
  <pre><code>NSRange tmpRange = [newData rangeOfData:segmentToFind options:kNilOptions range:NSMakeRange(0u, [newData length])];
  
  NSLog(@"%@ - range location : %lu", [tmpRange location];
  </code></pre>
  
  <p>The error message I get is:</p>
  
  <pre><code>Bad receiver type 'NSRange' (aka 'struct _NSRange')
  </code></pre>