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?
Perhaps im misunderstanding?
On Mar 22, 2009, at 10:01 PM, Christopher Wright wrote:
QCCompositionParameterView can be assigned a delegate, with the
following delegate method documented:
- (BOOL) compositionParameterView:(QCCompositionParameterView
*)parameterView shouldDisplayParameterWithKey:(NSString *)portKey
attributes:(NSDictionary *)portAttributes;
The portAttributes dictionary isn't really documented (http://developer.apple.com/documentation/Cocoa/Reference/QCCompositionParameterViewDelegateProtocolRef/Introduction/Introduction.html
):
portAttributes
A dictionary of the attributes that you want to display in the
user interface.
Inside, it looks like we can inspect certain keys to determine which
kind of port the port is (number, boolean, index, string, structure,
color, image, virtual, etc) -- is this a reliable way to inspect
ports for their types (and sometimes ranges)? or is that a Bad Idea
(tm)? Are the attributes mutable? The method signature obviously
says it's not, but the documentation implies that the delegate can
cook it to do cool things potentially, with the whole "you want"
phrase. Additionally, there doesn't seem to be an approved way to
discovering/modifying the Default Value of said ports -- is this
intentional, an oversight, or simply a Bad Idea that I shouldn't
consider anyway?
Sorry if this is a silly e-mail -- flu (or a convincing stand-in) is
making me unwell :(
--
[ christopher wright ]
[email protected]
http://kineme.net/
_______________________________________________
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/doktorp%40mac.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]