• 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
Tracking Rectangles for feedback on graphic elements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tracking Rectangles for feedback on graphic elements


  • Subject: Tracking Rectangles for feedback on graphic elements
  • From: Ian Jackson <email@hidden>
  • Date: Wed, 1 Mar 2006 21:08:11 +1300

Hi all,

Are tracking rectangles useful for providing feedback when the mouse hovers over a handle on a graphic element such as the end of a line? I'm wanting to make my lines selectable, and be able to grab one end and drag it and so on (all the usual things you'd expect to do with a line). So I want to have a square appear when you hover over the end of the line to give the suggestion that you can grab it.
At first glance it looks like tracking rectangles could be useful here, but then the owner of the tracking rectangle has to be able to receive mouseEntered events, and you have to update the tracking rectangle every time the view changes within the window. Fine for a few, but if you've drawn a whole load of lines, each with a tracking rectangle at each end and in the middle, it'll have to cycle through them all every time there's a change. I'd like it if the line itself could own the rectangle too, so that it was automatically obvious what line the tracking rectangle corresponded to, but of course the rectangle still has to have relevance in the context of the view.


Am I barking up the wrong tree here and would I be better off writing this sort of thing myself?

Ian.
_______________________________________________
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


  • Next by Date: Sorting using NSOutlineView, NSTreeController and NSArray / NSMutableArray
  • Next by thread: Sorting using NSOutlineView, NSTreeController and NSArray / NSMutableArray
  • Index(es):
    • Date
    • Thread