• 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
IKImageView in mode IKToolModeCrop issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Working with Paragraphs in Core Text
  • Next by Date: Re: Removing folder from /Applications
  • Previous by thread: Re: Working with Paragraphs in Core Text
  • Next by thread: Re: NSTableView and CoreAnimation
  • Index(es):
    • Date
    • Thread