• 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: Shared CoreData DataModel and DB file..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shared CoreData DataModel and DB file..


  • Subject: Re: Shared CoreData DataModel and DB file..
  • From: Robert Monaghan <email@hidden>
  • Date: Mon, 28 Dec 2009 10:19:44 -0800

Nice! I suspected as much.

So, I should implement a file lock mechanism, as well, then. I have every reason to believe that people would use the database file over a network filesystem.

bob..


On Dec 28, 2009, at 10:09 AM, Mike Abdullah wrote:

> Yes. If you use the SQLite store, it automatically uses filesystem locking. Indeed, that is how CalendarStore and AddressBook operate under the hood these days I believe.
>
> The major caveat is that the locking doesn't work if the file is accessed from two different filesystems. i.e. a local file which another machine is also trying to access over the network at the same time.
>
> Mike.
>
> On 28 Dec 2009, at 17:50, Robert Monaghan wrote:
>
>> Is it possible to share a DataModel and resulting db file between 2 apps?
>> If so, what sort of pitfalls are present?
>>
>> I want to create an App that creates the DB file, and a plugin for another App, that reads the database file.
>>
>> Thanks!
>>
>> bob..
>>
>> _______________________________________________
>>
>> 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
>

_______________________________________________

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: Shared CoreData DataModel and DB file..
      • From: Mike Abdullah <email@hidden>
References: 
 >Shared CoreData DataModel and DB file.. (From: Robert Monaghan <email@hidden>)
 >Re: Shared CoreData DataModel and DB file.. (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Shared CoreData DataModel and DB file..
  • Next by Date: Re: Shared CoreData DataModel and DB file..
  • Previous by thread: Re: Shared CoreData DataModel and DB file..
  • Next by thread: Re: Shared CoreData DataModel and DB file..
  • Index(es):
    • Date
    • Thread