To provide composition structure, pass an NSDictionary or NSArray to -setValue:forKey:
For example, if you start with the Xcode "Quartz Composer Application" template, you can add the following code to the AppController -changeColorToBlue: method:
[qcView setValue:[NSDictionary dictionaryWithObjectsAndKeys:@"value1",@"key1",@"value2",@"key2",nil] forInputKey:@"Structure"];
or
[qcView setValue:[NSArray arrayWithObjects:@"a",@"b",nil] forInputKey:@"Structure"];
source share