How to add a property to the address book?
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.