Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QCRenderer Leak



Thank you guys very much, it turns out the earlier attempts to get the output were stymied by my naming the input and output the same thing.

The bindings method works, and also the QCRenderer works now with Pierre's input. Thank you.

On Sep 27, 2005, at 7:03 PM, Aaron Tuller wrote:

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



_______________________________________________ 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
References: 
 >QCRenderer Leak (From: Kyle Killion <email@hidden>)
 >Re: QCRenderer Leak (From: Pierre-Olivier Latour <email@hidden>)
 >Re: QCRenderer Leak (From: Aaron Tuller <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.