• 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 File Sharing via an AFP Alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re:Core Data File Sharing via an AFP Alias


  • Subject: re:Core Data File Sharing via an AFP Alias
  • From: Ben Trumbull <email@hidden>
  • Date: Sat, 16 Jun 2007 14:12:23 -0700

My Core Data app is running on two computers. One one, the app accesses the database file directly on its internal hard drive. On the second computer, the app accesses the database via an alias to the remote file over AFP.

Core Data and SQLite rely on file locking (Posix style fcntl() for most file systems). Consequently, all access to the database must go through the *same* file system. What you've described will absolutely not work. The first app is using HFS+ to do the locking and the second app is going through the AFP system.


Both computers must access the file through AFP, on 10.4.9 or later. Have the first computer access the local file through an AFP mount instead of directly.

- Ben

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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 File Sharing via an AFP Alias
      • From: Steve Steinitz <email@hidden>
  • Prev by Date: Re: NSImageWell - missing in action?
  • Next by Date: re: Concerns about changing NSManagedObjectContext
  • Previous by thread: Core Data File Sharing via an AFP Alias
  • Next by thread: re:Core Data File Sharing via an AFP Alias
  • Index(es):
    • Date
    • Thread