re:Core Data File Sharing via an AFP Alias
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