title: How to print a NSInteger value from an NSManagedObject using NSLog
body: <p>When I try to print an integer value to the console that is retrieved from an NSManagedObject, it displays a 6 or 8 digit value (the object ID?). However, if I use the debugger 'Print Description to Console' is shows up as the single digit value I expect.</p>
  
  <p>For example, I assign the object 'sequence' to an NSInteger and then display using an NSLog format string:</p>
  
  <pre><code>MyProcess *myProcess = [array objectAtIndex:i];
  NSInteger sequence = [[NSNumber numberWithInteger:(NSInteger)myProcess.sequence] intValue];
  NSLog(@"sequence = %d",myProcess.sequence);
  </code></pre>
  
  <p>Console output is:</p>
  
  <pre><code>2009-10-06 16:11:05.871 MyProcess[33185:20b] sequence = 565256
  </code></pre>
  
  <p>But when I try 'Print to Console' from the debugger, I see the value 1:</p>
  
  <pre><code>&lt;MyStoryImage: 0x3f59a80&gt; (entity: MyObject; id: 0x3f2d540 &lt;x-coredata://FF21959A-  4B67-4587-A25F-66A7B8139DFA/MyProcess/p2&gt; ; data: {
  sequence = 1;
  &lt;x-coredata://FF21959A-4B67-4587-A25F-66A7B8139DFA/MyProcess/p1&gt;;
  })
  </code></pre>
  
  <p>Your help is appreciated!</p>