Why use the QCCompositionParameterView Delegate for that when you can inspect the ports directly from and instantiated QCRenderer/ QCCompositionRenderer by grabbing the attributes dictionary and looking for the QCPortAttributeTypeKey, QCPortAttributeMinimumValueKey and QCPortAttributeMaximumValueKey key?

The keys are the same either way -- you're right though, using the raw QCRenderer would be simpler, and appears to all be documented. I hadn't looked much at QCCompositionRenderer to see that yet.

However, "QCPortAttributeDefaultValueKey" doesn't seem to be set in any of my renderers -- I'm assuming that that would be set to whatever the keyed-in value when saving the composition, but this is what I get:

3/23/09 2:49:09 AM freqTest[33313] attr: {
    QCCompositionAttributeHasConsumersKey = 1;
    QCCompositionAttributeIsTimeDependentKey = 1;
    QCCompositionAttributeSourceKey = Data;
    "labeled_input" =     {
        QCPortAttributeMaximumValueKey = 2;
        QCPortAttributeMenuItemsKey =         (
            alice,
            bob,
            charlie
        );
        QCPortAttributeMinimumValueKey = 0;
        QCPortAttributeNameKey = "labeled input";
        QCPortAttributeTypeKey = QCPortTypeIndex;
    };
    "limited_Input" =     {
        QCPortAttributeMaximumValueKey = 64;
        QCPortAttributeMinimumValueKey = 0;
        QCPortAttributeNameKey = "limited Input";
        QCPortAttributeTypeKey = QCPortTypeIndex;
    };
    "unlimited_Input" =     {
        QCPortAttributeMinimumValueKey = 0;
        QCPortAttributeNameKey = "unlimited Input";
        QCPortAttributeTypeKey = QCPortTypeIndex;
    };
}

limited_Input is set to 22, and labeled_input is set to "bob" in the composition, but that isn't reflected here (or in the parameters view, which is just a rehash of this data, as you've demonstrated :)

--
[ christopher wright ]
[email protected]
http://kineme.net/

Attachment: 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]

Reply via email to