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

Version: 1.0

Posted: 2003-09-18

Build Requirements: N/A

Runtime Requirements: Mac OS X Project Builder 2.1 or better, Mac OS 10.2

View Source Code:

Download Sample (“Movie_Overlay.zip”, 175.1K)
Download Sample (“Movie_Overlay.dmg”, 233.3K)



Description

This Cocoa sample shows how to overlay text & graphics and perform animation on an NSMovieView through a floating "overlay" window. This is accomplished by first creating a new window and adding subviews to this window. These subviews are used to draw our images and perform our animation. The new overlay window is then added as a child window to the NSMovieView window with the NSWindowAbove ordering so it will be ordered on top of the movie window. Any subsequent drawing in the overlay window subviews will then draw on top of the NSMovieView window, giving us the overlay effect we desire. Requirements: Project Builder 2.1 or better, Mac OS 10.2 Keywords: overlay NSView animation movie

Document Revision History

Date Notes
2003-09-18Demonstrates how to overlay text & graphics and perform animation on an NSMovieView through a floating overlay window.



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.