I'm vaguely thinking about implementing a way to create .qtz files from a scripting language (SuperCollider) rather than using Quartz Composer. The file format is fairly easy to figure out, but I would need a list of the patches that can be used, including their types and names as used in .qtz files (e.g. QCImageFilter / CIColorMatrix etc) and preferably also their inputs and outputs. Is it possible to get such a list from the system?
Via a supported API, this isn't really possible. You could do some objc runtime inspection to find all children of QCPatch, but even then you'll run into a few problems (intermediate classes, etc).
Also, some patches are Virtual, code-wise (not like the Quartz Composer Patches directory virtual patches) -- For example, all the Core Image patches are dynamically created from the installed CI Filters, so there isn't a class to back each one up (just a generic CIPatch). This makes the runtime inspection stuff even less appealing.
If you're willing to muck about the private API, you can probably extract all the registered QCPatches pretty easily, but you won't get much support for that here, and your app will likely break in future updates.
Otherwise I suppose I could make a big composition containing one of every type of patch and extract the information from that, but that's not very appealing.
This would be lame, but probably your safest bet for the time being. lower-level hacking on QC isn't recommended/exposed much at all at this point in time...
-- [ christopher wright ] [EMAIL PROTECTED] http://kineme.net/
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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]

