Quarts composition with empty output keys

  • Hi all

    As I am trying to integrate a Quarts COmposition in my Cocoa app, I
    load th ecomposition in the appropriate QCView and it displays fine.

    I can get the liust of output Keys without problem either, but if I
    immediately try to get a value for a specific output key, it comes
    out empty. If I call my method a second time, then there is a value.

    Is there a delay before an output key can return a value or is there
    a preferred way to wait for the composition to be able to return the
    value somehow?

    I'm totally confused here...

    [circleGraphic loadCompositionFromFile:pointerPath];

    NSArray *allOutputKeys = [NSArray arrayWithArray:[circleGraphic
    outputKeys]];
    [circleGraphic startRendering];

      NSLog(@"Output keys %@",[circleGraphic outputKeys]);
            NSLog(@"Output key value:%@",[circleGraphic
    valueForOutputKey:@"customName1"]);

    result in console:

    2006-10-25 20:18:02.841 TestApp[1217] Output keys (
        customName1,
    )
    2006-10-25 20:18:02.841 TestApp[1217] Output key value:

    Notice there is nothing next to Output key

    Thanks!

    - Renaud
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today