Re: How to draw a rectangle around a (graph) view?
Re: How to draw a rectangle around a (graph) view?
- Subject: Re: How to draw a rectangle around a (graph) view?
- From: "Arthur C." <email@hidden>
- Date: Thu, 24 May 2007 23:10:13 +0200
From: "I. Savant" <email@hidden>
To: "Arthur C." <email@hidden>
CC: email@hidden
Subject: Re: How to draw a rectangle around a (graph) view?
Date: Wed, 25 Apr 2007 12:46:46 -0400
On 4/25/07, Arthur C. <email@hidden> wrote:
Question is how to draw the rectangle showing what part is to be captured
(the captureRect).
It is too large to be drawn from within the graphView. But where should it
be done then? I have nothing but an NSWindow and the two graph views. So
should it be done from the NSWindow? But then I would have to subclass the
NSWindow(?)
How about a borderless, transparent window floating above the
capture area whose content view fills with a translucent color (with
an alpha component of 0.2, for example)?
I have implemented this, and it works fine. But now I would like to select
multiple graphs to capture... Using the NSCommandKeyMask in the mouseDown
handler I have added a function to select/deselect multiple graphs.
This works OK, except for the case of a mouseclick inside the app window but
not inside one of the graph views. In this case the selected views should be
deselected, but how do I know when the mouseclick happens? It happens
outside the graph views so it should be handled outside of the graphview
code, right?
If this is not handled correctly, the overlay windows are still present
behind the app window (and become visible when you move the app window
around), and the selection bookkeeping is no longer correct.
Any suggestions?
Thanks for the reply,
Arthur C.
_________________________________________________________________
Live Search, for accurate results! http://www.live.nl
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden