Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!mit-eddie!uw-beaver!ubc-cs!fornax!laughlin From: laughlin@fornax.UUCP (Bob Laughlin) Newsgroups: comp.sys.next Subject: programming question: Views and Mouse Events Message-ID: <2229@fornax.UUCP> Date: 4 Mar 91 22:58:42 GMT Distribution: na Organization: School of Computing Science, Simon Fraser University Lines: 29 Mail to next-prog@cpac.washington.edu bounces otherwise I would have sent this there. I have a View subclass that fills part of a window. I would like the View's mouseDown: method to be called when the window first becomes activated with a mouse click (assuming the mouse click was also in the View). How do I do this? Right now the first mouse click is trapped by the window to activate itself and never gets passed onto the subview. I also have a matrix of sliders that continuously sends action messages as a slider is moved. In addition to this, I would like to know when the last message comes in, i.e. the user has released the mouse button. A test for whether the mouse button is currently down in the window that the matrix is in would do as well. How can I get this information? A related question: Under 1.0 this matrix of sliders would track mouse drags over different sliders. Under 2.0 the same matrix (created in IB) only tracks the slider that was initially activated on the mouseDown:. If you drag the mouse over a different slider it does not get activated. Has this been disabled in 2.0 or is it just a different default? A quick look at the online Class docs did not answer these questions for me although I'm sure they're there. Has anybody received the 2.0 technical manuals? -- Bob Laughlin laughlin@cs.sfu.ca