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: Tue, 29 May 2007 23:42:09 +0200
On 29.05.2007, at 23:19, Arthur C. wrote:
Okay, but then you have to introduce a new NSView subclass...
Yes. You say that as if it was bad?
and how does the responder chain work? Is the mouseclick only
handled when it is outside the graph (sub) views? If not, you need
a lot of additional bookkeeping to determine what to do in all the
cases...
The mouseDown: method only gets called if no subview was hit.
I tried something like [[[self window] contentView]
setNextResponder: self], but that resulted in a circular loop. I
was hoping for a simple solution, but if there is nothing else the
background view looks like the best option.
I don't think clicks get passed up the responder chain like that.
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