Re: QCRenderer Leak
Subject : Re: QCRenderer Leak
From: Aaron Tuller <email@hidden >
Date: Tue, 27 Sep 2005 16:03:38 -0700
Delivered-to: email@hidden
Delivered-to: email@hidden
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.