• 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
Selecting objects, help needed...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Connecting to Database
  • Next by Date: Re: Connecting to Database
  • Previous by thread: Re: Connecting to Database
  • Next by thread: Re: Selecting objects, help needed...
  • Index(es):
    • Date
    • Thread