setting image for person in address book
setting image for person in address book
- Subject: setting image for person in address book
- From: "Vijay Kanse" <email@hidden>
- Date: Sat, 19 Jul 2008 15:10:37 +0530
- Thread-topic: setting image for person in address book
Hello,
I want to add the image with person in address book.
I am Trying with the following code.
NSData *imageData = [[NSData alloc]
initWithContentsOfFile:@"file://localhost/volumes/DATA/image/play.tiff"]
;
ABAddressBook *ab = [ABAddressBook sharedAddressBook];
ABPerson *person =[ [[ABPerson alloc] init] autorelease];
...seting first and lastName;
[person setImageData:imageData];
[ab addRecord:person];
[ab save];
I am tracing program and I am not getting any value in imageData.
Can anyone tell me what is wrong with that code? Or How to set the image
for person ?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden