Re: Opening arbitrary address books with AddressBook.framework
Re: Opening arbitrary address books with AddressBook.framework
- Subject: Re: Opening arbitrary address books with AddressBook.framework
- From: Brad Peterson <email@hidden>
- Date: Thu, 18 May 2006 16:10:59 -0700 (PDT)
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