• 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
setting image for person in address book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: NSViewController Binding Problem continued
  • Next by Date: Re: how to clear the whole render tree of CALayer fast and safely?
  • Previous by thread: Re: Quick problem with arraycontroller
  • Next by thread: Re: setting image for person in address book
  • Index(es):
    • Date
    • Thread