• 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: Enumerating Address Book properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Enumerating Address Book properties
      • From: Denis Stanton <email@hidden>
References: 
 >Enumerating Address Book properties (From: Denis Stanton <email@hidden>)

  • Prev by Date: Enumerating Address Book properties
  • Next by Date: tools for finding a bug?
  • Previous by thread: Enumerating Address Book properties
  • Next by thread: Re: Enumerating Address Book properties
  • Index(es):
    • Date
    • Thread