Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to draw a rectangle around a (graph) view?




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: How to draw a rectangle around a (graph) view? (From: "Arthur C." <email@hidden>)
 >Re: How to draw a rectangle around a (graph) view? (From: "I. Savant" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.