• 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: Opening arbitrary address books with AddressBook.framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening arbitrary address books with AddressBook.framework


  • Subject: Re: Opening arbitrary address books with AddressBook.framework
  • From: Aaron Burghardt <email@hidden>
  • Date: Thu, 18 May 2006 20:42:54 -0400

We considered that option, but didn't like the idea of messing with the user's data. It might be in use by another app, another app may inadvertently open the examine data while we are examining it, and if our app crashes, it would leave the user's address book inaccessible.

Aaron

On May 18, 2006, at 7:10 PM, Brad Peterson wrote:

Hi,

Why not just make a copy of your Address Book data,
then copy over the data to examine, and when done,
replace your Address Book. (All of the Address Book
data is stored off ~/Library/Application Support,
IIRC.)

HTH

--- Aaron Burghardt <email@hidden> wrote:

I am working on a forensics app and want to open
Address Book data
files other than that of the current user.  Using
class-dump on
AddressBook.framework, I found two methods that let
me do what I need:

+ [ABAddressBook setAddressBookDirectory:]
- [ABAddressBook databaseChangedExternally:]

With these, I can set the path to the address book
data file, then
trigger an update on the sharedAddressBook.  This
appears to work
fine in Tiger.

My problem/question is that my app needs to run on
Panther and
setAddressBookDirectory: doesn't exist in Pather's
AddressBook.framework.  I have tried creating a new
instance of
ABAddressBook, but since it creates a singleton, it
won't create
another instance.

Does anyone know of another way to change the
database used by
Panther's AddressBook.framework?

(Also, evidently the database used by Address Book
is http://
www.metakit.com, but I would prefer to use the Cocoa
APIs, if possible).

Thanks,

Aaron

 _______________________________________________
Do not post admin requests to the list. They will be
ignored.
Cocoa-dev mailing list
(email@hidden)
Help/Unsubscribe/Update your Subscription:


This email sent to email@hidden



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: Opening arbitrary address books with AddressBook.framework (From: Brad Peterson <email@hidden>)

  • Prev by Date: Re: Re: Should I retain/release IBOutlet?
  • Next by Date: This CFDictionaryRef casting works, but it's ugly (or, please help me clean up my code!)
  • Previous by thread: Re: Opening arbitrary address books with AddressBook.framework
  • Next by thread: awakeFromNib not called immediatly after initWithWindowNibName
  • Index(es):
    • Date
    • Thread