Re: Address Book +addPropertiesAndTypes: question
Re: Address Book +addPropertiesAndTypes: question
- Subject: Re: Address Book +addPropertiesAndTypes: question
- From: Henri Lamiraux <email@hidden>
- Date: Wed, 4 Sep 2002 07:38:51 -0700
On Wednesday, September 4, 2002, at 05:32 AM, Matt Gemmell wrote:
When I use +addPropertiesAndTypes: with either ABPerson or ABGroup,
does that mean that my added properties are also added to any records
I create in the future?
For example, if I have two people in my Address Book, and my app adds
some properties to them, then I create a new person, does that person
also have my new properties?
In database term, addPropertiesAndTypes adds a column to the database.
So yes all people (or groups depending on which addProp.... you called)
will have this property. But all values for each existing record will
be nil until you call -setValue:forProperty:
Also, where are my added properties stored? If they're in some plist
or such, entirely separate from the main Address Book database itself,
then that's fine - but if they're written into the main database, then
I presume I'll want to offer the ability to remove those properties
from all records if the user so desires.
AddressBook storage is a database so we have to add new properties to
the db. It would be kind of cumbersome to manipulate new properties if
they were stored outside of the db.
The -removeProperties... API is a no-op in this version of addressbook
(see release notes). This will be fixed in a future release.
Thanks for any thoughts,
-Matt
--
Matt Gemmell
Scotland Software
http://www.scotlandsoftware.com/
_______________________________________________
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.
Henri Lamiraux
Engineering Manager
User Interface Tools Group
Apple
_______________________________________________
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.