Hey Memo

As long as you don't read from inputs or generate output needlessly, having 
execute: atTime: withArguments: called in QCPlugInTimeModeIdle should be of 
trivial cost, and would be the 'proper' way to do this. As far as I can tell, 
QCPlugInTimeModeIdle is there for exactly this sort of functionality.

Have you experienced a performance hit doing it this way? I don't see the 
reason for your (or Christopher's, I see he just replied) aversion to it.

Cheers - Tom




On 23 Nov 2009, at 16:03, Memo Akten wrote:

> Hi All, I'm writing the pair of QC Patches as described in this thread
> http://www.vidvox.net/phpBB2/viewtopic.php?t=3930
> 
> To cut a long story short, I have one custom QCPatch to send data
> [[NSNotificationCenter defaultCenter] postNotificationName:kNotificationName 
> object:sentObject];
> 
> and another custom QCPatch to receive data in another composition.
> 
> In the example posted, the receiver patch timeMode is set to 
> kQCPlugInTimeModeNone
> As expected the plugin.execute:atTime:withArguments doesn't get called when 
> the notification is received. It only gets called when I move the patch 
> around in QC.
> I can fix this by setting the timeMode to kQCPlugInTimeModeIdle. It's easy to 
> set a flag in the notificationCallback and in execute check that and only 
> write to output when there is actually new data, but I was wondering if there 
> is a way to keep the timeMode to none, and from the notificationCallback 
> force an execute so the receiver execute isn't unnecessarily running and 
> constantly checking the flag to see if there is new data?
> 
> Cheers,
> 
> Memo.
> 
> 
> 
>       
> 29 Ironworks. Dace Rd. London E3 2NX, UK
> mob : +44 (0) 7958 783 832
> tel : +44 (0) 20 8123 9986
> fax : +44 (0) 20 8986 5496
> 
> work: www.msavisuals.com
> play: www.memo.tv
> 
> 
> _______________________________________________
> 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/bangnoise%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