• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSPersistentDocument Revert Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPersistentDocument Revert Question


  • Subject: NSPersistentDocument Revert Question
  • From: Mike Burns <email@hidden>
  • Date: Wed, 26 Mar 2008 18:47:32 -0400

Hello list,

I'm having trouble tracking down what I would think to be a simple answer for a simple question:

In my NSPersistentDocument based application (10.4), selecting 'revert' from the file menu creates new window controllers (I assume it is just re-opening the original document), but it doesn't deallocate the old window controllers from the document that was edited pre-revert. This creates a ton of "'entityForName' could not locate an NSManagedObjectModel" error's due to the fact that the document these window controllers were retained in no longer exists. Am I doing something strange or do I need to manually deallocate my window controllers in my NSPersitentDocuments' revert override?

Thanks,
Mike
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Changing the line height of an NSTextField?
  • Next by Date: Re: Changing the line height of an NSTextField?
  • Previous by thread: Re: How to get current renderer for an NSOpenGLView?
  • Next by thread: re: NSPersistentDocument Revert Question
  • Index(es):
    • Date
    • Thread