title: How to determine the structure of an iOS (id) object?
body: <p>When I call a certain function from my iOS app, it returns an <code>id</code> data type. I can't see into this function so I don't know what it's doing or what the return type really is. </p>
  
  <p>If I print it to console using <code>NSLog("@"...)</code> I get a string similar to this:
  <code>2012-01-18 19:03:08.915 HelloWorld[165:707] Key Press State</code>.</p>
  
  <p>Is there any way for me to determine the structure of this basic Id object? How would I go about getting a specific part of that response out, such as <code>"Key press state"</code>. String parsing seems like a horrible idea, but maybe that's the only way. Perhaps the data really is just an <code>NSString</code>?</p>
  
  <p>Thanks!</p>