On 2/11/08 1:24 PM, "Christopher Wright" <[EMAIL PROTECTED]> wrote:
>> The built-in QC patches like "Splitter" or "Multiplexer" do allow
>> virtual
>> ports - is it done with a private API?
> After looking through the public headers, it looks like QCVirtualPorts
> are indeed private... if that's the case, that's a shame :(
> 
> [Cheat:  QCImagePorts have QCVirtualPorts in their ancestry, so maybe
> you can coax an image port into behaving like a virtual port?
> assuming it can't be done in a more approved manner, that is].

I understand that creating a virtual input port would have to be done
dynamically, hopefully something simple like:

[self addInputPortWithType:QCPortTypeVirtual forKey:@"inputVirtual"
withAttributes:NULL];

The problem is that this string constant for virtual port type is unknown
would have to be exposed by Apple. Without that string provided by Apple you
can try and guess what it might be.
NSLog() shows all type constants are the strings exactly as their constant
names, ie:
NSString *QCPortTypeString = @"QCPortTypeString";

I tried some educated guesses like @"QCPortTypeVirtual", @"QCPortTypeId",
@"QCPortTypeUntyped" but it did not work.

Tom



 _______________________________________________
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