Please don't cross-post. You've already posted this to quartz-dev. --Kyle Sluder [not the moderator]
On Tue, Mar 23, 2010 at 6:45 AM, Brian Postow <brian.pos...@acordex.com> wrote: > 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 (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/kyle.sluder%40gmail.com > > This email sent to kyle.slu...@gmail.com > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com