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
Sort by
Topic
Sorted by
Date
MethodReplacement (HTML) (DMG) (ZIP)
Demonstrates an Objective C 2 compatible way to replace a method in an existing Objective C class.
Cocoa 2006-08-01
MigrationV2 (HTML) (DMG) (ZIP)
Demonstrates using a migration mapping and policy to migrate from one store model version to another.
Cocoa 2006-08-01
QTKitButtonTester (HTML) (DMG) (ZIP)
Shows how to use the QTMovieView methods for hiding and showing the buttons in the movie controller bar.
Cocoa, QuickTime 2006-08-01
QTKitThreadedExport (HTML) (DMG) (ZIP)
Shows how to export a QTMovie on a background thread.
Cocoa, QuickTime 2006-08-01
QTNoStepsDemo (HTML) (DMG) (ZIP)
Shows how to subclass QTMovieView to override its default behaviors.
Cocoa, QuickTime 2006-08-01
QuickLookSketch (HTML) (DMG) (ZIP)
A Quick Look preview generator for the Sketch sample application.
Tools 2006-08-01
Resizer (HTML) (DMG) (ZIP)
A widget that demonstrates how to use the Apple Animation and Animator classes.
Apple Applications 2006-08-01
SetCustomIcon (HTML) (DMG) (ZIP)
Demonstrates how to programmatically set a custom icon for a file, folder, or disk.
Carbon, Graphics & Imaging, User Experience 2006-08-01
Syncer (HTML) (DMG) (ZIP)
A widget that demonstrates how to use handle a Dashboard Sync event.
Apple Applications 2006-08-01
TrackFormatDemo (HTML) (DMG) (ZIP)
Shows how to get a human-readable, localized description of a track's format.
Cocoa, QuickTime 2006-08-01
WritableFileDemo (HTML) (DMG) (ZIP)
Shows how to create an empty, writable file associated with a QTMovie object.
Cocoa, QuickTime 2006-08-01
AppleScriptRunner (HTML) (DMG) (ZIP)
How to send mail and execute other AppleScripts from a Carbon application.
Apple Applications, Carbon, Scripting & Automation, User Experience 2006-07-31
PDF Annotation Editor (HTML) (DMG) (ZIP)
Demonstrates how to use PDF Kit to examine, edit, and create PDF annotations.
Cocoa, Graphics & Imaging 2006-07-31
PDF Calendar (HTML) (DMG) (ZIP)
Demonstrates how to use PDF Kit to create PDF content.
Cocoa, Graphics & Imaging 2006-07-31
Birthdays (HTML) (DMG) (ZIP)
Dashboard widget with a plug-in that queries AddressBook.framework for contacts with upcoming birthdays
Apple Applications, Tools 2006-07-28
HelloStudio (HTML) (DMG) (ZIP)
This is a Hello, world application built using AppleScript Studio.
Scripting & Automation 2006-07-28
NameAndPassword (HTML) (DMG) (ZIP)
NameAndPassword is a SFAuthorizationPluginView subclass example.
Security 2006-07-28
Processes (HTML) (DMG) (ZIP)
This process management application uses most of AppleScript Studio's significant features.
Scripting & Automation 2006-07-28
TextEditPlus (HTML) (DMG) (ZIP)
This application is a version of TextEdit enhanced with additional document properties using AppleScript Studio.
Scripting & Automation 2006-07-28
AttachAScript (HTML) (DMG) (ZIP)
Illustrates how you can extend any Cocoa application by adding some AppleScripts to it.
Cocoa, Scripting & Automation 2006-07-27
IdentitySample (HTML) (DMG) (ZIP)
IdentitySample builds a utility which demonstrates how to use the CoreServices Identity API to manage system-wide identities
Core Foundation, Networking, Security 2006-07-27
SimpleCalendar (HTML) (DMG) (ZIP)
Uses the Calendar Store framework to fetch iCal events and display them on a custom calendar.
Apple Applications, Cocoa, Internet & Web 2006-07-27
Carbon Porting Tutorial (HTML) (DMG) (ZIP)
Porting a simple application from Mac OS 9 to Mac OS X
Carbon, Porting, User Experience 2006-07-25
CarbonCocoaCoreImageTab (HTML) (DMG) (ZIP)
Carbon-based application creates a Cocoa-based web window which used CoreImage filters to transition between tabbed WebViews
Carbon, Cocoa, Graphics & Imaging, Porting 2006-07-25
qtdataexchange.win (HTML) (DMG) (ZIP)
Import files, export a movie into any format supported by QuickTime's movie exporters.
QuickTime 2006-07-20
PMPrinterPrintWithFile (HTML) (DMG) (ZIP)
How to send files, for example PostScript and PDF, directly to the printer. Replaces the pict-ps path.
Carbon, Graphics & Imaging, Printing 2006-07-18
GLSLShowpiece (HTML) (DMG) (ZIP)
GLSLShowpiece demonstrates several Vertex and Fragment shaders
Cocoa, Games, Graphics & Imaging 2006-07-17
JSheets (HTML) (DMG) (ZIP)
Uses AWT Native Interface (JAWT) to Display Cocoa sheet dialogs in Java
Java 2006-07-11
MovieVideoChart (HTML) (DMG) (ZIP)
Demonstrates direct access to video samples in movie files, using B-frame-aware APIs in QuickTime 7.
QuickTime 2006-07-11
QTPixelBufferVCToCGImage (HTML) (DMG) (ZIP)
Demonstrates using QTPixelBufferContextCreate with NewMovieFromProperties to output pixel buffers from a movie and draw them.
Graphics & Imaging, QuickTime 2006-07-07
AddTextMovie (HTML) (DMG) (ZIP)
Adds a text track to an existing movie selected by the user.
Java, QuickTime 2006-06-28
ImageFile (HTML) (DMG) (ZIP)
Shows how to use GraphicsImporter to import and display a wide range of image file formats.
Java, QuickTime 2006-06-28
QTSimpleApplet (HTML) (DMG) (ZIP)
Shows how to display any QuickTime content within a java.awt.Applet.
Java, QuickTime 2006-06-28
QTStreamingApplet (HTML) (DMG) (ZIP)
Shows how to display QuickTime streaming content within a java.awt.Applet.
Java, QuickTime 2006-06-28
TimeCode (HTML) (DMG) (ZIP)
Demonstrates how to add and remove TimeCode tracks to a movie.
Java, QuickTime 2006-06-28
Test64BitMultiprec (HTML) (DMG) (ZIP)
Implements (PPC) A*Y+B where A & B are arrays of 64-bit words and Y is a 64-bit integer
Performance, Tools 2006-06-09
CreatePictFile (HTML) (DMG) (ZIP)
Creates a QTComponent from a PICT, JPEG or GIF file using a GraphicsImporter.
Java, QuickTime 2006-05-11
CustomMedia (HTML) (DMG) (ZIP)
Demonstrates how to subclass quicktime.std.movies.media.Media to support custom media types.
Java, QuickTime 2006-05-11
DukeMovie (HTML) (DMG) (ZIP)
Demonstrates playback of any QuickTime content within a java.awt display space using a QTComponent.
Java, QuickTime 2006-05-11
ImportExport (HTML) (DMG) (ZIP)
Demonstrates both importing and referencing a media file and performing a movie export with customisable settings.
Java, QuickTime 2006-05-11
KeyboardController (HTML) (DMG) (ZIP)
Shows how to customise user controlled playback of a movie using the keyboard.
Java, QuickTime 2006-05-11
MovieCallbacks (HTML) (DMG) (ZIP)
Shows how to display a QuickTime movie within a window and add Call-backs.
Java, QuickTime 2006-05-11
MovieTextFinder (HTML) (DMG) (ZIP)
Shows how to search for text within the text track of a QuickTime movie.
Java, QuickTime 2006-05-11
Music (HTML) (DMG) (ZIP)
Shows how to use QuickTime's music components.
Java, QuickTime 2006-05-11
PlayMovie (HTML) (DMG) (ZIP)
Demonstrates QuickTime content playback within a java.awt.Frame using the QTFactory to create a QTComponent.
Java, QuickTime 2006-05-11
PlaySound (HTML) (DMG) (ZIP)
Shows how to play a sound or midi file using AWT rather than a QTComponent.
Java, QuickTime 2006-05-11
PlayTune (HTML) (DMG) (ZIP)
Shows how to use the TunePlayer to play a Tune using the QuickTime Music Architecture.
Java, QuickTime 2006-05-11
TimeCallbackDemo (HTML) (DMG) (ZIP)
Demonstrates how to add and remove TimeCode tracks to a movie.
Java, QuickTime 2006-05-11
ImageProducing (HTML) (DMG) (ZIP)
Demonstrates how to display any QuickTime drawing object using Java's ImageProducing model.
Java, QuickTime 2006-05-05
LiveVideoMixer2 (HTML) (DMG) (ZIP)
An updated LiveVideoMixer with DV out over FireWire
Graphics & Imaging, QuickTime 2006-05-05
SoundMemRecord (HTML) (DMG) (ZIP)
This code shows using the SoundManager SPB calls for simple audio recording to memory.
Java, QuickTime 2006-05-05
SoundRecord (HTML) (DMG) (ZIP)
Shows using the SequenceGrabber for simple audio recording
Java, QuickTime 2006-05-05
AudioDeviceNotify (HTML) (DMG) (ZIP)
Demonstrates how to enumerate audio devices attached to the system and how to handle device notifications
Audio, Carbon, Cocoa 2006-04-21
Bouncy (HTML) (DMG) (ZIP)
Demostrates using Shark For Java to profile Java Applications
Java 2006-04-17
Fractal Performance (HTML) (DMG) (ZIP)
Three fractal applications that show various bottlenecks and how they can be fixed.
Graphics & Imaging, Java, Performance, Tools 2006-04-17
BlockedEventQueue (HTML) (DMG) (ZIP)
Counter-example: shows hang when Java ActionListener blocks AWTEventQueue
Java 2006-04-13
CWCocoaComponent (HTML) (DMG) (ZIP)
Native color picker Integration for AWT/Swing applications using NSColorWell and NSColorPanel
Java 2006-04-12
HelpHook (HTML) (DMG) (ZIP)
Simple Help Viewer integration for J2SE applications, using a native Cocoa library.
Java, User Experience 2006-04-12
JavaSplashScreen (HTML) (DMG) (ZIP)
Deprecated - Quickly display a splash screen while instantiating the 1.4.x/1.5 JVM from a Cocoa application.
Java, Performance 2006-04-12
MyFirstJNIProject (HTML) (DMG) (ZIP)
A Java application that calls the Address Book framework through the JNI
Java, Tools, User Experience 2006-04-12
QCCocoaComponent (HTML) (DMG) (ZIP)
Displays Quartz Composer compositions inside a Swing JFrame
Java 2006-04-12
simpleJavaLauncher (HTML) (DMG) (ZIP)
How to launch 1.4.x and future JVM's from a Core Foundation tool.
Java, Porting, Tools 2006-04-12
SkyCreator (HTML) (DMG) (ZIP)
Demonstrates using the QuartzDebug utility with Java Applications by creating a random image of a starry sky.
Java 2006-04-12
ExtractMovieAudioToAIFF (HTML) (DMG) (ZIP)
Demonstrates how to extract audio from QuickTime Movies and write the data to an AIFF file.
Audio, Cocoa, QuickTime 2006-03-31
WcharDataFormatter (HTML) (DMG) (ZIP)
An example of how to write a custom data formatter.
Tools 2006-03-31
DragItemAround (HTML) (DMG) (ZIP)
Illustrates creating a custom subclass of NSView.
Cocoa 2006-03-16
SpecialPictureProtocol (HTML) (DMG) (ZIP)
Use a custom NSURLProtocol to create jpeg images in memory for display in a webView.
Cocoa, Internet & Web 2006-03-13
HISimpleList (HTML) (DMG) (ZIP)
Illustrates how to create a simple list using the HIView APIs introduced in Mac OS X 10.2.
Carbon 2006-03-03
QTSetMovieAudioDevice (HTML) (DMG) (ZIP)
Create a QT audio context for an audio output device and target a movie to render to the context
QuickTime 2006-03-03
iTunesController (HTML) (DMG) (ZIP)
iTunesController allows you to control iTunes without having to bring it to the foreground.
Apple Applications, Carbon, Scripting & Automation, User Experience 2006-02-23
QTCarbonCoreImage101 (HTML) (DMG) (ZIP)
Demonstrates how to render QuickTime Movies using Core Image filters and the new video pipeline.
Carbon, Graphics & Imaging, QuickTime 2006-02-14
CheckExecutableArchitecture (HTML) (DMG) (ZIP)
Determine whether a particular Mach-O executable contains a version suitable for executing on a given processor architecture.
Carbon, Cocoa, Core Foundation, Darwin 2006-02-07
CDROMSample (HTML) (DMG) (ZIP)
Demonstrates how to find CD-ROM media and read sectors from that media on Mac OS X.
Hardware & Drivers 2006-01-31
SillyFrequencyLevels (HTML) (DMG) (ZIP)
Demonstrates how to obtain audio frequency levels from a Movie using SetMovieAudioFrequencyMeteringNumBands and GetMovieAudioFrequencyLevels APIs.
Audio, Carbon, Cocoa, QuickTime 2006-01-25
CFNetworkHTTPDownload (HTML) (DMG) (ZIP)
Demonstrates how to download a URL using CFNetworking.
Carbon, Core Foundation, Networking 2006-01-18
QTMetaData (HTML) (DMG) (ZIP)
Demonstrates the QuickTime 7 MetaData APIs in a Carbon application.
Carbon, QuickTime 2006-01-12
filesystem_examples (HTML) (DMG) (ZIP)
Collection of command line tools illustrating filesystem features.
Carbon, Cocoa, Core Foundation, Darwin 2006-01-10
CFMBonjourSample (HTML) (DMG) (ZIP)
CFMBonjourSample shows how to use the service discovery routines of CFNetServices from a CFM application.
Carbon, Core Foundation, Networking 2006-01-03
QTKitMovieShuffler (HTML) (DMG) (ZIP)
Demonstrates a simple QTKit movie player application.
Cocoa, QuickTime 2006-01-03
SampleFilterScheme (HTML) (DMG) (ZIP)
Demonstrates a simple filter scheme which passes all operations through to its provider unchanged.
Darwin, Hardware & Drivers, Mac OS X Server, Storage 2006-01-03
SimpleAudioExtraction (HTML) (DMG) (ZIP)
Demonstrates the QuickTime 7.0 Movie Audio Extraction APIs
Audio, QuickTime 2006-01-03
ThreadsExportMovie (HTML) (DMG) (ZIP)
Demonstrates movie exporting using the QuickTime movie export component on separate threads of a Cocoa application.
Cocoa, QuickTime 2006-01-03
WebKitCIPlugIn (HTML) (DMG) (ZIP)
This sample WebKit plugin for Safari demonstrate how to use CoreImage in a HTML page.
Apple Applications, Graphics & Imaging, Internet & Web 2005-11-28
CreateMovie - C# (HTML) (DMG) (ZIP)
Visual C# application demonstrating the QuickTime 7 COM Control creating movies from images and saving them
QuickTime 2005-11-09
CreateMovie - VB6 (HTML) (DMG) (ZIP)
Using the QuickTime 7 COM Control to create a movie from images and save the movie to disk
QuickTime 2005-11-09
EventMonitorTest (HTML) (DMG) (ZIP)
Receive notification of all keyboard, mouse, and tablet events passed to other processes.
Carbon, Core Foundation 2005-11-09
MoviePlayer - C# (HTML) (DMG) (ZIP)
Microsoft Visual C# application which uses the QuickTime 7 COM Control to display and manipulate movies
QuickTime 2005-11-09
CocoaDVDPlayer (HTML) (DMG) (ZIP)
Demonstrates how to use DVD Playback Services to play DVD-Video media.
Graphics & Imaging 2005-11-04
Scroller (HTML) (DMG) (ZIP)
Dashboard widget with a DHTML scrollbar implementation
Apple Applications 2005-11-04
TabsShowcase (HTML) (DMG) (ZIP)
Shows how to instantiate and use the Tab control both programmatically and from a nib file.
Carbon 2005-10-28
FileNotification (HTML) (DMG) (ZIP)
kqueue file notification introduced in 10.3. Notification API to detect file system modifications.
Carbon, Cocoa, Core Foundation, Darwin 2005-10-27
GetPrimaryMACAddress (HTML) (DMG) (ZIP)
Demonstrates retrieving the MAC address of the built-in Ethernet controller. Useful for uniquely identifying a Macintosh system.
Carbon, Cocoa, Darwin, Games, Hardware & Drivers, Mac OS X Server, Networking, Security 2005-10-27
SampleD (HTML) (DMG) (ZIP)
Demonstrates use of launchd and Apple System Logger.
Darwin 2005-10-27
AuthForAll (HTML) (DMG) (ZIP)
Shows how to use Authorization Services to create a self-restricted application.
Security 2005-10-26
DelegateOnlyComponent (HTML) (DMG) (ZIP)
Image Codec Component which simply delegates to a real Image Codec (in this case a '2vuy' decompressor).
QuickTime 2005-10-18
HICustomPushButton (HTML) (DMG) (ZIP)
Illustrates how to create a simple custom push button using the HIView functions introduced in Mac OS X 10.2.
Carbon 2005-10-17
ImageMapView (HTML) (DMG) (ZIP)
Demonstrates how to add Accessibility to a complex custom HIView and the related parts of an application.
Carbon 2005-10-17
LoginItemsAE (HTML) (DMG) (ZIP)
Uses Apple events to manipulate the list of login items (items launched when you log in).
Carbon, Cocoa 2005-10-17
MoviePlayer (HTML) (DMG) (ZIP)
A simple movie player application written in Microsoft Visual Basic 6 using the QuickTime 7 COM/ActiveX Control.
QuickTime 2005-10-13
AudioCDSample (HTML) (DMG) (ZIP)
Demonstrates how to discover audio CDs and access the TOC information presented by the CD-DA filesystem.
Audio, Hardware & Drivers 2005-10-04