Re: Mouse tracking & selection in composite view
Re: Mouse tracking & selection in composite view
- Subject: Re: Mouse tracking & selection in composite view
- From: Matt Neuburg <email@hidden>
- Date: Sat, 04 Nov 2006 07:04:12 -0800
- Thread-topic: Mouse tracking & selection in composite view
On Fri, 03 Nov 2006 10:01:29 -0700, Scott Ribe <email@hidden>
said:
>I have a custom view, which contains 3 NSScrollViews, which each have a
>different custom view as their document views, all using custom cells.
>Display of this complex thing is working great, and was surprisingly easy.
>
>Now, I'm trying to figure out how to implement mouse tracking and selection
>(including drag-selecting multiple cells, including auto-scrolling). Uhm?
>Hit test and mouse down method calls get through to the document views, but
>tracking methods on the cells do not get called, so what next? Do I now need
>to override mouseDown: in the document views and do all the tracking myself
>(including, I'm sure, figuring out some subtle details), or am I missing
>something simpler?
Tracking methods in cells never just "get called" - a cell is always hosted
in some view that is responsible for doing the calling. A cell is not a
responder; it has no mouseDown event. That is the whole point of a cell:
it's a lightweight class that views (especially controls) can use to
implement certain very common functionality for what goes in a rectangular
area of a control. So basically the answer would seem to be: No, you're not
missing anything. They are your cells and they are in your custom views, so
it is up to your custom views to manage them. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden