Hi, you might want to try the following document:
http://developer.apple.com/documentation/UserExperience/Conceptual/AddressBook/AddressBook.pdf

Good luck,

-Conrad

On Thu, Jul 17, 2008 at 10:56 PM, Vijay Kanse <[EMAIL PROTECTED]>
wrote:

> Hello,
> I want to add group and members to group in address book.
> I have done the following things.
> ABAddressBook*book = [ABAddressBook SharedAddressBook];
> ABPerson *person;
> ABGroup *group = [[[ABGroup alloc] init] autorelease];
> [group setValue:@"friend" forProperty:kABGroupNameProperty];
> person = [[[ABPerson alloc] init] autorelease];
>
> [person setValue:@"john" forProperty:kABFirstNameProperty];
> [person setValue:@"ejks' forProperty:kABLastNameProperty];
>
> [book addRecord: person];
>
> [group addMember: person];
>
> [book addRecord:group];
>
> [book save];
>
> I am not getting the group in address book. addMember and addRecord are
> returning value true.
> can anyone tell me what is the problem?
>
> _______________________________________________
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/conradwt%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to