Re: Enumerating Address Book properties
Re: Enumerating Address Book properties
- Subject: Re: Enumerating Address Book properties
- From: Tito Ciuro <email@hidden>
- Date: Sat, 22 Feb 2003 09:24:54 +0100
Hello,
On Saturday, February 22, 2003, at 08:32 AM, Denis Stanton wrote:
Can anyone tell me if there is a way to obtain the properties of an
Address Book entry? Address Books contain People and Group records
where ABPeople and ABGroup are each subclasses of ABRecord. ABRecords
have properties, like First Name or Telephone Number.
I want to get a list of all the properties that a given person has
values for.
You can retrieve *all* properties for a person with:
+ (NSArray *)properties;
Then, you can obtain the value for each property with ABRecord's:
- (id)valueForProperty:(NSString *)property
If the value isn't set, nil will be returned. Just keep the non-nil
values and you're set.
-- Tito
_______________________________________________
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.