• 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
How to add a property to the address book?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to add a property to the address book?


  • Subject: How to add a property to the address book?
  • From: email@hidden
  • Date: Mon, 3 Mar 2003 16:58:10 +0000

Hi,
I am trying to add a property to the address book, but so far I have drawn
a blank...

I am trying to use +addPropertiesAndTypes method on ABPerson, but it
requires that type is in a NSDictionary object, but the address book
expects an int (kABStringProperty = 0x2)

NSMutableDictionary *d= [NSMutableDictionary dictionary]
[d setObject:@"kABStringProperty" forKey:
@"com.mycompany.myStringProperty"];
[d setObject:@"kABDateProperty" forKey:@"com.mycompany.myDateProperty"];
[ABPerson addPropertiesAndTypes d];

Can anyone tell me how I would go about doing this, using ints instead of
@"" strings, for kABXXXProperty
Thanks.
John.
_______________________________________________
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: How to add a property to the address book?
      • From: Vince DeMarco <email@hidden>
    • Re: How to add a property to the address book?
      • From: Denis Stanton <email@hidden>
  • Prev by Date: FW: [Newbie] writing plain text to a file
  • Next by Date: Re: automatic web updates
  • Previous by thread: Re: NSPoint. The results. Look at that, Georg!
  • Next by thread: Re: How to add a property to the address book?
  • Index(es):
    • Date
    • Thread