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: Uli Kusterer <email@hidden>
- Date: Sun, 27 May 2007 15:43:13 +0200
On 24.05.2007, at 23:16, I. Savant wrote:
On 5/24/07, Arthur C. <email@hidden> wrote:
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?
Why not forward the event along to your graph views, converting
coordinates as necessary?
I think a cleaner solution would be to just embed all the views in a
"background view" that implements mouseDown: and on a click loops
over its subviews, telling them to unselect.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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