• 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
Re: How to draw a rectangle around a (graph) view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: NSArray lookup, pointer comparison
  • Next by Date: Bindings on custom objects
  • Previous by thread: Re: How to draw a rectangle around a (graph) view?
  • Next by thread: Re: How to draw a rectangle around a (graph) view?
  • Index(es):
    • Date
    • Thread