On 7/29/07 8:45 PM, "Marcus S. Zarra" <email@hidden> wrote:
This looks like a threading issue.
I don't think so (at least at this time). I've currently fixed it with
Chris's new init method. Though I'm still not sure why it's so much
better.
Your last -init method didn't return self and didn't invoke its
superclass's designated initializer. You were basically allowing
AppleScript to construct a partially-initialized and leaked instance
of your SBSession class as a side-effect of getting at a real
instance; +[NSEntityDescription
insertNewInstanceOfEntity:intoManagedObjectContext:] will return a new
instance, not the same one.
I suspect you were just mistyping or misremembering, and had meant to
use the NSManagedObject designated initializer,