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
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
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
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.win (HTML) (DMG) (ZIP)
Illustrates how to use use the Sequence Grabber APIs to capture video and create QuickTime Movies.
QuickTime 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
JDragNDrop (HTML) (DMG) (ZIP)
Deprecated - Demonstrates building a simple view to implement Drag-and-Drop functionality in Cocoa-Java.
Cocoa, Java, Mac OS X Server, Tools 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
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
mfc.win (HTML) (DMG) (ZIP)
Contains a number of QuickTime samples using MFC: MFCMDIPlayer, MFCQTClasses, QTClasses, SimpleEdit, SimplePlayer.
QuickTime 2003-01-14
Mode (HTML) (DMG) (ZIP)
Shows how to enumerate displays and list the available modes for each display.
Carbon, Games, Graphics & Imaging 2003-01-14
ModeWhacker (HTML) (DMG) (ZIP)
Shows how to enumerate, select, capture, manipulate, and release displays using the CGDirectDisplay API.
Carbon, Games, Graphics & Imaging 2003-01-14
MoreAppleEvents (HTML) (DMG) (ZIP)
Provides routines that assist with the creation and sending of Apple events and object descriptors.
Carbon, Scripting & Automation, Tools 2003-01-14
MoreFiles (HTML) (DMG) (ZIP)
Shows various File Manager operations (file copy, etc.) through a collection of high-level routines.
Carbon, Cocoa 2003-01-14
MoreOSL (HTML) (DMG) (ZIP)
C library for implementing AppleScript support within your application.
Carbon, Scripting & Automation 2003-01-14
Moriarity (HTML) (DMG) (ZIP)
Implementing a Cocoa GUI that wraps command-line functionality, calling a UNIX task and presenting the results in a GUI.
Cocoa, Darwin 2003-01-14
Movie From DataRef (HTML) (DMG) (ZIP)
Demonstrates Asynchronous Movie loading and the NewMovieFromDataRef API. Part of "An Introduction to QuickTime".
QuickTime 2003-01-14
MovieBrowser (HTML) (DMG) (ZIP)
BrowserMaker creates a document with links to other movies in a folder.
QuickTime 2003-01-14
MovieSprites (HTML) (DMG) (ZIP)
Testing for mouse clicks on a sprite. Part of "An Introduction to QuickTime."
QuickTime 2003-01-14
MovieToAIFF (HTML) (DMG) (ZIP)
Using Movie Export Component to export QuickTime movie files into AIFF files.
QuickTime 2003-01-14
MP3 Player (HTML) (DMG) (ZIP)
How to wrap a command-line UNIX/Linux application in a Cocoa GUI, calling a the command-line app through NSTask.
Cocoa, Open Source 2003-01-14
MPFileCopy (HTML) (DMG) (ZIP)
Demonstrates how to copy a folder and its contents using the HFS Plus APIs from an MP task.
Carbon, Performance 2003-01-14
MRJToolkitStubs (HTML) (DMG) (ZIP)
Deprecated - Stubs of the MRJToolkit API for building or distributing on non-Mac OS X systems.
Java 2003-01-14
MyComponent (HTML) (DMG) (ZIP)
Sample component shell, useful for writing a new component.
QuickTime 2003-01-14
MyRegisterComponent (HTML) (DMG) (ZIP)
This component registers another component and makes it the default component.
QuickTime 2003-01-14
NameAndAddress (HTML) (DMG) (ZIP)
A single window utility that gets a host name from an IP address or an IP address from a hostname.
Cocoa, Internet & Web, Networking 2003-01-14
NamingTableAccess (HTML) (DMG) (ZIP)
Digs out the contents of the NamingTable in a TrueType 'sfnt'.
Carbon, Cocoa, Core Foundation, Graphics & Imaging, Text & Fonts 2003-01-14
NewCCursor (HTML) (DMG) (ZIP)
Deprecated - Shows how to create a black and white 'CURS' and a color 'crsr' cursor resource by hand.
Carbon, Graphics & Imaging, User Experience 2003-01-14
NoCopyReceives (HTML) (DMG) (ZIP)
Demonstrates using no-copy receives under Open Transport.
Carbon, Games, Hardware & Drivers, Internet & Web, Mac OS X Server, Networking 2003-01-14
NSLMiniBrowser (HTML) (DMG) (ZIP)
Deprecated - Uses the NSL API to find network services using SLP, NBP, and Directory Services.
Carbon, Networking 2003-01-14
ODOC (HTML) (DMG) (ZIP)
Illustrates how to send an open document ('odoc') Apple event to another application process.
Carbon, Scripting & Automation, Tools 2003-01-14
offscreen.win (HTML) (DMG) (ZIP)
Uses NewGWorldFromHBITMAP to wrap a gworld around an existing DIB, then draws movie frames into this gworld.
QuickTime 2003-01-14
OT Virtual Server (HTML) (DMG) (ZIP)
Deprecated - Sample code which uses Open Transport and demonstrates real world issues.
Carbon, Networking 2003-01-14
OTLookupNameTest (HTML) (DMG) (ZIP)
Deprecated - Demonstrates how to lookup NBP entities on an AppleTalk network using Open Transport.
Carbon, Networking 2003-01-14
PDEProject (HTML) (DMG) (ZIP)
Deprecated - Demonstrates an application-hosted printing dialog extension (PDE) that displays a custom pane in the Print dialog.
Carbon, Graphics & Imaging, Printing 2003-01-14
Play Movie with Controller (HTML) (DMG) (ZIP)
Playing a QuickTime movie using a movie controller. Part of "An Introduction to QuickTime".
QuickTime 2003-01-14
Play Video Sample (HTML) (DMG) (ZIP)
Deprecated - The sample makes use of the RequestVideo sample code API.
Carbon, Graphics & Imaging 2003-01-14
PlayMovieJava (HTML) (DMG) (ZIP)
Deprecated - Display any QuickTime content within an AWT container using the QTCanvas.
QuickTime 2003-01-14
Polygons (HTML) (DMG) (ZIP)
Demonstrates the NSBezierPath class, as well as the manipulation of NSView's coordinate space for convenience.
Cocoa 2003-01-14
PThreadSorts (HTML) (DMG) (ZIP)
Applies various sorting algorithms to pictures using POSIX threads (pthreads) on Mac OS X.
Carbon, Performance 2003-01-14
PutAwayVolumes (HTML) (DMG) (ZIP)
Deprecated - Demonstrates several ways to unmount a volume and which contexts might require which techniques.
Carbon 2003-01-14
qdmediahandler (HTML) (DMG) (ZIP)
Illustrates one way to write a derived media handler.
QuickTime 2003-01-14
qdmediahandler.win (HTML) (DMG) (ZIP)
Illustrates one way to write a derived media handler.
QuickTime 2003-01-14
qdmediamaker (HTML) (DMG) (ZIP)
QDMMaker is a sample application that creates movies that use the QuickDraw media handler.
QuickTime 2003-01-14
qdmediamaker.win (HTML) (DMG) (ZIP)
QDMMaker is a sample application that creates movies that use the QuickDraw media handler.
QuickTime 2003-01-14
QT Internals (HTML) (DMG) (ZIP)
Dumps information about movie structures.
QuickTime 2003-01-14
QT QDesign decomp (HTML) (DMG) (ZIP)
Deprecated - Decompressing QDesign compressed files using the Sound Manager's SoundConvert routines and QuickTime QDesign codecs.
QuickTime 2003-01-14
qt3dtween (HTML) (DMG) (ZIP)
Creates a QuickTime movie containing both a 3D track and a tween track.
QuickTime 2003-01-14
qt3dtween.win (HTML) (DMG) (ZIP)
A sample application that creates a QuickTime movie containing both a 3D track and a tween track.
QuickTime 2003-01-14
qtbigscreen (HTML) (DMG) (ZIP)
Demonstrates how to play QuickTime Movies fullscreen, handle application messages and use time base callbacks.
QuickTime 2003-01-14
qtbigscreen.win (HTML) (DMG) (ZIP)
Demonstrates how to play QuickTime Movies fullscreen, handle application messages and use time base callbacks.
QuickTime 2003-01-14
QTBRemoteAdmin (HTML) (DMG) (ZIP)
Demonstrates how one might write a remote administration tool for QuickTime Broadcaster.
QuickTime 2003-01-14
qtcapture (HTML) (DMG) (ZIP)
Illustrates how to use the sequence grabber to capture sound and video.
QuickTime 2003-01-14
qtchannels (HTML) (DMG) (ZIP)
Demonstrates adding items to (and remove items from) the favorites drawer in QuickTime Player.
QuickTime 2003-01-14
qtchannels.win (HTML) (DMG) (ZIP)
Demonstrates adding items to (and remove items from) the favorites drawer in QuickTime Player.
QuickTime 2003-01-14
qtcompress (HTML) (DMG) (ZIP)
Uses the standard image compression dialog to get compression settings, then compresses an image with the settings.
QuickTime 2003-01-14
qtcompress.win (HTML) (DMG) (ZIP)
Uses the standard image compression dialog to get compression settings, then compresses an image with the settings.
QuickTime 2003-01-14
qtcontroller (HTML) (DMG) (ZIP)
Displays a pop-up menu when the user clicks on the custom button in the movie controller bar.
QuickTime 2003-01-14
qtcontroller.win (HTML) (DMG) (ZIP)
Displays a pop-up menu when the user clicks on the custom button in the movie controller bar.
QuickTime 2003-01-14
qtcreatemovie (HTML) (DMG) (ZIP)
CreateMovie demonstrates creating a very simple QuickTime movie with a video track and a sound track.
QuickTime 2003-01-14
qtcreatemovie.win (HTML) (DMG) (ZIP)
CreateMovie is a Windows application that demonstrates creating a QuickTime Movie with a video track and a sound track.
QuickTime 2003-01-14
qtcustombutton (HTML) (DMG) (ZIP)
Display a pop-up menu when the user clicks on the custom button in the movie controller bar.
QuickTime 2003-01-14
qtcustombutton.win (HTML) (DMG) (ZIP)
Display a pop-up menu when the user clicks on the custom button in the movie controller bar.
QuickTime 2003-01-14
qtdataexchange (HTML) (DMG) (ZIP)
QuickTime's movie importers and exporters. Import files and export movie into any supported format.
QuickTime 2003-01-14
qteffects (HTML) (DMG) (ZIP)
Demonstrates how to work with QuickTime video effects.
QuickTime 2003-01-14
qteffects.win (HTML) (DMG) (ZIP)
Demonstrates how to work with QuickTime video effects.
QuickTime 2003-01-14
QTEffectsJava (HTML) (DMG) (ZIP)
Deprecated - Applies QuickTime visual effects to two source images at runtime.
QuickTime 2003-01-14
qtfiletransfer (HTML) (DMG) (ZIP)
Illustrates using QuickTime's ftp and http data handlers to transfer a file asynchronously from a web server.
QuickTime 2003-01-14
qtfiletransfer.win (HTML) (DMG) (ZIP)
Illustrates using QuickTime's ftp and http data handlers to transfer a file asynchronously from a web server.
QuickTime 2003-01-14
qtflattentohandle (HTML) (DMG) (ZIP)
DataHandlerType provides data input and output services to the media handler. Open movie, flatten, then play
QuickTime 2003-01-14
qtflattentohandle.win (HTML) (DMG) (ZIP)
DataHandlerType provides data input and output services to the media handler. Open movie, flatten, then play
QuickTime 2003-01-14
qtframestepper (HTML) (DMG) (ZIP)
QTFrameStepper.c defines functions that you can use to step frame-by-frame through a QuickTime movie.
QuickTime 2003-01-14
qtframestepper.win (HTML) (DMG) (ZIP)
Defines functions that you can use to step frame-by-frame through a QuickTime movie.
QuickTime 2003-01-14
qtfullscreen (HTML) (DMG) (ZIP)
Defines functions that illustrate how to play QuickTime movies full screen.
QuickTime 2003-01-14
qtfullscreen.win (HTML) (DMG) (ZIP)
Defines functions that illustrate how to play QuickTime movies full screen.
QuickTime 2003-01-14
qtgraphics (HTML) (DMG) (ZIP)
Use QuickTime's graphics importers and exporters to work with still image (graphics) files.
QuickTime 2003-01-14
qtgraphics.win (HTML) (DMG) (ZIP)
Use QuickTime's graphics importers and exporters to work with still image (graphics) files.
QuickTime 2003-01-14
QTGraphicsImport (HTML) (DMG) (ZIP)
Demonstrates how to use the QuickTime Graphics Importer to draw an image into a NSWindow using a NSQuickDrawView.
Cocoa, QuickTime 2003-01-14
qtgraphimp (HTML) (DMG) (ZIP)
Illustrates how to use QuickTime's graphics importer routines to open and display image files.
QuickTime 2003-01-14
qtgraphimp.win (HTML) (DMG) (ZIP)
Illustrates how to use QuickTime's graphics importer routines to open and display image files.
QuickTime 2003-01-14
qthintmovies (HTML) (DMG) (ZIP)
Illustrates how to add hint tracks to a QuickTime movie.
QuickTime 2003-01-14
qthintmovies.win (HTML) (DMG) (ZIP)
Illustrates how to add hint tracks to a QuickTime movie.
QuickTime 2003-01-14
QTimadecompression (HTML) (DMG) (ZIP)
Deprecated - Create a QuickTime atom to decompress IMA compressed WAVE files.
QuickTime 2003-01-14