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
CocoaSpeechSynthesisExample (HTML) (DMG) (ZIP)
Shows how to use the Carbon Speech Synthesis API from within a Mac OS X Cocoa application.
Accessibility 2003-06-18
Dicey (HTML) (DMG) (ZIP)
Dicey is a dice game project that demonstrates various techniques for making a Cocoa application accessible.
Accessibility 2006-08-01
SayIt (HTML) (DMG) (ZIP)
Web Kit plug-in which speaks text passed via JavaScript
Accessibility 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 2005-08-01
AppleScriptRunner (HTML) (DMG) (ZIP)
How to send mail and execute other AppleScripts from a Carbon application.
Apple Applications 2005-01-24
Birthdays (HTML) (DMG) (ZIP)
Dashboard widget with a plug-in that queries AddressBook.framework for contacts with upcoming birthdays
Apple Applications 2006-07-28
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 2005-11-03
Fortune (HTML) (DMG) (ZIP)
Demonstrates use of a widget plug-in
Apple Applications 2005-06-01
Goodbye World (HTML) (DMG) (ZIP)
Demonstrates display and use of widget preferences to save a widget's state
Apple Applications 2005-06-01
Hello Welt (HTML) (DMG) (ZIP)
Demonstrates localization techniques for Dashboard widgets
Apple Applications 2005-06-01
Hello World (HTML) (DMG) (ZIP)
Introductory Dashboard widget example
Apple Applications 2005-06-01
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
ImagesToQTMovie (HTML) (DMG) (ZIP)
Creates a QuickTime movie from the images of any connected camera.
Apple Applications 2003-01-14
iTunesController (HTML) (DMG) (ZIP)
iTunesController allows you to control iTunes without having to bring it to the foreground.
Apple Applications 2006-02-23
PictureShow (HTML) (DMG) (ZIP)
Shows how to create a Keynote document via code, demonstrated with a Java command-line tool.
Apple Applications 2003-03-05
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
SampleRSS (HTML) (DMG) (ZIP)
Demonstrates use of the XMLHttpRequest JavaScript object
Apple Applications 2005-11-04
SayIt (HTML) (DMG) (ZIP)
Web Kit plug-in which speaks text passed via JavaScript
Apple Applications 2006-08-04
Scroller (HTML) (DMG) (ZIP)
Dashboard widget with a DHTML scrollbar implementation
Apple Applications 2005-11-04
SeeMyFriends (HTML) (DMG) (ZIP)
Illustrates how to use SyncServices API in a Carbon (HLTB) based application
Apple Applications 2005-06-06
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-09-18
Stretcher (HTML) (DMG) (ZIP)
Demonstrates auto-resizing of a Dashboard widget
Apple Applications 2005-11-04
TextTrack (HTML) (DMG) (ZIP)
Demonstrates some simple operations on Final Cut Pro XML files
Apple Applications 2005-06-27
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 2005-06-01
WebKitCIPlugIn (HTML) (DMG) (ZIP)
This sample WebKit plugin for Safari demonstrate how to use CoreImage in a HTML page.
Apple Applications 2005-11-28
AppleScriptRunner (HTML) (DMG) (ZIP)
How to send mail and execute other AppleScripts from a Carbon application.
AppleScript 2005-01-24
AttachAScript (HTML) (DMG) (ZIP)
Illustrates how you can extend any Cocoa application by adding some AppleScripts to it.
AppleScript 2006-07-24
DeskPictAppDockMenu (HTML) (DMG) (ZIP)
How to add a dynamic Dock menu to your Cocoa application
AppleScript 2003-01-14
Duplicate Finder Items (HTML) (DMG) (ZIP)
Shows how to build an Automator action targeting Finder using AppleScript.
AppleScript 2005-06-06
EmbededAppleScripts (HTML) (DMG) (ZIP)
Extending the functionality of your application by adding precompiled AppleScripts.
AppleScript 2003-09-04
HelloStudio (HTML) (DMG) (ZIP)
This is a Hello, world application built using AppleScript Studio.
AppleScript 2006-07-28
iTunesController (HTML) (DMG) (ZIP)
iTunesController allows you to control iTunes without having to bring it to the foreground.
AppleScript 2006-02-23
LocalServer (HTML) (DMG) (ZIP)
Deprecated - Sample demonstrates how a Classic process can communicate with a Mac OS X process using IP networking protocols.
AppleScript 2003-01-30
MoreAppleEvents (HTML) (DMG) (ZIP)
Provides routines that assist with the creation and sending of Apple events and object descriptors.
AppleScript 2003-01-14
MoreIsBetter (HTML) (DMG) (ZIP)
Library providing indispensable wrapers and workarounds for many areas of Mac OS programming.
AppleScript 2003-10-27
MoreOSL (HTML) (DMG) (ZIP)
C library for implementing AppleScript support within your application.
AppleScript 2003-01-14
ODOC (HTML) (DMG) (ZIP)
Illustrates how to send an open document ('odoc') Apple event to another application process.
AppleScript 2003-01-14
Processes (HTML) (DMG) (ZIP)
This process management application uses most of AppleScript Studio's significant features.
AppleScript 2006-07-28
SampleCMPlugIn (HTML) (DMG) (ZIP)
A contextual menu plugIn for Mac OS X.
AppleScript 2006-10-09
ScriptingDefinitions (HTML) (DMG) (ZIP)
Provides a starting sdef (scripting definition) and a completed one for the Sketch example code.
AppleScript 2005-11-28
ScriptView (HTML) (DMG) (ZIP)
Shows how to build a script editor application with a built-in script database using AppleScript Studio.
AppleScript 2005-06-01
Set Folder Windows (HTML) (DMG) (ZIP)
Shows an AppleScript droplet to set up drive and folder windows in preparation for burning a CD.
AppleScript 2003-01-14
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.
AppleScript 2005-06-06
SuspendAppleEvent (HTML) (DMG) (ZIP)
Illustrates how to suspend and resume AppleEvents.
AppleScript 2003-10-14
TextEditPlus (HTML) (DMG) (ZIP)
This application is a version of TextEdit enhanced with additional document properties using AppleScript Studio.
AppleScript 2006-07-28
UpdateXcodeSubprojects (HTML) (DMG) (ZIP)
Updates all subprojects of an Xcode project to Xcode 2.1 format. Illustrates scripting techniques.
AppleScript 2005-06-06
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
ComplexPlayThru (HTML) (DMG) (ZIP)
Use the HAL's Audio Output Unit (AUHAL) for device input and output with different devices (play-thru)
Audio 2006-07-20
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
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
QTAudioExtractionPanel (HTML) (DMG) (ZIP)
Enhances the QTKitPlayer to add an Audio Channel Mapping and Extraction panel
Audio 2005-06-27
RecordAudioToFile (HTML) (DMG) (ZIP)
Demonstrates recording audio to an AAC file using Core Audio
Audio 2006-07-25
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 2004-07-09
SimpleSpeechRecExample (HTML) (DMG) (ZIP)
Demonstrates how to use the Speech Recognition Manager in a simple application.
Audio 2003-03-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 2005-07-22
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
AE Interaction Sample (HTML) (DMG) (ZIP)
Provides an interactive demonstration of what the different Apple Event Manager interaction levels mean at the user level.
Carbon 2003-01-14
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 2005-08-01
AppleScriptRunner (HTML) (DMG) (ZIP)
How to send mail and execute other AppleScripts from a Carbon application.
Carbon 2005-01-24
AppUsingSheets (HTML) (DMG) (ZIP)
Implements a simple, document-based application that uses sheets during printing.
Carbon 2003-01-14
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
ATSUIDirectAccessDemo (HTML) (DMG) (ZIP)
Demonstrates some basic manipulations of the ATSUI DirectAccess api.
Carbon 2003-01-14
audioburntest (HTML) (DMG) (ZIP)
Uses the DRTrackCallbackProc and track properties to create a RedBook audio CD from AIFF files.
Carbon 2003-01-14
AudioDeviceNotify (HTML) (DMG) (ZIP)
Demonstrates how to enumerate audio devices attached to the system and how to handle device notifications
Carbon 2006-04-21
BackgroundExporter (HTML) (DMG) (ZIP)
Demonstrates techniques which can be used to export QuickTime movies in a separate export process.
Carbon 2005-07-22
BasicDataBrowser (HTML) (DMG) (ZIP)
Shows how to create a basic, functional data browser.
Carbon 2003-05-08
BasicInputMethod (HTML) (DMG) (ZIP)
An input method implemented as a text service component for Mac OS X.
Carbon 2003-01-14
BasicPlugIn (HTML) (DMG) (ZIP)
Uses the CFPlugin to locate, load, execute plugin. Derived from the SillyBalls sample.
Carbon 2003-07-28
BrideOfMungGrab (HTML) (DMG) (ZIP)
Demonstrates the use of overlay windows and CG to draw text on captured video.
Carbon 2005-08-12
BSDLLCTest (HTML) (DMG) (ZIP)
Program sample demonstrates how to send and receive raw LLC Ethernet packets.
Carbon 2003-06-12
BufferedWindows (HTML) (DMG) (ZIP)
Demonstrates the use of QDFlushPortBuffer to refresh buffered windows.
Carbon 2003-01-14
bulkerase (HTML) (DMG) (ZIP)
Demonstrates how to erase media using the DiscRecording framework.
Carbon 2003-01-14
Calculator (HTML) (DMG) (ZIP)
Implements a simple "four-banger" calculator.
Carbon 2003-01-30
CalendarView (HTML) (DMG) (ZIP)
Shows how to subclass HIView using C, as well as drawing and hit testing.
Carbon 2003-01-30
CallMachOFramework (HTML) (DMG) (ZIP)
Shows two ways of calling a Mach-O framework from a CFM application on Mac OS X.
Carbon 2003-07-17
Carbon GLSnapshot (HTML) (DMG) (ZIP)
Demonstrates the use of OpenGL with Quicktime to capture OpenGL content.
Carbon 2003-07-07
Carbon Porting Tutorial (HTML) (DMG) (ZIP)
Porting a simple application from Mac OS 9 to Mac OS X
Carbon 2006-07-25
CarbonBonjour (HTML) (DMG) (ZIP)
Demonstrates using CFNetServices (Bonjour) in a Carbon application.
Carbon 2006-10-03