title: Accessing a NSManagedObject causes EXC_BAD_ACCESS
body: <p><strong>Update: Tidied up question and made it a bit clearer</strong></p>
  
  <p>I am getting <code>EXC_BAD_ACCESS</code> crashes on a <code>NSManagedObject</code>.</p>
  
  <p>I have a <code>Sentence</code> managed object that I pass to a modal view (<code>addStoryItem</code>) like so:</p>
  
  <pre><code>addStoryItem.sentence = (Sentence*)[fetchedResultsController objectAtIndexPath:indexPath];
  </code></pre>
  
  <p><code>AddStoryItem</code> is set to retain <code>Sentence</code>:</p>
  
  <pre><code>@property (retain) Sentence *sentence;
  </code></pre>
  
  <p>Sometimes the user needs to do something that shows another modal (on top of <code>addStoryItem</code>) - which doesn't affect this object, but it does take a copy of a NSMutableSet - <code>sentence.audiosets</code> </p>
  
  <p>If I they do view this modal I get an <code>EXC_BAD_ACCESS</code> whenever I try to access or set the sentence object or its properties, once the user is returned to addStoryItem</p>
  
  <ul>
  <li>There is a current managed object context &amp; fetched results controller</li>
  <li>everything works fine unless I show that modal view controller (which, afaik, doesn't have anything to do with the sentence object)</li>
  <li>Zombies is on, but it doesn't tell me anything (BRAINS?)</li>
  </ul>
  
  <p>Here's a simple summary of what goes on:</p>
  
  <ul>
  <li>user selects row in tableview</li>
  <li>I get object from table and set the modal's sentence property then display the modal with the fetchedResultsController</li>
  <li>I display a string, image and set a nsset from the sentence to ui aspects of the modal</li>
  <li>if the user needs to modify the nsset they display another modal, with a copy of the first nsset (which doesn't change or access the sentence object)</li>
  <li>if I try to set a property in the sentence after closing the 2nd modal (or NSLOG sentence) - <code>EXC_BAD_ACCESS</code>. </li>
  </ul>
  
  <p><strong>As far as I'm concerned I own sentence</strong>. Other properties of addStoryItem are still hanging around in memory - but sentence isn't there when I try to get to it. Yes, I release sentence in addStoryItem's dealloc - but that's not being called (I have a log statement in there). </p>
  
  <p>Can you help? Happy to provide more code or info. Pretty frustrated! </p>