title: NSManagedObjectContext how to access _unprocessedInserts field
body: <p><strong><em>Is there a way to find if there are unprocessed inserts on a NSManagedObjectContext??</em></strong></p>
  
  <p>When using the debugger in <em>JetBrains AppCode 3.0</em>  I can browse the field <code>_unprocessedInserts</code></p>
  
  <p>I tried to make a category <strong>NSManagedObjectContext+UnprocessedChanges.m</strong></p>
  
  <pre><code>#import "NSManagedObjectContext+UnprocessedChanges.h"
  
  @implementation NSManagedObjectContext (UnprocessedChanges)
  
  -(int)getUnprocessedChanges {
      return [_unprocessedChanges count];
  }
  -(int)getUnprocessedDeletes {
      return [_unprocessedDeletes count];
  }
  -(int)getUnprocessedInserts {
      return [_unprocessedInserts count];
  }
  @end
  </code></pre>
  
  <p><strong>NSManagedObjectContext+UnprocessedChanges.h</strong></p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  @interface NSManagedObjectContext (UnprocessedChanges)
  -(int)getUnprocessedChanges;
  -(int)getUnprocessedDeletes;
  -(int)getUnprocessedInserts;
  @end
  </code></pre>
  
  <p>But it won't compile.  Any suggestions how to access this variable<img src="https://i.stack.imgur.com/rlWv7.png" alt="enter image description here"></p>