• 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
Draggable selection inside an (NS)image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: manually populating an NSTreeController
  • Next by Date: [SOLVED] Re: Character at point during perform drag
  • Previous by thread: Re: manually populating an NSTreeController
  • Next by thread: RAW image format support in NSImage
  • Index(es):
    • Date
    • Thread