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
SimplePlayThru (HTML) (DMG) (ZIP)
Use the HAL's Audio Output Unit (AUHAL) for device input and output on a single device (play-thru)
Audio, Carbon, Games, Hardware & Drivers 2006-10-25
AppleJavaExtensions (HTML) (DMG) (ZIP)
Stub classes for compiling com.apple.eawt/com.apple.eio references on non-Mac OS X platforms.
Java 2006-10-17
SeeMyFriends (HTML) (DMG) (ZIP)
Illustrates how to use SyncServices API in a Carbon (HLTB) based application
Apple Applications, Carbon 2006-10-16
USBPrivateDataSample (HTML) (DMG) (ZIP)
Demonstrates notifications when a USB device is hotplugged and associating arbitrary data with each device.
Hardware & Drivers 2006-10-16
VolumeToBSDNode (HTML) (DMG) (ZIP)
Shows how to iterate across all mounted volumes and retrieve their BSD node names.
Carbon, Darwin, Hardware & Drivers, Mac OS X Server, Storage 2006-10-16
CFFTPSample (HTML) (DMG) (ZIP)
A simple example showing how to use CFFTPStream to download and upload files.
Core Foundation, Networking 2006-10-13
CFPrefTopScores (HTML) (DMG) (ZIP)
How to access globally shared (writable) user preferences without requiring authentication.
Carbon, Core Foundation, Games, Porting 2006-10-09
MyCustomColorPicker (HTML) (DMG) (ZIP)
Shows how to write a custom color picker using Cocoa.
Cocoa, Graphics & Imaging, User Experience 2006-10-09
RecentItems (HTML) (DMG) (ZIP)
Implements "Recent items" menu(s)
Carbon, Core Foundation 2006-10-09
SampleCMPlugIn (HTML) (DMG) (ZIP)
A contextual menu plugIn for Mac OS X.
Carbon, Scripting & Automation 2006-10-09
CxxNewDelete (HTML) (DMG) (ZIP)
How to override the C++ 'new' and 'delete' operators.
Tools 2006-10-03
CarbonQuartzComposer_TV (HTML) (DMG) (ZIP)
Demonstrates how to integrate Cocoa based QuartzComposer window into a Carbon based application
Carbon, Cocoa, Graphics & Imaging, Porting 2006-10-02
ImageBackground (HTML) (DMG) (ZIP)
Shows how to draw an image in the background of an NSOutlineView and NSTableView.
Cocoa, Graphics & Imaging, User Experience 2006-10-02
PBORenderToVertexArray (HTML) (DMG) (ZIP)
This sample demonstrates render-to-vertex-array using FBO, PBO, and VBO.
Graphics & Imaging 2006-10-02
VendorSpecificType00 (HTML) (DMG) (ZIP)
Demonstrates how to access vendor-specific storage device functionality using a simple interface from user space code.
Darwin, Hardware & Drivers 2006-10-02
CITransitionSelectorSample2 (HTML) (DMG) (ZIP)
Showing all available Core Image transitions in a scrollable NSOpenGLView
Graphics & Imaging 2006-09-18
FBOBunnies (HTML) (DMG) (ZIP)
Demonstrates how to use framebuffer objects (FBO)
Graphics & Imaging, Performance 2006-09-18
Quartz2DBasics (HTML) (DMG) (ZIP)
Carbon and Cocoa sample code demonstrating some basic usage of the Quartz 2D API
Carbon, Cocoa, Graphics & Imaging 2006-09-11
InstallerPluginSample (HTML) (DMG) (ZIP)
Provides instructions for extending software installation using custom plugins
Games, Tools, User Experience 2006-08-30
SCAudioCompress (HTML) (DMG) (ZIP)
Demonstrates audio compression using QuickTime Standard Audio Compression Component
QuickTime 2006-08-22
StickiesExample (HTML) (DMG) (ZIP)
Contains sample code and tools used by Sync Services Tutorial to demonstrate debugging syncing applications.
Apple Applications, Carbon, Cocoa, Internet & Web, User Experience 2006-08-08
QCFundamentals (HTML) (DMG) (ZIP)
Demonstrates Coordinate, Interpolation, and Iterative systems in Quartz Composer with an amusing animation
Apple Applications, Cocoa, Graphics & Imaging, Tools 2006-08-07
QCGalaxy (HTML) (DMG) (ZIP)
Demonstrates use of Particle Systems and Core Image Filters in Quartz Composer
Apple Applications, Cocoa, Graphics & Imaging, Tools 2006-08-07
ABPresence (HTML) (DMG) (ZIP)
Displays a list of all the people in your Address Book and their iChat status.
Apple Applications, Carbon, Cocoa, Internet & Web, Storage, User Experience 2006-08-04
HIToolboxSOU-Delegates (HTML) (DMG) (ZIP)
Shows how to use the HIObject Delegate API.
Carbon 2006-08-04
HIToolboxSOU-MenuItemViews (HTML) (DMG) (ZIP)
Shows how to use the Menu Item View API.
Carbon 2006-08-04
iChatAppleScriptSamples (HTML) (DMG) (ZIP)
Sample AppleScripts demonstrating new iChat AppleScript features in Leopard, including Event Handlers.
Apple Applications 2006-08-04
SayIt (HTML) (DMG) (ZIP)
Web Kit plug-in which speaks text passed via JavaScript
Apple Applications, Cocoa, Internet & Web, User Experience 2006-08-04
Watcher (HTML) (DMG) (ZIP)
Uses FSEvents to monitor a directory hierarchy to keep track of its total size
Carbon, Cocoa, Core Foundation, Darwin 2006-08-04
WebKitDOMElementPlugIn (HTML) (DMG) (ZIP)
A Web Kit plug-in that modifies its own DOM element style
Apple Applications, Cocoa, Internet & Web 2006-08-04
AudioQueueTest (HTML) (DMG) (ZIP)
Demonstrates AudioQueue, an audio playback API introduced in Mac OS X 10.5
Audio, Carbon 2006-08-01
BlockAnimation (HTML) (DMG) (ZIP)
A bit of java code which INCORRECTLY handles animation
Java, Tools 2006-08-01
Dicey (HTML) (DMG) (ZIP)
Dicey is a dice game project that demonstrates various techniques for making a Cocoa application accessible.
Cocoa 2006-08-01
DynamicProperties (HTML) (DMG) (ZIP)
Demonstrates dynamically resolved properties, using a new Objective C 2.0 feature: dynamically resolved methods.
Cocoa 2006-08-01
IBFragmentView (HTML) (DMG) (ZIP)
Illustrates building an Interface Builder plugin including a custom inspector and library integration for a custom view.
Tools 2006-08-01
IKSlideshowDemo (HTML) (DMG) (ZIP)
This small sample project shows how to use the ImageKit Slideshow to display images or PDFs.
Graphics & Imaging 2006-08-01
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, Tools 2006-08-01
LiveVideoMixer3 (HTML) (DMG) (ZIP)
LiveVideoMixer3 is extended to support Video In via QTKit
Cocoa, Graphics & Imaging, QuickTime 2006-08-01
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
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
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
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