For the life of me, I could not figure out why my QCPortAttributeMinimumValueKey was not being set for my input ports. I was creating NSUInteger properties, using @dynamic, and setting the attribute to an [NSNumber numberWithUnsignedInt:someMinValHere].

That never worked. Changing the property to double, and passing in an [NSNumber numberWithDouble:someMinValHere] seems to have done the trick. However, the max key worked with the NSUInteger?

Has anyone else noticed this? Just putting it out on the record incase others are confused.

I never actually stumbled across this limitation because there is no need for a Minimum NSUInteger to be specified. If you take a close look at the Input Splitter patch's Settings for Numbers and Indices, you'll find that you cannot set the minimum value for inputs of type Index. It is always 0.

Therefore, I'd say this is not really a limitation or a missing feature, but consistency.

If you really need to specify a valid range for an Index, I think you'll have to use a double/Number port and cast it to an NSUInteger/ Index.

Marco
_______________________________________________
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