• 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: To use ABPerson or not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: To use ABPerson or not?


  • Subject: Re: To use ABPerson or not?
  • From: cauri <email@hidden>
  • Date: Tue, 16 Mar 2004 04:10:41 +0100

Stefan,
Thank you. I will use what you suggest. I guess the best way to keep the backup up to date is to rewrite it on save or quit. Does any kind of programming standard exist as to when to do this sort of thing?

cauri

On Mar 16, 2004, at 4:02, Stefan Pantke wrote:

Cauri,

since each AB record is uniquely identified, there is in fact no need
to store the records inside your application.

How about storing the unique IDs inside your app and reference
the real data using the IDs.

On the other side, it might be interesting to keep a backup of
all records in your local db, just in case some records get removed
from AB. Then, you could inform the user and ask or the correct reaction:

- Recreate again from your internal backup
- Remove in your internal db as well

Speaking of efficiency, using some extra disk space should be no problem,
since our app has some extra functionality and your user some extra
benefit.

Stefan

Am 16.03.2004 um 03:39 schrieb cauri:

Newbie trying to figure it out.

I have begun design of a cocoa application that will reference os x address book records as part of its funtionality. I worry however, that someone may erase a record in the address book program for example and my app will have a blank space. How do I solve this? Do I create a custom subclass of ABPerson and copy the data of the person the user wants into this custom subclass, write it to disk and then use some form of notification to keep the data synchronised? I'm a little confused, what is the most efficient way to do this?

cauri
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >To use ABPerson or not? (From: cauri <email@hidden>)
 >Re: To use ABPerson or not? (From: Stefan Pantke <email@hidden>)

  • Prev by Date: Re: Using NSSavepanel to init and allow <ok>
  • Next by Date: Two ABPerson questions (about -copy and -setImageData/-vCardRepresentation)
  • Previous by thread: Re: To use ABPerson or not?
  • Next by thread: Binding options
  • Index(es):
    • Date
    • Thread