Member Login Log In | Not a Member? Contact ADC
Sample Code
This page lists new and recently changed sample code. Most sample code has a revision history, which details additions and changes since the previous version. Look for "Revision History" at the bottom of the sample code page.

Items are listed in reverse chronological order by publication date. To see the list sorted by the type of revision, click Sort by Revision Type. Items published for the first time (First Version) will be at the top of the list, followed by items with new or changed content (Content Update), followed by items with small fixes, such as typos and format errors, but no significant content changes (Minor Change).

New and updated sample code is announced in the bi-weekly Apple Developer Connection News, available as an option to ADC members. See the Membership Overview page for details on joining.
Document Revision Descriptions
On Off
Sort by
Date
Sort by
Title
Sort by
Revision Type
Sorted by
Topic
2008-04-24 CIColorTracking (HTML) (DMG) (ZIP)
More comments. Fixed some errors in the project.
Content Update Carbon
2008-05-07 SampleScannerApp (HTML) (DMG) (ZIP)
This project implements a simple client accessing an ICA scanning device.
First Version Carbon
2008-09-30 CALayerEssentials (HTML) (DMG) (ZIP)
Demonstrates the basics of setting up various Core Animation layers
First Version Cocoa
2008-04-24 CIColorTracking (HTML) (DMG) (ZIP)
More comments. Fixed some errors in the project.
Content Update Cocoa
2008-02-06 OpenGL Filter Basics Cocoa (HTML) (DMG) (ZIP)
How to use Objective-C and MVC design patterns in installing and utilizing filters in an OpenGL rendering pipeline
First Version Cocoa
2008-08-29 Squiggles (HTML) (DMG) (ZIP)
Demonstrates many Cocoa fundamentals in a Document-based Application featuring custom drawing and event-handling.
First Version Cocoa
2008-09-30 CALayerEssentials (HTML) (DMG) (ZIP)
Demonstrates the basics of setting up various Core Animation layers
First Version Games
2008-04-24 CIColorTracking (HTML) (DMG) (ZIP)
More comments. Fixed some errors in the project.
Content Update Games
2008-07-30 CoreImageGLTextureFBO (HTML) (DMG) (ZIP)
Making OpenGL textures with Core Image
First Version Games
2008-02-06 OpenGL Filter Basics Cocoa (HTML) (DMG) (ZIP)
How to use Objective-C and MVC design patterns in installing and utilizing filters in an OpenGL rendering pipeline
First Version Games
2008-09-30 CALayerEssentials (HTML) (DMG) (ZIP)
Demonstrates the basics of setting up various Core Animation layers
First Version OpenGL
2008-07-30 CoreImageGLTextureFBO (HTML) (DMG) (ZIP)
Making OpenGL textures with Core Image
First Version OpenGL
2008-07-30 GLSL Basics Cocoa (HTML) (DMG) (ZIP)
Refactored the sample code to better demonstrate the interaction of OpenGL APIs with an OpenGL view. Moved the GLSL program object instantiation into its own basic class. Moved the GLSL hardware check code into its a separate file. Consistent use of float math library functions for pattern and palette generation. Animation continues during window resizing. Consistent use of doubles and their OpenGL equivalents during geometry generation. Updated the Xcode project to use the new format. Updated the NIB to use the new format. Added a simple GLUT string class.
Content Update OpenGL
2008-02-08 GLUT (HTML) (DMG) (ZIP)
1) Better Joystick/Spaceball handling. 2) Better startup times. 3) Fixed issue with leaving gamemode. 4) Improved bundled appilcation handing. 5) Improved mouse button handling. 6) Fixed issue with child menu handling.
Minor Change OpenGL
2008-04-24 LiveVideoMixer (HTML) (DMG) (ZIP)
The update method in VideoMixView.m now makes sure that the shared OpenGL context is on the same virtual screen as the view's OpenGL context.
Content Update OpenGL
2008-02-06 OpenGL Filter Basics Cocoa (HTML) (DMG) (ZIP)
How to use Objective-C and MVC design patterns in installing and utilizing filters in an OpenGL rendering pipeline
First Version OpenGL
2008-08-14 OpenGLScreenSnapshot (HTML) (DMG) (ZIP)
Code refactoring.
Content Update OpenGL
2008-04-24 QTCoreVideo101 (HTML) (DMG) (ZIP)
added automatic texture coordinate generation for teapot video
Content Update OpenGL
2008-06-06 QTCoreVideo102 (HTML) (DMG) (ZIP)
An application demonstrating the use of QTKit, CoreVdeo, and OpenGL.
First Version OpenGL
2008-06-06 QTCoreVideo103 (HTML) (DMG) (ZIP)
Demonstrates how to render a QuickTime Movie using OpenGL texture range and the Core Video pixel buffer pipeline.
First Version OpenGL
2008-06-06 QTCoreVideo201 (HTML) (DMG) (ZIP)
Demonstrates how to render a QuickTime Movie using OpenGL FBO and the Core Video texture pipeline.
First Version OpenGL
2008-06-06 QTCoreVideo202 (HTML) (DMG) (ZIP)
Demonstrates how to render a QuickTime Movie using OpenGL PBO and the Core Video pixel buffer pipeline.
First Version OpenGL
2008-06-06 QTCoreVideo301 (HTML) (DMG) (ZIP)
Demonstrates adding of effects & filters to QuickTime Movies in realtime using GLSL shaders and the Core Video texture pipeline.
First Version OpenGL
2008-02-06 OpenGL Filter Basics Cocoa (HTML) (DMG) (ZIP)
How to use Objective-C and MVC design patterns in installing and utilizing filters in an OpenGL rendering pipeline
First Version Performance
2008-09-30 CALayerEssentials (HTML) (DMG) (ZIP)
Demonstrates the basics of setting up various Core Animation layers
First Version Quartz
2008-04-24 CIColorTracking (HTML) (DMG) (ZIP)
More comments. Fixed some errors in the project.
Content Update Quartz
2008-07-30 CoreImageGLTextureFBO (HTML) (DMG) (ZIP)
Making OpenGL textures with Core Image
First Version Quartz
2008-04-24 LiveVideoMixer (HTML) (DMG) (ZIP)
The update method in VideoMixView.m now makes sure that the shared OpenGL context is on the same virtual screen as the view's OpenGL context.
Content Update QuickTime
2008-06-02 MyMovieFilter (HTML) (DMG) (ZIP)
Updated to use a Core Animation layer-backed view.
Content Update QuickTime
2008-04-24 QTCoreVideo101 (HTML) (DMG) (ZIP)
added automatic texture coordinate generation for teapot video
Content Update QuickTime
2008-06-06 QTCoreVideo102 (HTML) (DMG) (ZIP)
An application demonstrating the use of QTKit, CoreVdeo, and OpenGL.
First Version QuickTime
2008-06-06 QTCoreVideo103 (HTML) (DMG) (ZIP)
Demonstrates how to render a QuickTime Movie using OpenGL texture range and the Core Video pixel buffer pipeline.
First Version QuickTime
2008-06-06 QTCoreVideo201 (HTML) (DMG) (ZIP)
Demonstrates how to render a QuickTime Movie using OpenGL FBO and the Core Video texture pipeline.
First Version QuickTime
2008-06-06 QTCoreVideo202 (HTML) (DMG) (ZIP)
Demonstrates how to render a QuickTime Movie using OpenGL PBO and the Core Video pixel buffer pipeline.
First Version QuickTime
2008-06-06 QTCoreVideo301 (HTML) (DMG) (ZIP)
Demonstrates adding of effects & filters to QuickTime Movies in realtime using GLSL shaders and the Core Video texture pipeline.
First Version QuickTime
2008-05-09 WhackedTV (HTML) (DMG) (ZIP)
Fixed two bugs: (1) "Select Output Format" in the audio dialog failed with error -206 if the source audio were set to 20 or 24 bits on an Intel Mac. The source format is 24-bits aligned low in 32-bits. WhackedTV was setting this as the default output format. But QuickTime movies can only contain packed samples. Added a utility function to conform the output format for movie-safety. (2) Began preferring the kQTSGAudioPropertyID_CodecSpecificSettingsArray property to the kQTSGAudioPropertyID_MagicCookie property. See QuickTimeComponents.h for an explanation of the differences between these properties, and why CodecSpecificSettingsArray should always be preferred over MagicCookie.
Content Update QuickTime
2008-04-24 LiveVideoMixer (HTML) (DMG) (ZIP)
The update method in VideoMixView.m now makes sure that the shared OpenGL context is on the same virtual screen as the view's OpenGL context.
Content Update Video
2008-04-24 QTCoreVideo101 (HTML) (DMG) (ZIP)
added automatic texture coordinate generation for teapot video
Content Update Video
2008-06-06 QTCoreVideo102 (HTML) (DMG) (ZIP)
An application demonstrating the use of QTKit, CoreVdeo, and OpenGL.
First Version Video
2008-06-06 QTCoreVideo103 (HTML) (DMG) (ZIP)
Demonstrates how to render a QuickTime Movie using OpenGL texture range and the Core Video pixel buffer pipeline.
First Version Video
2008-06-06 QTCoreVideo201 (HTML) (DMG) (ZIP)
Demonstrates how to render a QuickTime Movie using OpenGL FBO and the Core Video texture pipeline.
First Version Video
2008-06-06 QTCoreVideo202 (HTML) (DMG) (ZIP)
Demonstrates how to render a QuickTime Movie using OpenGL PBO and the Core Video pixel buffer pipeline.
First Version Video
2008-06-06 QTCoreVideo301 (HTML) (DMG) (ZIP)
Demonstrates adding of effects & filters to QuickTime Movies in realtime using GLSL shaders and the Core Video texture pipeline.
First Version Video