This is a small handler class I use for handling UIManagedDocument and core data.  It is based heavily on an article (and code) written by Justin Driscoll, "Core Data with a Single Shared UIManagedDocument".