Selecting objects, help needed...
Selecting objects, help needed...
- Subject: Selecting objects, help needed...
- From: "Stephan" <email@hidden>
- Date: Mon, 13 Aug 2001 18:10:23 +0200
Hello,
I have a problem with the drawing of a selection rectangle.
I have an NSView with subviews in it,
the subviews happen to be selectable objects.
When I drag the mouse around, I would like to be able to draw a selection
rectangle above everything. Problem is that I have no control (AFAIK) on the
order things are drawn so if i put my drawing function in the container, I end
up with the subviews being drawn above my selection rectangle, which is not
good... And I can't check on each selected item to see if it intersects the
border of my selection rectangle and draw a line over itself, that's simply
not efficient at all (I can have quite a large number of [nested] subviews...
How have you guys (and ladies?) managed to do this kind of thing?
I really need help on this (as well as 'how to create a (NSImage) transparent
representation of a view and all its subviews', as well as a the zoom problem
described in the mail "zooming in an NSView" I sent Aug 12, 2001).
Thanks for the help,
Stephan