Opening arbitrary address books with AddressBook.framework
Opening arbitrary address books with AddressBook.framework
- Subject: Opening arbitrary address books with AddressBook.framework
- From: Aaron Burghardt <email@hidden>
- Date: Thu, 18 May 2006 08:35:10 -0400
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