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
ABPresence (HTML) (DMG) (ZIP)
Displays a list of all the people in your Address Book and their iChat status.
Apple Applications 2006-08-04
AddressBookCarbon (HTML) (DMG) (ZIP)
Demonstrates some basic manipulations of the Mac OS X 10.2.x (and beyond) Address Book API.
Apple Applications 2003-01-14
AddressBookCocoa (HTML) (DMG) (ZIP)
Demonstrates some basic manipulations of the Mac OS X 10.2.x (and beyond) Address Book API.
Apple Applications 2003-01-14
AlbumToSlideshow (HTML) (DMG) (ZIP)
Demonstrates using CF and NSXML to create Final Cut Pro XML.
Apple Applications 2008-05-15
Aperture Edit Plugin - Borders & Titles (HTML) (DMG) (ZIP)
"Borders & Titles" is a sample plugin for Aperture that demonstrates how to use the image editing API introduced with Aperture 2.1
Apple Applications 2008-06-02
Aperture Image Resizer (HTML) (DMG) (ZIP)
Sample Aperture Export Plug-In code
Apple Applications 2007-06-08
AppleScriptRunner (HTML) (DMG) (ZIP)
How to send mail and execute other AppleScripts from a Carbon application.
Apple Applications 2006-07-31
Apply Firmware Password (HTML) (DMG) (ZIP)
Demonstrates how to create an Automator Action for System Image Utility.
Apple Applications 2007-06-12
AutomatorHandsOn (HTML) (DMG) (ZIP)
Illustrates several methods for building Automator Actions
Apple Applications 2007-06-12
Birthdays (HTML) (DMG) (ZIP)
Dashboard widget with a plug-in that queries AddressBook.framework for contacts with upcoming birthdays.
Apple Applications 2008-09-10
CalendarItems (HTML) (DMG) (ZIP)
Creates new iCal Events and Tasks ("To Do's") using Objective-C 2 and the Calendar Store framework
Apple Applications 2007-10-15
CapabilitiesSample (HTML) (DMG) (ZIP)
Shows how to detect Image Capture device capabilities and send messages to devices with ICAObjectSendMessage.
Apple Applications 2003-01-14
CocoaPeoplePicker (HTML) (DMG) (ZIP)
Demonstrates how to use the AddressBook framework's ABPeoplePickerView.
Apple Applications 2003-12-11
Duplicate Finder Items (HTML) (DMG) (ZIP)
Shows how to build an Automator action targeting Finder using AppleScript.
Apple Applications 2005-06-06
Fader (HTML) (DMG) (ZIP)
Demonstrates fading of elements inside a Dashboard widget
Apple Applications 2007-09-12
FinalCutPro_AppleEvents (HTML) (DMG) (ZIP)
Uses Apple Events to interact with Final Cut Pro 5.1.2 or later.
Apple Applications 2007-11-16
FinalCutServerIntegrationSample (HTML) (DMG) (ZIP)
Shows how to integrate an external application with Final Cut Server
Apple Applications 2008-06-07
Fortune (HTML) (DMG) (ZIP)
Deprecated - Demonstrates use of a widget plug-in
Apple Applications 2005-06-01
Gamma Filter for FxPlug and AE (HTML) (DMG) (ZIP)
Cross-application FxPlug and After Effects plug-in code.
Apple Applications 2008-06-02
Goodbye World (HTML) (DMG) (ZIP)
Demonstrates display and use of widget preferences to save a widget's state
Apple Applications 2007-06-28
Hello Welt (HTML) (DMG) (ZIP)
Demonstrates localization techniques for Dashboard widgets
Apple Applications 2007-06-25
Hello World (HTML) (DMG) (ZIP)
Introductory Dashboard widget example
Apple Applications 2005-06-01
HTML Video With CSS Effects and Custom Video Controls (HTML) (DMG) (ZIP)
HTML5 video element example that uses CSS effects and custom video controls.
Apple Applications 2008-08-06
ICADownloadFirst (HTML) (DMG) (ZIP)
Demonstrates using the Image Capture APIs asynchronously to download the first image in the first device found.
Apple Applications 2003-01-14
ICAObjectDumper (HTML) (DMG) (ZIP)
A command-line tool that uses the Image Capture APIs to display the ICAObject hierarchy.
Apple Applications 2003-01-14
iChatAppleScriptSamples (HTML) (DMG) (ZIP)
Sample AppleScripts demonstrating new iChat AppleScript features in Leopard, including Event Handlers.
Apple Applications 2006-08-04
iChatStatusFromApplication (HTML) (DMG) (ZIP)
Demonstrates how to communicate with iChat using Scripting Bridge.
Apple Applications 2008-03-31
ImagesToQTMovie (HTML) (DMG) (ZIP)
Creates a QuickTime movie from the images of any connected camera.
Apple Applications 2003-01-14
iSync Sample Document (HTML) (DMG) (ZIP)
iSync Plug-in Maker sample document, illustrating how to build an iSync plug-in for a SyncML phone.
Apple Applications 2006-08-01
iTunesController (HTML) (DMG) (ZIP)
iTunesController allows you to control iTunes without having to bring it to the foreground.
Apple Applications 2006-02-23
MakeiPhoneRefMovie (HTML) (DMG) (ZIP)
Demonstrates how to generate QuickTime Reference Movies for iPhone.
Apple Applications 2007-08-03
MovieAssembler (HTML) (DMG) (ZIP)
Demonstrates AppleEvent communication with FCP, project modification using XML, and media file identification using metadata.
Apple Applications 2007-11-14
PhotoToss: CSS Transforms, Transitions, and Web Fonts (HTML) (DMG) (ZIP)
Demonstrates how to use CSS Transforms, Transitions, and Web Fonts.
Apple Applications 2008-08-21
PredicateEditorSample (HTML) (DMG) (ZIP)
Demonstrates how to use the NSPredicateEditor class.
Apple Applications 2007-06-06
QCFundamentals (HTML) (DMG) (ZIP)
Demonstrates Coordinate, Interpolation, and Iterative systems in Quartz Composer with an amusing animation
Apple Applications 2006-08-07
QCGalaxy (HTML) (DMG) (ZIP)
Demonstrates use of Particle Systems and Core Image Filters in Quartz Composer
Apple Applications 2006-08-07
QTMetadataEditor (HTML) (DMG) (ZIP)
Demonstrates QuickTime 7 APIs in a Metadata Browsing and Editing application
Apple Applications 2008-05-09
Quartz Composer Live DV (HTML) (DMG) (ZIP)
Shows how to export a Quartz Composer composition as a real-time DV stream on the FireWire port.
Apple Applications 2005-06-01
Quartz Composer Matrix (HTML) (DMG) (ZIP)
Shows how to use Quartz Composer to display a QuickTime movie as a series of frames in a 3D world.
Apple Applications 2005-06-01
Quartz Composer Offline Rendering (HTML) (DMG) (ZIP)
Shows how to render a Quartz Composer composition as a series of images using an OpenGL pBuffer.
Apple Applications 2005-06-01
Quartz Composer QCTV (HTML) (DMG) (ZIP)
Shows how to build a fake TV system using Quartz Composer as the foundation motion graphics.
Apple Applications 2005-07-06
Quartz Composer Texture (HTML) (DMG) (ZIP)
Shows how to use a Quartz Composer composition as an OpenGL texture.
Apple Applications 2005-06-01
Quartz Composer WWDC 2005 Composition (HTML) (DMG) (ZIP)
Shows how to build a parameterized motion graphics composition with Quartz Composer.
Apple Applications 2005-06-01
Quartz Composer WWDC 2005 TextEdit (HTML) (DMG) (ZIP)
Demonstrate how to modify TextEdit's about dialog to display a Quartz Composer composition.
Apple Applications 2005-06-01
QuartzComposerSamplePatches (HTML) (DMG) (ZIP)
A short list of new patches in Quartz Composer Mac OS X 10.5
Apple Applications 2007-06-11
Reminders (HTML) (DMG) (ZIP)
Dashboard widget with a plug-in that displays upcoming iCal events, to do items, and calendars.
Apple Applications 2008-07-25
Resizer (HTML) (DMG) (ZIP)
A widget that demonstrates how to use the Apple Animation and Animator classes.
Apple Applications 2006-08-01
SampleButtonPlugin (HTML) (DMG) (ZIP)
Demonstrates how to write a TWAIN button listener plug-in code module.
Apple Applications 2003-07-10
SampleDS (HTML) (DMG) (ZIP)
Demonstrates how to implement a TWAIN Data Source (DS) for Mac OS X.
Apple Applications 2003-07-10
SampleScannerApp (HTML) (DMG) (ZIP)
This project implements a simple client accessing an ICA scanning device.
Apple Applications 2008-05-07
SayIt (HTML) (DMG) (ZIP)
Web Kit plug-in which speaks text passed via JavaScript
Apple Applications 2006-08-04
SeeMyFriends (HTML) (DMG) (ZIP)
Illustrates how to use SyncServices API in a Carbon (HLTB) based application
Apple Applications 2006-10-16
SimpleCalendar (HTML) (DMG) (ZIP)
Uses the Calendar Store framework to fetch iCal events and display them on a custom calendar.
Apple Applications 2006-07-27
SimpleDownload (HTML) (DMG) (ZIP)
Shows how to use the Image Capture APIs to download a user-selected file to the user's ~/Pictures directory.
Apple Applications 2003-01-14
StickiesExample (HTML) (DMG) (ZIP)
Contains sample code and tools used by Sync Services Tutorial to demonstrate debugging syncing applications.
Apple Applications 2006-08-08
Syncer (HTML) (DMG) (ZIP)
A widget that demonstrates how to use handle a Dashboard Sync event.
Apple Applications 2006-08-01
TextTrack (HTML) (DMG) (ZIP)
Demonstrates some simple operations on Final Cut Pro XML files
Apple Applications 2005-06-27
TimelineToTC (HTML) (DMG) (ZIP)
Sample application demonstrating parsing/conversion of FCP XML Files.
Apple Applications 2007-06-01
UnsharpMask (HTML) (DMG) (ZIP)
Demonstrates how to build Automator actions using Cocoa frameworks.
Apple Applications 2005-06-06
Voices (HTML) (DMG) (ZIP)
Demonstrates use of the widget.system command from Dashboard
Apple Applications 2007-06-25
WebKitCIPlugIn (HTML) (DMG) (ZIP)
This sample WebKit plugin for Safari demonstrate how to use CoreImage in a HTML page.
Apple Applications 2005-11-28
WebKitDOMElementPlugIn (HTML) (DMG) (ZIP)
A Web Kit plug-in that modifies its own DOM element style
Apple Applications 2006-08-04
WebKitPluginStarter (HTML) (DMG) (ZIP)
Shows how to make a minimal WebKit plug-in.
Apple Applications 2007-06-06
WebKitPluginWithJavaScript (HTML) (DMG) (ZIP)
Shows how to call JavaScript from a WebKit plug-in and vice versa.
Apple Applications 2007-06-06
WebKitPluginWithSimpleGUI (HTML) (DMG) (ZIP)
A WebKit plug-in with an Interface Builder GUI
Apple Applications 2007-06-04
AudioCDSample (HTML) (DMG) (ZIP)
Demonstrates how to discover audio CDs and access the TOC information presented by the CD-DA filesystem.
Audio 2005-10-04
AudioDeviceNotify (HTML) (DMG) (ZIP)
Demonstrates how to enumerate audio devices attached to the system and how to handle device notifications
Audio 2006-04-21
AudioQueueTest (HTML) (DMG) (ZIP)
Demonstrates AudioQueue, an audio playback API introduced in Mac OS X 10.5
Audio 2006-08-01
AudioQueueTools (HTML) (DMG) (ZIP)
Demonstrates usage of the AudioQueue API
Audio 2007-06-08
CAPlayThrough (HTML) (DMG) (ZIP)
Illustrates how to use the HAL's Audio Output Unit (AUHAL) for device input and the Default Output Audio Unit for output.
Audio 2007-08-22
dist_fft (HTML) (DMG) (ZIP)
Gigaelement FFTs on Apple G5 clusters
Audio 2004-08-23
ExtractMovieAudioToAIFF (HTML) (DMG) (ZIP)
Demonstrates how to extract audio from QuickTime Movies and write the data to an AIFF file.
Audio 2006-03-31
FilterDemo (HTML) (DMG) (ZIP)
Demonstrates how to write a filter AudioUnit with a custom Cocoa User Interface.
Audio 2005-06-01
MoreIsBetter (HTML) (DMG) (ZIP)
Library providing indispensable wrapers and workarounds for many areas of Mac OS programming.
Audio 2003-10-27
OpenALExample (HTML) (DMG) (ZIP)
Basic example showing OpenAL usage in a 2D OpenGL environment
Audio 2005-06-01
QTAudioContextInsert (HTML) (DMG) (ZIP)
Demonstrates use of Audio Context Insert APIs to perform custom processing on QuickTime's audio stream.
Audio 2008-01-21
QTAudioExtractionPanel (HTML) (DMG) (ZIP)
Enhances the QTKitPlayer to add an Audio Channel Mapping and Extraction panel
Audio 2005-06-27
QTExtractAndConvertToAIFF (HTML) (DMG) (ZIP)
Demonstrates using MovieAudioExtraction and an AudioConverter to extract and convert audio to a AIFF file.
Audio 2006-11-08
QTExtractAndConvertToMovieFile (HTML) (DMG) (ZIP)
Demonstrates using MovieAudioExtraction and an AudioConverter to extract and convert audio to a QuickTime movie file.
Audio 2006-11-08
RecordAudioToFile (HTML) (DMG) (ZIP)
Demonstrates recording audio to an AAC file using Core Audio
Audio 2007-02-27
SampleUSBAudioPlugin (HTML) (DMG) (ZIP)
USB audio plugin that performs a lowpass filtering operation on audio streamed through an audio USB Device.
Audio 2005-03-07
SillyFrequencyLevels (HTML) (DMG) (ZIP)
Demonstrates how to obtain audio frequency levels from a Movie using SetMovieAudioFrequencyMeteringNumBands and GetMovieAudioFrequencyLevels APIs.
Audio 2006-01-25
SimpleAudioExtraction (HTML) (DMG) (ZIP)
Demonstrates the QuickTime 7.0 Movie Audio Extraction APIs
Audio 2006-01-03
SimplePlayThru (HTML) (DMG) (ZIP)
Use the HAL's Audio Output Unit (AUHAL) for device input and output on a single device (play-thru)
Audio 2006-10-25
SimpleSpeechRecExample (HTML) (DMG) (ZIP)
Demonstrates how to use the Speech Recognition Manager in a simple application.
Audio 2003-03-26
SimpleUserClient (HTML) (DMG) (ZIP)
Shows how to create a user client for an I/O Kit kernel driver.
Audio 2008-08-27
TremoloUnit (HTML) (DMG) (ZIP)
Audio unit sample demonstrating how to build an effect unit with a generic view.
Audio 2006-10-26
VelEng FFT (HTML) (DMG) (ZIP)
G4 Velocity Engine implementation of Fast Fourier Transform (FFT) and associated convolution/correlation routines.
Audio 2003-01-14
WhackedTV (HTML) (DMG) (ZIP)
A Cocoa version of the venerable HackTV sample code, demonstrating usage of the Sequence Grabber API's
Audio 2008-05-09
ABPresence (HTML) (DMG) (ZIP)
Displays a list of all the people in your Address Book and their iChat status.
Carbon 2006-08-04
AddNibToNav (HTML) (DMG) (ZIP)
Shows how to create a custom area, instantiated from a nib file, in a Navigation Services dialog.
Carbon 2004-01-22
AddressBookCarbon (HTML) (DMG) (ZIP)
Demonstrates some basic manipulations of the Mac OS X 10.2.x (and beyond) Address Book API.
Carbon 2003-01-14
AddressBookCocoa (HTML) (DMG) (ZIP)
Demonstrates some basic manipulations of the Mac OS X 10.2.x (and beyond) Address Book API.
Carbon 2003-01-14
AESendThreadSafe (HTML) (DMG) (ZIP)
Demonstrates how to send Apple events from threads other than the main thread.
Carbon 2007-03-09
aglClipBufferRect (HTML) (DMG) (ZIP)
Shows the use of clip regions and buffer rects in AGL.
Carbon 2003-01-14
AGLSurfaceTexture (HTML) (DMG) (ZIP)
Example of render to texture/texture from surface using aglSurfaceTexture.
Carbon 2003-07-07
AlbumToSlideshow (HTML) (DMG) (ZIP)
Demonstrates using CF and NSXML to create Final Cut Pro XML.
Carbon 2008-05-15
AppleScriptRunner (HTML) (DMG) (ZIP)
How to send mail and execute other AppleScripts from a Carbon application.
Carbon 2006-07-31
AsyncPB (HTML) (DMG) (ZIP)
Deprecated - Describes how to chain File System calls from an interrupt handler like a Time Manager task.
Carbon 2003-10-27
ATSUICurveAccessDemo (HTML) (DMG) (ZIP)
Demonstrates low-level ATSUI APIs which allow access to raw glyph curve data.
Carbon 2003-01-14