• 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
New Core Data document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New Core Data document


  • Subject: New Core Data document
  • From: Chris Idou <email@hidden>
  • Date: Thu, 11 Sep 2008 21:05:11 -0700 (PDT)

I need to create a new core data document apart from the Core-data based document framework. (*)

I can't pass nil to NSPersistentStoreCoordinator.addPersistentStoreWithType because that is an error.

So how do I create an in-memory document until such time as it is saved and the user is prompted for the file location?

I thought maybe I could create an in-memory core data document and then migrate it to a URL later, but using the debugger, it appears that the normal core-data based document framework does not do that. (Although it does call migrate for a Save-As situation).

This makes me think this is not the way to do it. So how do I create a core data respository when I don't yet know the URL?

It's at times like this I curse Apple for not making their source code visible.


(*) Because my document format is a directory, and the core data component is only part of it.



_______________________________________________

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: Trying to compile an ObjectiveC and C++ program in XCode 3.1
  • Next by Date: Re: GDB Problems
  • Previous by thread: Re: Animate a CGPath
  • Next by thread: Mixing ObjC and C++ STL on same ObjC source file
  • Index(es):
    • Date
    • Thread