• 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 Multiuser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Multiuser


  • Subject: Re: Core Data Multiuser
  • From: Keary Suska <email@hidden>
  • Date: Tue, 09 Oct 2012 08:57:38 -0600

On Oct 8, 2012, at 9:54 PM, Flavio Donadio wrote:

> The interface will be like in Address Book: the user opens a card/record for viewing, but has to click an "Edit" button to make changes. If the record is locked, the user will get an alert when he/she clicks the button. I need:
>
> 1. A mechanism to avoid users opening records for editing and leaving them open "forever" (timer?);

This is not an easy problem, although I would say it is more of a business logic issue than a technical one. Namely, what would be the uncommitted data policy? Discard all changes? Or commit with a discard fallback (in case of validation errors)?
Both approaches could lead to data integrity and customer service issues, depending on the business logic.

In my most recent project I opted for  a "social" approach: when locks are made they are "forever", but when another user tries to edit the locked row the app tells them the user that locked the record, which (hopefully) provides some action of recourse, and avoids the pitfalls I mention above.

> 2. Some kind of feedback for the users when a record is unlocked, without having to refresh manually.

It shouldn't be onerous to implement a lightweight notification system--just spin off a worker thread that handles it.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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 Multiuser
      • From: Flavio Donadio <email@hidden>
References: 
 >Re: Core Data Multiuser (From: Flavio Donadio <email@hidden>)
 >Re: Core Data Multiuser (From: Alex Zavatone <email@hidden>)
 >Re: Core Data Multiuser (From: Flavio Donadio <email@hidden>)

  • Prev by Date: Re: Core Data Multiuser
  • Next by Date: Re: Core Data Multiuser
  • Previous by thread: Re: Core Data Multiuser
  • Next by thread: Re: Core Data Multiuser
  • Index(es):
    • Date
    • Thread