Working on a small QC host application , I can't find the way to have QCPortAttributeMenuItemsKey to work . Here is the my code section ( assuming _renderer is a QCRenderer object) .
NSString* inputKey; NSDictionary* inputAttributes; NSString* type; NSArray* inputList = [[_renderer composition] inputKeys]; for(int i = 0; i < [inputList count]; ++i) { // gets inputKey , and type for each input ports inputKey = [inputList objectAtIndex:i]; inputAttributes = [[[_renderer composition] attributes] objectForKey:inputKey]; type = [inputAttributes objectForKey:QCPortAttributeTypeKey]; if([type isEqualToString:QCPortTypeIndex]) { NSLog( @" is class of %@", NSStringFromClass ([[inputAttributes objectForKey:QCPortAttributeMenuItemsKey] class])); //index has labeled indexes if ([[inputAttributes objectForKey:QCPortAttributeMenuItemsKey] count] != 0) { //Do something } } Whatever composition with a published labeled indexes input , I'm passing through .. the NSLog returns that [inputAttributes objectForKey:QCPortAttributeMenuItemsKey] is null . What would be the way , to track when a composition has a published labeled indexes input ? Thanks !!
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (Quartzcomposer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com