Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Virtual ports in Quartz Composer plug-ins



On 2/11/08 1:24 PM, "Christopher Wright" <email@hidden> 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@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Virtual ports in Quartz Composer plug-ins (From: Christopher Wright <email@hidden>)



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.