| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Thank you for your reply Marc. Here is what worked in the end: [self addInputPortWithType:QCPortTypeIndex forKey:@"inputBlend" withAttributes:[NSDictionary dictionaryWithObjectsAndKeys:@"Blending", QCPortAttributeNameKey, [NSNumber numberWithUnsignedInteger:2], QCPortAttributeMaximumValueKey, [NSArray arrayWithObjects:@"Replace", @"Over", @"Add", nil], QCPortAttributeMenuItemsKey, nil]]; The thing that was tripping me up was that QCPortAttributeMaximumValueKey has to be defined. The order of definition is also important. First QCPortAttributeMaximumValueKey, then QCPortAttributeMenuItemsKey. Of course the port's type has to be defined as QCPortTypeIndex, but the documentation is explicit enough about that. The rest was a bit unclear to me I must say... Anyway, I filed some feedback about that, so I hope the documentation will be more explicit in the future. The next problem though, is how do I do this for a predefined port? The logic of this seems correct, yet it doesn't work for me: return [NSDictionary dictionaryWithObjectsAndKeys:QCPortTypeIndex, QCPortAttributeTypeKey, @"Blending", QCPortAttributeNameKey, [NSNumber numberWithUnsignedInteger:2], QCPortAttributeMaximumValueKey, [NSArray arrayWithObjects:@"Replace", @"Over", @"Add", nil], QCPortAttributeMenuItemsKey, nil]; Can anyone out there clear this up? Thanks On 25 Feb 2008, at 12:23, Marc Epard wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden This email sent to email@hidden
| References: | |
| >How does QCPortAttributeMenuItemsKey work? (From: Julien Rigal <email@hidden>) | |
| >Re: How does QCPortAttributeMenuItemsKey work? (From: Marc Epard <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.