• 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
Re: Core Data concurrency during import of folder contents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data concurrency during import of folder contents


  • Subject: Re: Core Data concurrency during import of folder contents
  • From: Steve Mills <email@hidden>
  • Date: Tue, 03 Feb 2015 10:02:54 -0600

On Feb 3, 2015, at 06:51:35, Dave Fernandes <email@hidden> wrote:
>
> NSPersistentDocument is not designed to work with “modern” features like private queue MOCs. So I expect you are going to be playing whack-a-mole if you go this route. I just switched to Mike Abdullah’s BSManagedDocument. It is like UIManagedDocument, but for OS X. If you don’t have any customers on this app yet, BSManagedDocument is pretty much a drop-in replacement for NSPersistentDocument. If you have customers, you will need to migrate them, but that is straightforward and probably much lower risk than trying to get NSPersistentDocument to support something it is not designed for.

That's interesting. Too bad it always saves as a package, but it gives me something to work with. This is a new app. Actually, a new Cocoa version of an old app, so it has no users really. The old version saved a package, but I was hoping to get away from that with this version, but I guess as long as it's already saving a package…

I was able to base my document class on BSManagedDocument, created a temp private context for concurrently adding large amounts of objects to it, and it did not block the main thread. Thanks! Now I can get on with actually doing the rest of the app!

--
Steve Mills
Drummer, Mac geek


_______________________________________________

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: Core Data concurrency during import of folder contents
      • From: Jerry Krinock <email@hidden>
References: 
 >Re: Core Data concurrency during import of folder contents (From: Steve Mills <email@hidden>)
 >Re: Core Data concurrency during import of folder contents (From: Roland King <email@hidden>)
 >Re: Core Data concurrency during import of folder contents (From: Steve Mills <email@hidden>)
 >Re: Core Data concurrency during import of folder contents (From: Dave Fernandes <email@hidden>)

  • Prev by Date: Re: Core Data concurrency during import of folder contents
  • Next by Date: Re: Core Data concurrency during import of folder contents
  • Previous by thread: Re: Core Data concurrency during import of folder contents
  • Next by thread: Re: Core Data concurrency during import of folder contents
  • Index(es):
    • Date
    • Thread