On 20 Jul '08, at 9:09 PM, Vijay Kanse wrote:
I am getting the Image set for the Person.
I was Missing to write [NSURL URLWithString@"url path"].
But it's easier just to use -initWithContentsOfFile:, as you were
originally doing. Your mistake was that the string contained a file:
URL, not
cocoa-dev@lists.apple.com
Subject: Re: setting image for person in address book
On Sun, Jul 20, 2008 at 11:40 PM, Vijay Kanse <[EMAIL PROTECTED]>
wrote:
> I have Tried initWithContentsOfURL. But I am getting exception.
It's -initWithContentsOfURL, not -initWithContentOfURL: as you
On Sun, Jul 20, 2008 at 11:40 PM, Vijay Kanse <[EMAIL PROTECTED]> wrote:
> I have Tried initWithContentsOfURL. But I am getting exception.
It's -initWithContentsOfURL, not -initWithContentOfURL: as your code
seems to indicate. And in the future, if you are getting errors or
exceptions, you need t
ginal Message-
From: Heinrich Giesen [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 19, 2008 6:24 PM
To: cocoa-dev@lists.apple.com
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]
> ini
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 no