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
ATSUICurveAccessDemo (HTML) (DMG) (ZIP)
Demonstrates low-level ATSUI APIs which allow access to raw glyph curve data.
Carbon, Internationalization 2003-01-14
ATSUIDirectAccessDemo (HTML) (DMG) (ZIP)
Demonstrates some basic manipulations of the ATSUI DirectAccess api.
Carbon, Internationalization, Text & Fonts 2003-01-14
AudioBroadcaster (HTML) (DMG) (ZIP)
Deprecated - Shows how to use the Broadcasting API to broadcast audio from a Java application.
Java, QuickTime 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
audiocodec (HTML) (DMG) (ZIP)
A Sound Manager compressor and decompressor example supporting the uLaw format.
QuickTime 2003-01-14
audiocodec.win (HTML) (DMG) (ZIP)
An example codec, a compressor and decompressor supporting the uLaw format.
QuickTime 2003-01-14
audioconverter (HTML) (DMG) (ZIP)
SoundConverter routines to convert AIFF and AIFC files into AIFF/AIFC or QuickTime. Parse AIFF/AIFC files.
QuickTime 2003-01-14
audioconverter.win (HTML) (DMG) (ZIP)
SoundConverter routines to convert AIFF and AIFC files into AIFF/AIFC or QuickTime. Parse AIFF/AIFC files.
QuickTime 2003-01-14
BasicInputMethod (HTML) (DMG) (ZIP)
An input method implemented as a text service component for Mac OS X.
Carbon, Text & Fonts, User Experience 2003-01-14
BlitNoVBL (HTML) (DMG) (ZIP)
Shows how to draw directly to the screen without syncing to the VBL of the monitor.
Graphics & Imaging, Performance 2003-01-14
BlitVBL (HTML) (DMG) (ZIP)
Shows how to have Mac OS X try its best to sync to the VBL for you.
Games, Graphics & Imaging, Hardware & Drivers, Performance 2003-01-14
bMoviePalette (HTML) (DMG) (ZIP)
Shows a rudimentary QuickTime movie editor in a Cocoa Interface Builder palette.
Cocoa, QuickTime 2003-01-14
bMoviePaletteCocoa (HTML) (DMG) (ZIP)
A QuickTime movie editor in Cocoa as an Interface Builder Palette. From the 2001 WWDC.
Cocoa, QuickTime, Tools 2003-01-14
BouncingSprites (HTML) (DMG) (ZIP)
Constructing a simple animation and apply compositing (graphics mode) effects to the sprites.
Mac OS 9 & Earlier, QuickTime 2003-01-14
BufferedWindows (HTML) (DMG) (ZIP)
Demonstrates the use of QDFlushPortBuffer to refresh buffered windows.
Carbon, Graphics & Imaging 2003-01-14
bulkerase (HTML) (DMG) (ZIP)
Demonstrates how to erase media using the DiscRecording framework.
Carbon 2003-01-14
BurntTextSampleCode (HTML) (DMG) (ZIP)
Converts text tracks of a movie to new text tracks with bit map representations of the text.
QuickTime 2003-01-14
CapabilitiesSample (HTML) (DMG) (ZIP)
Shows how to detect Image Capture device capabilities and send messages to devices with ICAObjectSendMessage.
Apple Applications 2003-01-14
CarbonQTGraphicImport (HTML) (DMG) (ZIP)
Illustrates how to use the QuickTime GraphicImporter components.
QuickTime 2003-01-14
CarbonQuartzDrawingWPrinting (HTML) (DMG) (ZIP)
Demonstrates mixing QuickDraw and Quartz 2D drawing both on screen and during printing.
Carbon, Graphics & Imaging, Printing 2003-01-14
CD-ROM Detection (HTML) (DMG) (ZIP)
Shows how to determine whether a drive is a CD-ROM drive.
Hardware & Drivers 2003-01-14
CFPreferences (HTML) (DMG) (ZIP)
Shows how to use the CFPreferences APIs to access user preferences.
Carbon, Core Foundation 2003-01-14
CFPrefsDumper (HTML) (DMG) (ZIP)
Shows how to use the CFPreferences APIs to access information about the current user preferences.
Carbon, Core Foundation 2003-01-14
CGDrawPicture (HTML) (DMG) (ZIP)
Shows how to use the QDPictDrawToCGContext API.
Cocoa, Graphics & Imaging 2003-01-14
CGGamma (HTML) (DMG) (ZIP)
Shows how to use CGDirectDisplay calls to manipulate display gamma tables.
Games, Graphics & Imaging 2003-01-14
ChromaKeyMovie (HTML) (DMG) (ZIP)
Demonstrates alternative approaches to removing a color from a QuickTime movie.
QuickTime 2003-01-14
Cocoa - SGDataProc (HTML) (DMG) (ZIP)
Uses a Sequence Grabber data function and an NSQuickDrawView to simulate a preview operation for captured video.
Cocoa, QuickTime 2003-01-14
Cocoa_With_Carbon_or_CPP (HTML) (DMG) (ZIP)
Shows how to call Carbon routines and C++ code from within an Objective-C Cocoa program.
Carbon, Cocoa 2003-01-14
CocoaCreateMovie (HTML) (DMG) (ZIP)
Demonstrates how to create a QuickTime movie from a set of Cocoa JPEG NSImage objects.
QuickTime 2003-01-14
CocoaDragAndDrop (HTML) (DMG) (ZIP)
Implement Drag-and-Drop functionality in Cocoa (uses images; can be extended to support other data types).
Cocoa 2003-01-14
CocoaVideoFrameToGWorld (HTML) (DMG) (ZIP)
Demonstrates how to draw each frame of a QuickTime movie into a Cocoa NSQuickDrawView.
Cocoa, QuickTime 2003-01-14
CocoaVideoFrameToNSImage (HTML) (DMG) (ZIP)
Demonstrates how to create an NSImage for each frame of a QuickTime movie.
Cocoa, QuickTime 2003-01-14
Color Sampler (HTML) (DMG) (ZIP)
Demonstrates one way to sample the color at a given point in an NSView.
Cocoa 2003-01-14
ColorBars (HTML) (DMG) (ZIP)
Shows how to enumerate, select, capture, manipulate, draw to, and release displays using the CGDirectDisplay API.
Carbon, Cocoa, Graphics & Imaging 2003-01-14
ColorSyncDevices (HTML) (DMG) (ZIP)
Demonstrates how to use the new ColorSync Device Support APIs introduced with Mac OS X.
Carbon, Graphics & Imaging 2003-01-14
ColorSyncDevices-Cocoa (HTML) (DMG) (ZIP)
Demonstrates how to use the new ColorSync Device Manager routines in the Cocoa environment.
Carbon, Cocoa 2003-01-14
CompositedEffects (HTML) (DMG) (ZIP)
Deprecated - Creates a layered Composited image from a file, then draws a Movie in front of the image.
QuickTime 2003-01-14
CompositedEffects.win (HTML) (DMG) (ZIP)
Deprecated - Creates a layered Composited image from a file, then draws a Movie in front of the image.
Java, QuickTime 2003-01-14
CompressMovies (HTML) (DMG) (ZIP)
Shows how to use QuickTime movie compression in an application.
QuickTime 2003-01-14
ConvertMovieSndTrack (HTML) (DMG) (ZIP)
Demonstrates using the Sound Converter to transcode a Sound Track from one audio encoding format to another.
QuickTime 2003-01-14
ConvertToMovieJr (HTML) (DMG) (ZIP)
Shows how to recompress QuickTime movies using the Image Compression Manager routines.
QuickTime 2003-01-14
CreateMovie (HTML) (DMG) (ZIP)
Demonstrates how to create a QuickTime Movie with both a video and audio track.
QuickTime 2003-01-14
CreateMovieJava (HTML) (DMG) (ZIP)
Deprecated - Creates a Movie from Java drawing and a sound file.
QuickTime 2003-01-14
Cropped Image (HTML) (DMG) (ZIP)
Demonstrates how to extract a sub-image from another image, and some ways of indicating a selection.
Cocoa 2003-01-14
CTMClip (HTML) (DMG) (ZIP)
Shows how to manipulate the Quartz 2D Current Transform Matrix (CTM) for image drawing with clipping.
Carbon, Cocoa, Graphics & Imaging 2003-01-14
CTMDemo (HTML) (DMG) (ZIP)
Shows how to manipulate the Quartz 2D Current Transform Matrix (CTM) for image drawing without clipping.
Carbon, Cocoa, Graphics & Imaging 2003-01-14
CurvesDemo (HTML) (DMG) (ZIP)
Deprecated - Shows how to use the Curve Codec in QuickTime to draw a vector Graphic image in QTJava.
Java, QuickTime 2003-01-14
CurvesDemo.win (HTML) (DMG) (ZIP)
Deprecated - Shows how to use the Curve Codec in QuickTime to draw a vector Graphic image in QTJava.
Java, QuickTime 2003-01-14
databurntest (HTML) (DMG) (ZIP)
Demonstrates how to create a DRFolderRef and burn it to disc.
Carbon 2003-01-14
DecompressionAndScaling (HTML) (DMG) (ZIP)
Shows how to convert a version 2 PICT to a compressed QuickTime data buffer.
QuickTime 2003-01-14
DeskPictAppDockMenu (HTML) (DMG) (ZIP)
How to add a dynamic Dock menu to your Cocoa application
AppleScript, Cocoa 2003-01-14
Desktop Sprites (HTML) (DMG) (ZIP)
Demonstrates creating a Sprite World and its associated sprites then animating the sprites.
QuickTime 2003-01-14
DetachedController (HTML) (DMG) (ZIP)
Deprecated - Play a QuickTime Movie with its controller detached.
Java, QuickTime 2003-01-14
DigitizerShell (HTML) (DMG) (ZIP)
Simple sequence grabber and vdig test bed for testing vdig and digitizer functionality.
QuickTime 2003-01-14
DragAndDrop Shell (HTML) (DMG) (ZIP)
A Drag and Drop shell for producing QuickTime drag and drop tools.
Carbon, QuickTime 2003-01-14
DraggingSprites (HTML) (DMG) (ZIP)
Deprecated - Use MouseResponders to customize the behavior of MouseDrag actions.
Java, QuickTime 2003-01-14
DrawableBroadcaster (HTML) (DMG) (ZIP)
Deprecated - Shows how to use the Broadcasting API to broadcast audio from a QTJava application.
Java, QuickTime 2003-01-14
DrawTextCodec (HTML) (DMG) (ZIP)
This is a QuickTime codec for compressing black and white pictures into the glyphs of a font.
QuickTime 2003-01-14
EnhancedDataBurn (HTML) (DMG) (ZIP)
Objective-C sample which shows how to burn a data disc containing a complete virtual filesystem.
Cocoa 2003-01-14
Eraser (HTML) (DMG) (ZIP)
Uses the DiscRecordingUI framework to present the standard erase, selection and progress dialogs.
Cocoa 2003-01-14
ExampleCodec (HTML) (DMG) (ZIP)
An example of am image compression codec that handles both compression and decompression of images.
QuickTime 2003-01-14
ExampleVideoPanel (HTML) (DMG) (ZIP)
An example Sequence Grabber Video Panel Component.
QuickTime 2003-01-14
ExampleVideoPanel.win (HTML) (DMG) (ZIP)
An example Sequence Grabber Video Panel Component.
QuickTime 2003-01-14
FinderDragPro (HTML) (DMG) (ZIP)
Sample file illustrating drag and drop techniques for use with file system objects.
Carbon 2003-01-14
Folder Watching (HTML) (DMG) (ZIP)
Demonstrates how a background only application can use Apple events to pass work to another application.
Carbon 2003-01-14
FrameStepper (HTML) (DMG) (ZIP)
Deprecated - Step frame-by-frame through the video track of a QuickTime movie using the QuickTime for Java APIs.
Java, QuickTime 2003-01-14
FrameStepper.win (HTML) (DMG) (ZIP)
Deprecated - Step frame-by-frame through the video track of a QuickTime movie using the QuickTime for Java APIs.
Java, QuickTime 2003-01-14
FullScreen (HTML) (DMG) (ZIP)
Shows how to use BeginFullScreen and EndFullScreen to enter and exit full-screen mode.
Carbon, Graphics & Imaging, QuickTime 2003-01-14
GetHWEthernetAddr (HTML) (DMG) (ZIP)
Deprecated - Shows how to obtain the hardware Ethernet address of a machine.
Carbon, Hardware & Drivers, Networking 2003-01-14
GetMACAddressSample (HTML) (DMG) (ZIP)
Demonstrates how to retrieve the MAC address for each Ethernet interface from the Mac OS X I/O Registry.
Carbon, Cocoa, Darwin, Games, Hardware & Drivers, Mac OS X Server, Networking, Security 2003-01-14
GetSetOptions (HTML) (DMG) (ZIP)
Demonstrates a variety of uses of Open Transport's option management routines.
Carbon, Games, Hardware & Drivers, Internet & Web, Mac OS X Server, Networking 2003-01-14
GLUT_for_OS_X (HTML) (DMG) (ZIP)
Deprecated - Renamed "glut". Now found at <A HREF="/samplecode/glut/glut.html">glut sample</A>.
Games, Graphics & Imaging 2003-01-14
Graphic Import-Export (HTML) (DMG) (ZIP)
Demonstrates how to Draw, Scale, Rotate and Export images using QuickTime Graphics Importers and Exporters.
QuickTime 2003-01-14
graphicimporter.win (HTML) (DMG) (ZIP)
Demonstrates ways of using QuickTime graphics importers.
QuickTime 2003-01-14
GroupDrawing (HTML) (DMG) (ZIP)
Deprecated - Groups QuickTime drawing-capable objects into the display space of a single QTCanvas.
QuickTime 2003-01-14
hacktv (HTML) (DMG) (ZIP)
Illustrates how to use use the Sequence Grabber APIs to capture video and create QuickTime Movies.
QuickTime 2003-01-14
HackTV Carbon (HTML) (DMG) (ZIP)
Illustrates how to use use the Sequence Grabber APIs to capture video and create QuickTime Movies.
QuickTime 2003-01-14
hacktv.win (HTML) (DMG) (ZIP)
Illustrates how to use use the Sequence Grabber APIs to capture video and create QuickTime Movies.
QuickTime 2003-01-14
HID Config Save (HTML) (DMG) (ZIP)
Demonstrates the HID Utilities load & save config abilities.
Hardware & Drivers 2003-01-14
HID Explorer (HTML) (DMG) (ZIP)
Illustrates a Carbon NIB sample that uses HID Utilities to explore HID devices and elements.
Games, Hardware & Drivers, User Experience 2003-01-14
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
ImageCompositing (HTML) (DMG) (ZIP)
Deprecated - Applies compositing effects such as blend and transparency. Also records a Movie using the Compositor.
QuickTime 2003-01-14
ImagesToQTMovie (HTML) (DMG) (ZIP)
Creates a QuickTime movie from the images of any connected camera.
Apple Applications, Cocoa 2003-01-14
ImportExportMovie (HTML) (DMG) (ZIP)
Shows how to import files into QuickTime movies and export movie data.
QuickTime 2003-01-14
Inside Mac ICM Code (HTML) (DMG) (ZIP)
Demonstrates the use of the QuickTime Image Compression Manager.
QuickTime 2003-01-14
Inside Mac Movie TB Code (HTML) (DMG) (ZIP)
Deprecated - Macintosh Movie Toolbox sample code.
QuickTime 2003-01-14
Java Drawing (HTML) (DMG) (ZIP)
Deprecated - Demonstrates using QTImageDrawer to allow QuickTime to draw the results of painting into a Java offscreen Image.
Java, QuickTime 2003-01-14
JavaRadioStation (HTML) (DMG) (ZIP)
Deprecated - A small multithreaded streaming MP3 server written in pure Java.
Java 2003-01-14
JavaSprites (HTML) (DMG) (ZIP)
Deprecated - Shows how to capture the results of Java drawing and make a QuickTime sprite out of the result.
Java, QuickTime 2003-01-14
JDragNDrop (HTML) (DMG) (ZIP)
Demonstrates building a simple view to implement Drag-and-Drop functionality in Cocoa-Java.
Cocoa, Java, Mac OS X Server, Tools 2003-01-14
JISApplet (HTML) (DMG) (ZIP)
Deprecated - Displaying QuickTime content within a java.awt.Applet where content is read by java.io.InputStream
Java, QuickTime 2003-01-14
JOutlineView (HTML) (DMG) (ZIP)
Exhibiting the use of NSOutlineView in Cocoa-Java in a simple program.
Cocoa 2003-01-14
JPEG File Interchange Format (HTML) (DMG) (ZIP)
Preview component which lets you make previews from JFIF files in the QuickTime StandardFilePreview dialog.
QuickTime 2003-01-14
JScriptApplet (HTML) (DMG) (ZIP)
Deprecated - Demonstrates controlling a QuickTime movie within a browser using JavaScript.
Java, QuickTime 2003-01-14
LayoutManagerDemo (HTML) (DMG) (ZIP)
Demonstrates the layout manager using rollovers with different colors for lines, words and characters under the mouse.
Cocoa 2003-01-14
ListMania (HTML) (DMG) (ZIP)
Demonstrates a variety of techniques for using Open Transport's list utility routines.
Carbon, Games, Mac OS X Server, Networking 2003-01-14
MakeEffectMovie (HTML) (DMG) (ZIP)
Creating a movie with an effects track allowing the user to specify the effect using the standard effects dialog.
QuickTime 2003-01-14
MCComponent (HTML) (DMG) (ZIP)
A sample QuickTime component skeleton.
QuickTime 2003-01-14
mdiplayer.win (HTML) (DMG) (ZIP)
Demonstrates how to display QuickTime movies using the MDI (multiple document interface).
QuickTime 2003-01-14