Apple Developer Connection
Advanced Search
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page >

Playerサンプルプロジェクトをビルドして実行する

QCRendererクラスの使用を試す最善の方法は、Max OS X v10.4デベロッパツールに付属しているPlayerサンプルアプリケーションをビルドして実行することです。デベロッパツールをインストールすると、次の場所にPlayerのXcodeプロジェクトがインストールされます。

/Developer/Examples/Quartz Composer/

Playerアプリケーションをコンパイルしたら、次の2つの方法でコンポジションを開くことができます。アプリケーションを起動して、再生するコンポジションを指定するか、またはコンポジションをPlayerアプリケーションアイコンの上までドラッグします。アプリケーションアイコンまでコンポジションをドラッグして開く操作をサポートするには、Info.plistファイルを変更する必要があります。Listing 5-6に、PlayerサンプルプロジェクトのInfo.plistファイルを示します。ファイルリストのInfo.plistをダブルクリックすると、Xcodeの中でこのファイルを表示できます。リストでは、CFBundleTypeExtensionsキーに続いてqtz拡張子を指定しています。

Listing 5-6  Info.plistファイルでqtz拡張子を指定する

<key>CFBundleDocumentTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeExtensions</key>
            <array>
                <string>qtz</string>
            </array>
        </dict>
    </array>


< Previous PageNext Page >


Last updated: 2006-12-05




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice