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

Re: setting image for person in address book


  • Subject: Re: setting image for person in address book
  • From: Heinrich Giesen <email@hidden>
  • Date: Sat, 19 Jul 2008 14:54:08 +0200


On 19.07.2008, at 13:35, Vijay Kanse wrote:

NSData *imageData = [[NSData alloc]
initWithContentsOfFile:@"file://localhost/volumes/DATA/image/ play.tiff"]
;


I am tracing program and I am not getting any value in imageData.



In your program the parameter of -initWithContentsOfFile: is not a file, it's an URL.
Try to read instead with -initWithContentsOfURL:



-- Heinrich Giesen email@hidden


_______________________________________________

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


  • Follow-Ups:
    • RE: setting image for person in address book
      • From: "Vijay Kanse" <email@hidden>
  • Prev by Date: Re: How to get cursor text from a Mac window
  • Next by Date: Re: NSMutableDictionary autorelease chrashes application
  • Previous by thread: setting image for person in address book
  • Next by thread: RE: setting image for person in address book
  • Index(es):
    • Date
    • Thread