At 8:53 AM -0700 9/27/05, Pierre-Olivier Latour wrote:
I have a window with a custom NSView, and I want to use
QCRenderer to draw a qtz file. I know this can be done using
QCView much easier, but I need to run a Cocoa method on mouseDown
and I can't see how to do that with QCView.
You can use a Mouse patch in the composition, and publish its
button output as an output of the composition, then observe it -
see end of this technote:
http://developer.apple.com/technotes/tn2005/tn2146.html
Or you can subclass QCView (which I needed to do anyway to provide
drag and drop) and then do something like this:
- (NSView *)hitTest:(NSPoint)aPoint
{
NSView *s = [super hitTest:aPoint];
if (s)
return self;
else
return nil;
}
and then implement mouseDown: and mouseUp: and mouseDragged: as you
like.
but I like the idea of the Mouse patch, I'll need to check that out.
-aaron
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (Quartzcomposer-
email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/lists%
40maccontrol.com
This email sent to email@hidden