• 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
Untitled NSPersistentDocument has no persistent store
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Untitled NSPersistentDocument has no persistent store


  • Subject: Untitled NSPersistentDocument has no persistent store
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 2 Apr 2008 01:42:46 -0700

It appears that a new (unsaved) NSPersistentDocument has no persistent store associated with it.

AFAICT, this makes it impossible to fault out any objects until the document is saved (there's nowhere to fault them back in from later). This effectively means it's impossible to put a lot of data into the document until after it's saved once -- until it's saved, all data has to be held in memory by the managed object context, and there just isn't enough memory.

Am I missing something here?. There seems to be nothing in the Core Data documentation that discusses memory management in an unsaved document. Forcing the user to save a document *before* putting things in it turns a very well established UI behavior on its head

(What I'm actually trying to do is import a lot of data from an external source into a new Core Data document. The smallest import is a couple of hundred MB. Larger imports could be several GB. Trying to use virtual memory to "cache" that much data will quickly bring a machine to its knees.)


_______________________________________________

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


  • Follow-Ups:
    • Re: Untitled NSPersistentDocument has no persistent store
      • From: Ian Jackson <email@hidden>
  • Prev by Date: Re: [NSPipe pipe] returning nil (running out of filehandles?)
  • Next by Date: to-Some Relationship (Core Data/IB questions)
  • Previous by thread: Re: Modifying the clip view before scrolling.
  • Next by thread: Re: Untitled NSPersistentDocument has no persistent store
  • Index(es):
    • Date
    • Thread