Addressbook api
Addressbook api
- Subject: Addressbook api
- From: Mark Steinberg <email@hidden>
- Date: Thu, 5 Sep 2002 15:55:10 -0400
Does anyone have any examples of adding a property to the addressbook?
This is not the way to do it ;-)
ABPerson *person;
int theInteger = 0;
person = [[ABPerson alloc] init];
NSMutableDictionary *addedProperties = [[NSMutableDictionary alloc]
init];
[addedProperties setObject: kABIntegerProperty forKey:kPMOid];
[ABPerson addPropertiesAndTypes:addedProperties];
[person setValue:theInteger forProperty:kPMOid];
I know this isn't right but I dont' know how to pass kABIntegerProperty
so that it gets added to the dictionary.
I also know that setValue:theInteger isn't right either but if the
dictionary is expecting and integer how can I pass it?
TIA
Mark
--
Mark Steinberg
Textile Technologies LLC
http://www.textiletech.com
_______________________________________________
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.