I've only used it in attributesForPropertyPortWithKey for predefined ports, but it works. Try adding min and max and maybe default keys:

[NSNumber numberWithUnsignedInteger:0], QCPortAttributeDefaultValueKey, [NSNumber numberWithUnsignedInteger:0], QCPortAttributeMinimumValueKey, [NSNumber numberWithUnsignedInteger:count-1], QCPortAttributeMaximumValueKey,

-Marc

On Feb 25, 2008, at 3:25 AM, Julien Rigal wrote:

Hello once again,

Sorry to post such a newbie question, but how do I use QCPortAttributeMenuItemsKey to add a list of menu items to a port. I tried this, but it doesn't work, QC raises an exception.

[self addInputPortWithType:QCPortTypeIndex forKey:@"inputBlend"
withAttributes:[NSDictionary dictionaryWithObjectsAndKeys:@"Blending", QCPortAttributeNameKey, [NSArray arrayWithObjects:@"Replace", @"Over", @"Add", nil], QCPortAttributeMenuItemsKey,
        nil]];

I tried a few other things, but can't seem to find the correct way...

Thanks!

Regards,

Julien
_______________________________________________
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/mepard%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]

Reply via email to