[ABRecord setValue:forProperty:] with custom property?

  • Hi all,

    my application uses Apple's Address Book framework to store and retrieve
    contact information. Additionally, I need to associate the Wikipedia ID
    of some users to their Address Book entry.

    The problem is that [ABRecord setValue:forProperty:] only allows to set
    values for predefined properties. AFAIK, there no way to define my own
    property for people's Wikipedia IDs?

    In case there is no way (I did not find any), I would either need to
    store the association between Wikipedia ID and Address Book ID
    (kABUIDProperty) or I would need to misuse an Address Book field to
    store the Wikipedia ID (e.g., kABNoteProperty).

    Any way to store a customized field using the AB framework?

    Cheers,
    Claus
  • On Nov 25, 2007, at 9:09 AM, Claus Atzenbeck wrote:

    > Any way to store a customized field using the AB framework?
    >
    Did you read the "Address Book Programming Guide", specifically
    "Adding Properties to Address Book Records"?

    mmalc
  • On Sun, 25 Nov 2007, mmalc Crawford wrote:

    > On Nov 25, 2007, at 9:09 AM, Claus Atzenbeck wrote:
    >
    >> Any way to store a customized field using the AB framework?
    >>
    > Did you read the "Address Book Programming Guide", specifically "Adding
    > Properties to Address Book Records"?

    Yes, in fact I did. Apparently I did not recall it. Thanks for the
    pointer.

    Cheers,
    /CA
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today