I've not used QCViews all that much to be honest, I tend to use QCRenderers, 
they're a bit more complex to set up but a bit more flexible. 

Instead of adding all this complexity though, why not just toggle your bool 
instead of trying to pulse it? Then you just need a pulse patch within the 
composition connected to that input, set to pulse when the input rises or 
falls. That gives you the same functionality with much simpler code.

Chris


On 27 Apr 2010, at 15:11, Julian. wrote:

> Yes, totally makes sense! And i do this by subclassing the QCView and
> overriding the "renderAtTime" method?
> 
> 
> sl, Julian.
> 
> 
> 2010/4/27 Chris Wood <[email protected]>:
>> You're setting the value to yes, then setting it to no again, and THEN
>> QC is rendering. When it renders, the value is back to NO.
>> 
>> The solution is to set it to YES, then wait for the next frame and set
>> it back to NO.
>> 
>> Chris
>> 
>> 
>> On 27 April 2010 12:17, Julian. <[email protected]> wrote:
>>> I'm new to Objective C, but not so new to Quartz Composer and i'm having 
>>> the following problem:
>>> 
>>> The following works perfectly:
>>> [myqcView setValue:@"some Value" forInputKey:@"publishedStringInput"];
>>> 
>>> But when I'm trying to send a pulse from my AppController to the myqcView 
>>> it doesn't seem to work:
>>> [myqcView setValue:[NSNumber numberWithBool:YES] 
>>> forInputKey:@"publishedBoolInput"];
>>> [myqcView setValue:[NSNumber numberWithBool:NO] 
>>> forInputKey:@"publishedBoolInput"];
>>> 
>>> This also doesn't seem like the right solution for it. Of course I could 
>>> set a Float and append a Number Watcher to it, but i'd like to know the 
>>> correct way to do this...
>>> 
>>> 
>>> Thanks, Julian. _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Quartzcomposer-dev mailing list      ([email protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> http://lists.apple.com/mailman/options/quartzcomposer-dev/psonice%40gmail.com
>>> 
>>> This email sent to [email protected]
>>> 
>> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to