I Encrypted the images using AES algorithm. when I used this images in IKImageBrowserView
it display images correctly but I can't able to drag and drop images to Pasteboard.
I had set image representation to IKImageBrowserView
Image Object like this
- (NSString *) imageRepresentationType
{
return IKImageBrowserNSDataRepresentationType;
}
- (id) imageRepresentation
{
return [[NSData dataWithContentsOfFile:path]decryptWithString:PASS];
}
but its work when I give like this
- (NSString *) imageRepresentationType
{
return IKImageBrowserPathRepresentationType;
}
- (id) imageRepresentation
{
return path;
}
The above code is working because when I drag images from IKImageBrowserView
it will return
path of the image.
Now what I need to do for drag and drop Encrypted images in IKImageBrowserView
to Pasteboard.