On Oct 23, 2009, at 2:29 PM, Troy Koelling wrote:
On Oct 23, 2009, at 11:15 AM, Milton Aupperle wrote:Yes but -32767 to 32768 is not 0 to 23 or 0 to 4, is it?Maybe this will help that particular situation?extern NSString* const QCPortAttributeMinimumValueKey; //For Number ports only extern NSString* const QCPortAttributeMaximumValueKey; //For Index and Number ports onlyUsed in conjunction with:- (void) addInputPortWithType:(NSString*)type forKey:(NSString*)key withAttributes:(NSDictionary*)attributes;
I think Milton's key phrase there was this: "I do not expect a static List. A user may plug in or unplug a device at any time, but you can't update the input dynamically to what it's range is"
I don't spend any time in the official api to know if that's valid (I don't see any way to call setMaxIndexValue, or setMaxDoubleValue/ setMinDoubleValue on the underlying ports -- that's possible in unofficial-api land where I live ;), but if so, it's quite cumbersome to add/remove ports to change their limits. Further, it's useless to end-users (outside of the QC editor) as that will break noodles if it happens while the patch is running. If that's not valid, and the ranges _can_ be changed dynamically, then there's a perfectly good solution for Milton.
-- [ christopher wright ] [email protected] http://kineme.net/ -- [ 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]

