Another IKImageView question: Copying a region
Another IKImageView question: Copying a region
- Subject: Another IKImageView question: Copying a region
- From: Brian Postow <email@hidden>
- Date: Tue, 23 Mar 2010 09:45:02 -0400
I'm not sure if ImageKit is more correctly a cocoa thing, or a Quartz thing, so I'm asking this in both places. Sorry for the duplicate, If the question is inappropriate in one or the other list let me know and, well I guess I can't delete from a mailing, list, but I won't send more ImageKit questions I guess...
I'm trying to use the select and copy feature of the IKImageView. If all you want to do is have an app with an image, select a portion and copy it to the clipboard, it's easy. You set the copy menu pick to the first responder's copy:(id) method and magically everything works.
However, if you want something more complicated, like you want to copy as part of some other operation, I can't seem to find the method to do this.
IKImageView doesn't seem to have a copy method, it doesn't seem to have a method that will even tell you the selected rectangle!
I have gone through Hillegass' book, so I understand how the clipboard works, just not how to get the portion of the image out of the view...
Now, I'm starting to think that I made a mistake in basing my project on IKImageView, but it's what Preview is built on (or so I've read), so I figured it had to be stable... and anyway, now it's too late, I'm too deep in this to start over...
So, other than not using IKImageView, any suggestions on how to copy the select region to the clipboard manually?
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
_______________________________________________
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