Quicktime Movie View error

  • I'm trying to create a very, very simple QuickTime viewer in Cocoa.

    I create a new Application, add QTKit and Quicktime frameworks, and
    drag a QuickTime Movie View into the main window.    All is well if I
    run now (although the movie view is blank).

    Going back into Interface Builder, I select the Movie View and in the
    Inspector Attributes, I set the "Movie" field to point to a movie
    file:  "file:///Sample/sample.mov".    All is well in Interface
    Builder (the movie shows and plays), but as soon as I save and try to
    run in XCode, I get this message:

    /* com.apple.ibtool.errors */
    Internal Error:
    Description: The document "MainMenu.xib" could not be opened.
    Operation could not be completed. (com.apple.InterfaceBuilder error -1.)
    Recovery Suggestion: Check the console log for additional information.

    The console log adds:

    11/10/08 2:58:49 PM ibtool[1554] Exception raised while decoding
    document objects - CGSDisableUpdate returned error 1002d

    This doesn't appear to depend on which movie I choose, and is
    completely reproducable.  Am I missing a step?
  • On Nov 10, 2008, at 3:01 PM, Christopher Kempke wrote:
    > I'm trying to create a very, very simple QuickTime viewer in Cocoa.
    >
    > I create a new Application, add QTKit and Quicktime frameworks, and
    > drag a QuickTime Movie View into the main window.    All is well if
    > I run now (although the movie view is blank).
    >
    > Going back into Interface Builder, I select the Movie View and in
    > the Inspector Attributes, I set the "Movie" field to point to a
    > movie file:  "file:///Sample/sample.mov".    All is well in
    > Interface Builder (the movie shows and plays), but as soon as I save
    > and try to run in XCode, I get this message:
    >
    > /* com.apple.ibtool.errors */
    > Internal Error:
    > Description: The document "MainMenu.xib" could not be opened.
    > Operation could not be completed. (com.apple.InterfaceBuilder error
    > -1.)
    > Recovery Suggestion: Check the console log for additional
    > information.
    >
    > The console log adds:
    >
    > 11/10/08 2:58:49 PM ibtool[1554] Exception raised while decoding
    > document objects - CGSDisableUpdate returned error 1002d

    Christopher,

    You might be able to work around this specific problem by using nib
    files instead of xib files, so that ibtool doesn't need to compile
    them when you build your project with xcode.

    -Joey