RE: setting image for person in address book
RE: setting image for person in address book
- Subject: RE: setting image for person in address book
- From: "Vijay Kanse" <email@hidden>
- Date: Mon, 21 Jul 2008 09:10:59 +0530
- Thread-topic: setting image for person in address book
I have Tried initWithContentsOfURL. But I am getting exception.
NSData *imageData = [[NSData alloc] initWithContentOfURL:@"
file://localhost/volumes/DATA/image/
> play.tiff "];
What Might be problem with That ?
Is there any other problem with my code ?
Thank You.
-----Original Message-----
From: Heinrich Giesen [mailto:email@hidden]
Sent: Saturday, July 19, 2008 6:24 PM
To: email@hidden
Cc: Vijay Kanse
Subject: Re: setting image for person in address book
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