IKImageView in mode IKToolModeCrop issue
IKImageView in mode IKToolModeCrop issue
- Subject: IKImageView in mode IKToolModeCrop issue
- From: Janusz Sidor <email@hidden>
- Date: Tue, 8 Jul 2008 23:08:54 +0200
Hi,
I have problem with IKImageView in mode IKToolModeCrop.
In documentation there is written:
"The selection and crop tools copy the selected areas to the
pasteboard"
So I implemented accessing pasteboard, but after crop operation, or
selection, pasteboard is still empty.
Maybe I'm accesing wrong pasteboard? Here is my code for pasteboard:
NSPasteboard *pb = [NSPasteboard generalPasteboard];
NSArray *pasteTypes = [NSArray arrayWithObjects:
NSTIFFPboardType, NSPICTPboardType, nil];
NSString *bestType = [pb availableTypeFromArray:pasteTypes];
if (bestType != nil)
{
NSData *data = [pb dataForType:bestType];
}
In documentation there is nothing more about that, and google gives
nothing.
I really don't know what to do and I'll be very appreciated for any
advice.
Kindly regards.
_______________________________________________
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