Mac OS X Reference Library Apple Developer Connection spyglass button

Version: 1.2

Posted: 2006-04-12

Build Requirements: Xcode 2.0 or later

Runtime Requirements: Mac OS X 10.4 or later, Java 1.4.2 or later

View Source Code:

Download Sample Code (“QCCocoaComponent.zip”, 179.9K)



Description

This sample uses Apple's CocoaComponent feature to embed a Quartz Composer QCView inside a Swing JFrame, allowing Quartz Composer compositions to be played within Java applications. The project is an extremely simple example of using CocoaComponent, with very little Objective-C code. See Technical Note 2147 for details on using CocoaComponent.

This sample code has been updated to include a project that produces a universal binary. No code changes were required for it to run correctly on Intel-based Macintosh computers.

Document Revision History

Date Notes
2006-04-12Updated compiler options to generate 1.4 compatible bytecode.
2005-08-10Updated to produce a universal binary. No code changes were required.
2005-06-01Displays Quartz Composer compositions inside a Swing JFrame
Did this document help you? Yes It's good, but... Not helpful...