Draggable selection inside an (NS)image
Draggable selection inside an (NS)image
- Subject: Draggable selection inside an (NS)image
- From: goessly <email@hidden>
- Date: Tue, 14 Mar 2006 19:40:07 +0100
I'd like to overlay an NSImageView with a draggable rectangle, meaning:
An NSImage is loaded into an NSImageView. What I need now, is to
display a "rectangle"ish object over the loaded picture – without
rendering it into it – satisfying the following requirements:
1) the top-left, top-right, etc. corners of the rectangle are to be
created as draggable dots, within the borders of the image. Every
corner can be moved individually, meaning: the right angles the
rectangle starts out with are not supposed to be maintained.
2) neighboring dots are interconnected by thin, colored lines. Those
have to be refreshed while dragging a dot.
3) each dot's position is to be passed to an IBAction, triggered by
an NSButton. Those coordinates need to be in image-coordinates, not
the screen-coordinates, since the loaded image is displayed
proportionally scaled in relation to the size of the NSImageView.
Any ideas as to how I could implement a draggableDot–class as
described above?
Kind regards,
goessly
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden