| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Thanks for the response Pierre-Olivier. Is there example code that you know of that creates windows of QCRenderers that have input and output ports feeding and receiving data? When doing: [renderer addObserver:self forKeyPath:@"imageClickA" options:0 context:NULL]; ... I never receive the imageClickA (my published port), when I passed the click through to the composition. I do have a : - (void) observeValueForKeyPath:(NSString*)keyPath ofObject:(id)object change:(NSDictionary*)change context:(void*)context { NSLog(@"got it"); } defined for "self" but it never gets called. In my : - (void) renderWithEvent:(NSEvent*)event ... I have: NSLog(@"Sending Event to renderer"); if(![renderer renderAtTime:time arguments:arguments]) NSLog(@"Rendering failed at time %.3fs", time); //Parse any output events NSNumber *num = [renderer valueForOutputKey:@"imageClickA"]; BOOL isClicked = [num boolValue]; NSLog(@"Value of ImageClick:%d",isClicked); ..isClicked is never anything other than 0, even though when I run this through in Quartz Composer itself the value changes. Any ideas? Also, why in PlayerApplication and QCRenderer do we need to call renderAtTime:time :arguments: anyway? It seems that if we have a timer a certain interval, then why tell the renderer when to render? and if we're rendering at 60 fps, why is the "time" argument in units of seconds, instead of milliseconds? Also, this time value is relative to the start of the application I presume, the way PlayerApplication is written? Thanks again, Kevin On Jan 22, 2006, at 9:39 PM, Pierre-Olivier Latour wrote:
|
_______________________________________________ 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 and getting the OutputPort values (From: Kevin Kicklighter <email@hidden>) | |
| >Re: QCRenderer and getting the OutputPort values (From: Pierre-Olivier Latour <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.