Jump To:
Each Sample Code project is buildable and executable source example of how to accomplish a task for a specific Apple technology. They show the correct sequence of calls and parameter data types to provide a generalized method for API use that developers can modify for their specific needs.

Document Descriptions
On Off
Display

Sort by
Title
Sorted by
Topic
Sort by
Date
SGCapture (HTML) (DMG) (ZIP)
Deprecated - Displays live video within a QTCanvas using the SGDrawable class.
QuickTime 2003-01-14
SGCapture2Disk (HTML) (DMG) (ZIP)
Deprecated - Use the SequenceGrabber to display video within a QTCanvas and capture the video to a movie file.
QuickTime 2003-01-14
SGDataProcSample (HTML) (DMG) (ZIP)
Demonstrates how to run the Sequence Grabber in record mode using an SGDataProc to captured data.
QuickTime 2003-01-14
SGDevices (HTML) (DMG) (ZIP)
Demonstrates how to use the SGGetChannelDeviceList function to build and parse the list of devices.
QuickTime 2003-01-14
Show Movie (HTML) (DMG) (ZIP)
Demonstrates several QuickTime features for manipulating movies and their playback.
QuickTime 2003-01-14
SillyFrequencyLevels (HTML) (DMG) (ZIP)
Demonstrates how to obtain audio frequency levels from a Movie using SetMovieAudioFrequencyMeteringNumBands and GetMovieAudioFrequencyLevels APIs.
QuickTime 2006-01-25
SimpleAudioExtraction (HTML) (DMG) (ZIP)
Demonstrates the QuickTime 7.0 Movie Audio Extraction APIs
QuickTime 2006-01-03
SimpleCocoaJavaMovie (HTML) (DMG) (ZIP)
Deprecated - A simple movie player showing how to use the NSMovieView and NSMovie Cocoa Java classes.
QuickTime 2003-01-14
SimpleCocoaMovie (HTML) (DMG) (ZIP)
Shows how to use the NSMovieView and NSMovie Cocoa AppKit classes.
QuickTime 2003-01-14
SimpleCocoaMovieQT (HTML) (DMG) (ZIP)
A simple movie player showing how to use the NSMovieView and NSMovie Cocoa Objective-C classes.
QuickTime 2003-01-14
simpleeditsdi.win (HTML) (DMG) (ZIP)
Demonstrates how to display and edit QuickTime movies using the SDI (single document interface).
QuickTime 2003-01-14
SimpleHIMovieViewPlayer (HTML) (DMG) (ZIP)
Demonstrates how to use HIMovieView to play QuickTime Movies.
QuickTime 2005-07-15
simpleplayersdi.win (HTML) (DMG) (ZIP)
Demonstrates how to display QuickTime movies using the SDI (single document interface).
QuickTime 2003-01-14
SimpleVideoOut (HTML) (DMG) (ZIP)
Demonstrates how QuickTime Video Output Components can be used to play video out to hardware.
QuickTime 2005-08-10
SlideShowImporter (HTML) (DMG) (ZIP)
Movie import component, constructs a movie from images, effect types, and audio files.
QuickTime 2003-01-14
SlideShowImporter.win (HTML) (DMG) (ZIP)
Movie import component, constructs a movie from images, effect types, and audio files.
QuickTime 2003-01-14
SlideShowJava (HTML) (DMG) (ZIP)
Deprecated - Uses the ImageViewer object to present a sequence of images one at a time.
QuickTime 2003-01-14
sndequalizer (HTML) (DMG) (ZIP)
Manage a dialog window containing a graphical equalizer display.
QuickTime 2003-01-14
SoftVDigX (HTML) (DMG) (ZIP)
Demonstrates the "Compressed Source" model and an updated implementation of the Video Digitizer APIs for Mac OS X.
QuickTime 2007-02-14
SoftVideoOutputComponent (HTML) (DMG) (ZIP)
Software implementation of a QuickTime Video Output Component, includes a companion Transfer Codec.
QuickTime 2005-08-10
Sound PreMixer effect (HTML) (DMG) (ZIP)
Deprecated - A sound manager pre-mixer effect component.
QuickTime 2003-03-14
soundconverter (HTML) (DMG) (ZIP)
Shows how to use the Sound Converter API and how to place audio data in a movie.
QuickTime 2003-01-14
soundconverter.win (HTML) (DMG) (ZIP)
Shows how to use the Sound Converter API and how to place audio data in a movie.
QuickTime 2003-01-14
SoundMemRecord (HTML) (DMG) (ZIP)
This code shows using the SoundManager SPB calls for simple audio recording to memory.
QuickTime 2006-05-05
SoundPlayer (HTML) (DMG) (ZIP)
Shows how to play VBR and Non-VBR encoded audio using the SoundConverterFillBuffer API and QuickTime.
QuickTime 2003-01-14
SoundPlayer.win (HTML) (DMG) (ZIP)
Shows how to play VBR and Non-VBR encoded audio using the SoundConverterFillBuffer API and QuickTime.
QuickTime 2003-01-14
SoundRecord (HTML) (DMG) (ZIP)
Shows using the SequenceGrabber for simple audio recording
QuickTime 2006-05-05
soundsnippets (HTML) (DMG) (ZIP)
SoundSnippets.c defines functions that perform some common sound-related operations.
QuickTime 2003-10-27
soundsnippets.win (HTML) (DMG) (ZIP)
SoundSnippets.c defines functions that perform some common sound-related operations.
QuickTime 2003-10-27
Std Compression Examples (HTML) (DMG) (ZIP)
Standard Compression chapter of the Inside Macintosh QuickTime Components book.
QuickTime 2003-01-14
StillMotion (HTML) (DMG) (ZIP)
Demonstrates how to use the QTKit Capture APIs to build a simple application that creates stop motion animations.
QuickTime 2007-11-14
ThreadsExporter (HTML) (DMG) (ZIP)
Demonstrates importing and exporting still images in different formats on separate threads.
QuickTime 2005-07-26
ThreadsExportMovie (HTML) (DMG) (ZIP)
Demonstrates movie exporting using the QuickTime movie export component on separate threads of a Cocoa application.
QuickTime 2006-01-03
ThreadsImporter (HTML) (DMG) (ZIP)
Demonstrates importing and displaying still images on separate threads.
QuickTime 2005-07-22
ThreadsImportMovie (HTML) (DMG) (ZIP)
Demonstrates importing and displaying QuickTime Movies on separate threads.
QuickTime 2005-07-26
TimeCallbackDemo (HTML) (DMG) (ZIP)
Demonstrates how to add and remove TimeCode tracks to a movie.
QuickTime 2006-05-11
TimeCode (HTML) (DMG) (ZIP)
Demonstrates how to add and remove TimeCode tracks to a movie.
QuickTime 2006-06-28
TimeCode Media Handlers (HTML) (DMG) (ZIP)
Deprecated - Demonstrates how to manipulate QuickTime media time codes.
QuickTime 2003-01-14
TimeSlaving (HTML) (DMG) (ZIP)
Deprecated - Controls a scrolling text object by slaving a TimeBase to a movie.
QuickTime 2003-01-14
TrackFormatDemo (HTML) (DMG) (ZIP)
Shows how to get a human-readable, localized description of a track's format.
QuickTime 2006-08-01
Transitions (HTML) (DMG) (ZIP)
Deprecated - Applies the QuickTime effects architecture to a character in an animation scene.
QuickTime 2003-01-14
VideoFrameToGWorld (HTML) (DMG) (ZIP)
Demonstrates how to extract a single frame from a video track into a GWorld.
QuickTime 2003-01-14
VideoViewer (HTML) (DMG) (ZIP)
Simple example of video rendering using QuickTime visual contexts, OpenGL, Core Video and Core Image.
QuickTime 2005-08-01
vrbackbuffer (HTML) (DMG) (ZIP)
Demonstrates QuickTime VR back buffer routines.
QuickTime 2003-01-14
vrbackbuffer.win (HTML) (DMG) (ZIP)
Demonstrates QuickTime VR back buffer routines.
QuickTime 2003-01-14
vrcursors (HTML) (DMG) (ZIP)
Shows how to change the default cursors for specific kinds of hotspots or specific hotspot IDs.
QuickTime 2003-01-14
vrcursors.win (HTML) (DMG) (ZIP)
Using QTVR API to change the default cursors for specific kinds of hot spots (or IDs).
QuickTime 2003-01-14
vrflattenmovie (HTML) (DMG) (ZIP)
Demonstrates calling the QTVR (Virtual Reality) Flattener directly.
QuickTime 2003-01-14
vrflattenmovie.win (HTML) (DMG) (ZIP)
Demonstrates calling the QTVR (Virtual Reality) Flattener directly.
QuickTime 2003-01-14
vrmakeobject (HTML) (DMG) (ZIP)
Converts a linear QuickTime movie into a QuickTime VR object movie.
QuickTime 2003-01-14
vrmakeobject.win (HTML) (DMG) (ZIP)
Converts a linear QuickTime movie into a QuickTime VR object movie.
QuickTime 2003-01-14
vrmakepano (HTML) (DMG) (ZIP)
Converts a panoramic image into a QuickTime VR panoramic movie.
QuickTime 2003-01-14
VRMakePano Library (HTML) (DMG) (ZIP)
Contains functions that convert a panoramic image into a QuickTime VR movie.
QuickTime 2003-01-14
vrmakepano.win (HTML) (DMG) (ZIP)
Converts a panoramic image into a QuickTime VR panoramic movie.
QuickTime 2003-01-14
vrmovies (HTML) (DMG) (ZIP)
Uses the QuickTime VR (Virtual Reality) API to provide support for playing QuickTime movies in a panorama.
QuickTime 2003-01-14
vrmovies.win (HTML) (DMG) (ZIP)
Uses the QuickTime VR (Virtual Reality) API to provide support for playing QuickTime movies in a panorama.
QuickTime 2003-01-14
vrscript (HTML) (DMG) (ZIP)
Demonstrates embedding sounds, QuickTime movies, pictures, and 3D objects in a QuickTime VR movie.
QuickTime 2003-01-14
vrscript.win (HTML) (DMG) (ZIP)
Demonstrates embedding sounds, QuickTime movies, pictures, and 3D objects in a QuickTime VR movie.
QuickTime 2003-01-14
vrspeech (HTML) (DMG) (ZIP)
Uses Apple's Speech Recognition Manager to allow voice navigation of a panorama or object node.
QuickTime 2003-01-14
watchme (HTML) (DMG) (ZIP)
Uses the WatchMe.mov movie from the QuickTime SDK to convert relative URLs to absolute URLs.
QuickTime 2003-02-25
watchme.win (HTML) (DMG) (ZIP)
Uses the WatchMe.mov movie from the QuickTime SDK to convert relative URLs to absolute URLs.
QuickTime 2003-02-25
WhackedTV (HTML) (DMG) (ZIP)
A Cocoa version of the venerable HackTV sample code, demonstrating usage of the Sequence Grabber API's
QuickTime 2008-05-09
WiredSprites (HTML) (DMG) (ZIP)
Demonstrates creating a wired sprite movie containing one sprite track.
QuickTime 2003-02-25
WiredSprites.win (HTML) (DMG) (ZIP)
Creates a QuickTime movie containing wired sprites.
QuickTime 2003-02-25
WiredSpritesJava (HTML) (DMG) (ZIP)
Creates a QuickTime movie containing wired sprites.
QuickTime 2003-02-25
WritableFileDemo (HTML) (DMG) (ZIP)
Shows how to create an empty, writable file associated with a QTMovie object.
QuickTime 2006-08-01
AppleScriptRunner (HTML) (DMG) (ZIP)
How to send mail and execute other AppleScripts from a Carbon application.
Scripting & Automation 2006-07-31
Apply Firmware Password (HTML) (DMG) (ZIP)
Demonstrates how to create an Automator Action for System Image Utility.
Scripting & Automation 2007-06-12
AttachAScript (HTML) (DMG) (ZIP)
Illustrates how you can extend any Cocoa application by adding some AppleScripts to it.
Scripting & Automation 2006-07-27
AutomatorHandsOn (HTML) (DMG) (ZIP)
Illustrates several methods for building Automator Actions
Scripting & Automation 2007-06-12
AutoSample (HTML) (DMG) (ZIP)
How to run and display Automator workflows in your application.
Scripting & Automation 2007-05-23
DeskPictAppDockMenu (HTML) (DMG) (ZIP)
How to add a dynamic Dock menu to your Cocoa application
Scripting & Automation 2003-01-14
Duplicate Finder Items (HTML) (DMG) (ZIP)
Shows how to build an Automator action targeting Finder using AppleScript.
Scripting & Automation 2005-06-06
EmbededAppleScripts (HTML) (DMG) (ZIP)
Extending the functionality of your application by adding precompiled AppleScripts.
Scripting & Automation 2003-09-04
HelloStudio (HTML) (DMG) (ZIP)
This is a Hello, world application built using AppleScript Studio.
Scripting & Automation 2006-07-28
iTunesController (HTML) (DMG) (ZIP)
iTunesController allows you to control iTunes without having to bring it to the foreground.
Scripting & Automation 2006-02-23
MoreAppleEvents (HTML) (DMG) (ZIP)
Provides routines that assist with the creation and sending of Apple events and object descriptors.
Scripting & Automation 2003-01-14
MoreIsBetter (HTML) (DMG) (ZIP)
Library providing indispensable wrapers and workarounds for many areas of Mac OS programming.
Scripting & Automation 2003-10-27
MoreOSL (HTML) (DMG) (ZIP)
C library for implementing AppleScript support within your application.
Scripting & Automation 2003-01-14
ODOC (HTML) (DMG) (ZIP)
Illustrates how to send an open document ('odoc') Apple event to another application process.
Scripting & Automation 2003-01-14
Processes (HTML) (DMG) (ZIP)
This process management application uses most of AppleScript Studio's significant features.
Scripting & Automation 2006-07-28
SampleCMPlugIn (HTML) (DMG) (ZIP)
A contextual menu plugIn for Mac OS X.
Scripting & Automation 2006-10-09
SBSendEmail (HTML) (DMG) (ZIP)
Using the Scripting Bridge to tell Mail.app to send an email message with an optional attachment.
Scripting & Automation 2008-02-28
SBSetFinderComment (HTML) (DMG) (ZIP)
Set/Get Finder Comments using Scripting Bridge
Scripting & Automation 2007-12-04
SBSystemPrefs (HTML) (DMG) (ZIP)
Shows how to use Scripting Bridge to display a preference pane in System Preferences.
Scripting & Automation 2008-10-13
ScriptingBridgeFinder (HTML) (DMG) (ZIP)
Using the Finder with Scripting Bridge
Scripting & Automation 2007-12-13
ScriptingBridgeiCal (HTML) (DMG) (ZIP)
Adding/updating events in iCal using Scripting Bridge.
Scripting & Automation 2007-12-13
ScriptingDefinitions (HTML) (DMG) (ZIP)
Provides a starting sdef (scripting definition) and a completed one for the Sketch example code.
Scripting & Automation 2008-05-30
ScriptView (HTML) (DMG) (ZIP)
Shows how to build a script editor application with a built-in script database using AppleScript Studio.
Scripting & Automation 2005-06-01
SimpleCarbonAppleScript (HTML) (DMG) (ZIP)
A simple example illustrating how to add readable and writable AppleScript properties to Carbon Application.
Scripting & Automation 2007-03-01
SimpleScripting (HTML) (DMG) (ZIP)
Illustrates the minimal steps required to make an application scriptable.
Scripting & Automation 2008-05-30
SimpleScriptingObjects (HTML) (DMG) (ZIP)
How to add scriptable objects to an AppleScriptable application.
Scripting & Automation 2008-06-02
SimpleScriptingProperties (HTML) (DMG) (ZIP)
How to add some properties to the terminology provided by an AppleScriptable application.
Scripting & Automation 2008-06-02
SimpleScriptingVerbs (HTML) (DMG) (ZIP)
How to add verbs to the terminology provided by an AppleScriptable application.
Scripting & Automation 2008-06-02
Sketch-112 (HTML) (DMG) (ZIP)
Sketch is a Scriptable Graphics application. This sample adds certain Scriptable functionality to Sketch, as an example for use in WWDC 2005 Session 112.
Scripting & Automation 2005-06-06
TextEditPlus (HTML) (DMG) (ZIP)
This application is a version of TextEdit enhanced with additional document properties using AppleScript Studio.
Scripting & Automation 2006-07-28
UpdateXcodeSubprojects (HTML) (DMG) (ZIP)
Updates all subprojects of an Xcode project to Xcode 2.1 format. Illustrates scripting techniques.
Scripting & Automation 2005-06-06
AuthForAll (HTML) (DMG) (ZIP)
Shows how to use Authorization Services to create a self-restricted application.
Security 2005-10-26
BetterAuthorizationSample (HTML) (DMG) (ZIP)
Shows the recommended way to access privileged functionality from a non-privileged application on Mac OS X.
Security 2007-11-27
BSDLLCTest (HTML) (DMG) (ZIP)
Program sample demonstrates how to send and receive raw LLC Ethernet packets.
Security 2003-06-12