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
Draw Pixels (HTML) (DMG) (ZIP)
An example of the correct use of DrawPixels.
Graphics & Imaging 2003-07-16
Monochrome Image (HTML) (DMG) (ZIP)
Applies the NTSC color weighting formula to an image to generate a monochrome version of the image.
Cocoa 2003-07-16
TextureRange (HTML) (DMG) (ZIP)
Shows the fundamental techniques required to fast texture upload performance.
Graphics & Imaging 2003-07-16
HID Manager Basics (HTML) (DMG) (ZIP)
Shows basic use of HID Manager for Mac OS X: including device discovery, queues and polling elements.
Games, Hardware & Drivers, User Experience 2003-07-10
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
AGLSurfaceTexture (HTML) (DMG) (ZIP)
Example of render to texture/texture from surface using aglSurfaceTexture.
Carbon, Games, Graphics & Imaging 2003-07-07
Carbon GLSnapshot (HTML) (DMG) (ZIP)
Demonstrates the use of OpenGL with Quicktime to capture OpenGL content.
Carbon, Games, Graphics & Imaging, QuickTime 2003-07-07
NURBSSurfaceVertexProg (HTML) (DMG) (ZIP)
Uses a vertex program to compute the vertex position for a NURB surface.
Graphics & Imaging 2003-07-07
SurfaceVertexProgram (HTML) (DMG) (ZIP)
Vertex program that demonstrates the use of a UV mesh to draw an implicit surface.
Graphics & Imaging 2003-07-07
VBL (HTML) (DMG) (ZIP)
A simple example of how to create an OpenGLView in AppKit.
Cocoa, Graphics & Imaging 2003-07-07
Vertex Optimization (HTML) (DMG) (ZIP)
Shows examples of optimized vertex throughput.
Graphics & Imaging 2003-07-07
BSDLLCTest (HTML) (DMG) (ZIP)
Program sample demonstrates how to send and receive raw LLC Ethernet packets.
Carbon, Core Foundation, Hardware & Drivers, Mac OS X Server, Networking, Performance, Security 2003-06-12
Sproing (HTML) (DMG) (ZIP)
Shows how "springs" work to control view resizing behavior.
Cocoa, Tools 2003-05-20
QISA (HTML) (DMG) (ZIP)
Demonstrates the basics of writing an Internet setup assistant for traditional Mac OS and Mac OS X.
Carbon, Darwin, Networking, Security 2003-05-15
BasicDataBrowser (HTML) (DMG) (ZIP)
Shows how to create a basic, functional data browser.
Carbon 2003-05-08
FunkyOverlayWindow (HTML) (DMG) (ZIP)
Demonstrates several window layering, transparency and widget interaction techniques in Cocoa.
Cocoa 2003-05-08
FunWithFileDialogs (HTML) (DMG) (ZIP)
Demo of the AWT FileChooser and Swing Aqua JFileChooser, and available Mac-specific runtime options.
Java 2003-04-30
CubePuzzle (HTML) (DMG) (ZIP)
Models a Rubik's Cube using Cocoa and OpenGL
Cocoa, Games, Graphics & Imaging 2003-04-21
GLChildWindowDemo (HTML) (DMG) (ZIP)
Shows using Cocoa's child windows and Quartz Extreme to provide 2D/3D overlays above 3D content.
Cocoa, Graphics & Imaging 2003-04-21
OpenGLCompositorLab (HTML) (DMG) (ZIP)
Demonstrates using OpenGL to composite multiple sources in hardware. Requires NVIDIA GeForce 4 Ti hardware.
Cocoa, Graphics & Imaging, QuickTime 2003-04-21
CarbonInCocoa (HTML) (DMG) (ZIP)
How to use Carbon GUI code in a Cocoa application.
Carbon, Cocoa 2003-03-26
SimpleSpeechRecExample (HTML) (DMG) (ZIP)
Demonstrates how to use the Speech Recognition Manager in a simple application.
Audio, Carbon, Games, User Experience 2003-03-26
QTMusicToo (HTML) (DMG) (ZIP)
Deprecated - Shows all of the QuickTime Music features introduced with QuickTime 2.0.
QuickTime 2003-03-19
MeterTest (HTML) (DMG) (ZIP)
Sampling of sound input using SPBGetDeviceInfo(). Metering is then turned on and sampling is repeated.
QuickTime 2003-03-14
Sound PreMixer effect (HTML) (DMG) (ZIP)
Deprecated - A sound manager pre-mixer effect component.
QuickTime 2003-03-14
Out of This GWorld (HTML) (DMG) (ZIP)
Deprecated - Demonstrates the use of offscreen GWorlds and palette animation to simulate animation.
Carbon, Games, Graphics & Imaging, User Experience 2003-03-12
TubeTest (HTML) (DMG) (ZIP)
Deprecated - The program is a simple demonstration of how to use the Palette Manager in a color program.
Carbon, Graphics & Imaging 2003-03-12
addflashactions (HTML) (DMG) (ZIP)
Adds a few wired actions to a movie that has a flash track.
QuickTime 2003-02-25
addflashactions.win (HTML) (DMG) (ZIP)
Adds a few wired actions to a movie that has a flash track.
QuickTime 2003-02-25
addhtactions (HTML) (DMG) (ZIP)
Adds two go-to-URL actions to parts of the text track.
QuickTime 2003-02-25
addhtactions.win (HTML) (DMG) (ZIP)
Adds two go-to-URL actions to parts of the text track.
QuickTime 2003-02-25
Clock Control (HTML) (DMG) (ZIP)
Demonstrates creating a custom control by creating a clock control, implemented as a subclass of NSControl and NSCell.
Cocoa 2003-02-25
DesktopSprites (HTML) (DMG) (ZIP)
Shows how to use the QuickTime Sprite Toolbox APIs to create and animate sprites in a window.
QuickTime 2003-02-25
DesktopSprites.win (HTML) (DMG) (ZIP)
Shows how to use the QuickTime Sprite Toolbox APIs to create and animate sprites in a window.
QuickTime 2003-02-25
Dimmer2Effect (HTML) (DMG) (ZIP)
Shows how to build a custom 2 source effect component for QuickTime.
QuickTime 2003-02-25
Dimmer2Effect.win (HTML) (DMG) (ZIP)
Shows how to build a custom 2 source effect component for QuickTime.
QuickTime 2003-02-25
FastDitherUsingQT (HTML) (DMG) (ZIP)
Demonstrates how you can use QuickTime to get faster dithering.
QuickTime 2003-02-25
GreyscaleEffectSample (HTML) (DMG) (ZIP)
Shows how to build a custom single source effect component for QuickTime.
QuickTime 2003-02-25
makeeffectslideshow (HTML) (DMG) (ZIP)
Creates a slide show movie using effects to switch from one video track to the next.
QuickTime 2003-02-25
makeeffectslideshow.win (HTML) (DMG) (ZIP)
Creates a slide show movie using effects to switch from one video track to the next.
QuickTime 2003-02-25
qtactiontargets (HTML) (DMG) (ZIP)
Shows how to work with wired action targets.
QuickTime 2003-02-25
qtactiontargets.win (HTML) (DMG) (ZIP)
Shows how to work with wired action targets.
QuickTime 2003-02-25
qtaddeffectseg (HTML) (DMG) (ZIP)
Illustrates how to use add video effects to segments of movies.
QuickTime 2003-02-25
qtaddeffectseg.win (HTML) (DMG) (ZIP)
Illustrates how to use add video effects to segments of movies.
QuickTime 2003-02-25
QTEffects Explode (HTML) (DMG) (ZIP)
Demonstrates how to create a QuickTime movie with a video effect as a transition .
QuickTime 2003-02-25
QTEffects Explode.win (HTML) (DMG) (ZIP)
Demonstrates how to create a QuickTime movie with a video effect as a transition.
QuickTime 2003-02-25
qtshoweffect (HTML) (DMG) (ZIP)
Illustrates how to apply a filter or transition to pictures using QuickTime Effects APIs.
QuickTime 2003-02-25
qtshoweffect.win (HTML) (DMG) (ZIP)
Illustrates how to apply a filter or transition to pictures using QuickTime Effects APIs.
QuickTime 2003-02-25
qtsprites (HTML) (DMG) (ZIP)
Shows how to create a sprite track that contains three sprites: a space ship, an icon, and a world.
QuickTime 2003-02-25
qtsprites.win (HTML) (DMG) (ZIP)
Shows how to create a sprite track that contains three sprites: a space ship, an icon, and a world.
QuickTime 2003-02-25
qtspritesplus (HTML) (DMG) (ZIP)
Shows how to use video overrides and tween tracks with sprite movies.
QuickTime 2003-02-25
qtspritesplus.win (HTML) (DMG) (ZIP)
Shows how to use video overrides and tween tracks with sprite movies.
QuickTime 2003-02-25
qtwiredactions (HTML) (DMG) (ZIP)
Shows how to attach wired actions to text tracks and make sprites bounce and collide.
QuickTime 2003-02-25
qtwiredactions.win (HTML) (DMG) (ZIP)
Shows how to attach wired actions to text tracks and make sprites bounce and collide.
QuickTime 2003-02-25
qtwiredsprites (HTML) (DMG) (ZIP)
Creates a wired sprite movie with one sprite track that contains two penguins and four buttons.
QuickTime 2003-02-25
qtwiredsprites.win (HTML) (DMG) (ZIP)
Creates a wired sprite movie with one sprite track that contains two penguins and four buttons.
QuickTime 2003-02-25
qtwiredspritesjr (HTML) (DMG) (ZIP)
Shows how to build a set of sprite "buttons" to control the playback of a linear QuickTime movie.
QuickTime 2003-02-25
qtwiredspritesjr.win (HTML) (DMG) (ZIP)
Shows how to build a set of sprite "buttons" to control the playback of a linear QuickTime movie.
QuickTime 2003-02-25
samplemakeeffectmovie (HTML) (DMG) (ZIP)
Shows how to take video from movies and add effects creating a new movie.
QuickTime 2003-02-25
samplemakeeffectmovie.win (HTML) (DMG) (ZIP)
Shows how to take video from movies and add effects creating a new movie.
QuickTime 2003-02-25
watchme (HTML) (DMG) (ZIP)
Uses the WatchMe.mov movie from the QuickTime SDK to convert relative URLs to absolute URLs.
QuickTime 2003-02-25
watchme.win (HTML) (DMG) (ZIP)
Uses the WatchMe.mov movie from the QuickTime SDK to convert relative URLs to absolute URLs.
QuickTime 2003-02-25
WiredSprites (HTML) (DMG) (ZIP)
Demonstrates creating a wired sprite movie containing one sprite track.
QuickTime 2003-02-25
WiredSprites.win (HTML) (DMG) (ZIP)
Creates a QuickTime movie containing wired sprites.
QuickTime 2003-02-25
WiredSpritesJava (HTML) (DMG) (ZIP)
Creates a QuickTime movie containing wired sprites.
QuickTime 2003-02-25
GLUTStereo (HTML) (DMG) (ZIP)
Shows how to use stereo with GLUT under Mac OS X v10.2.3 or later.
Graphics & Imaging 2003-02-20
SimpleTabControl (HTML) (DMG) (ZIP)
Demonstrates how to use a simple tabbed pane window. This control is often used in preferences.
Carbon 2003-02-20
PIDFromBSDProcessName (HTML) (DMG) (ZIP)
Provides a simple API to do process PID lookup based on BSD process name.
Darwin, Open Source, Tools 2003-02-13
CryptoSample (HTML) (DMG) (ZIP)
Contains sample code showing symmetric encryption and message digest calculation.
Carbon, Cocoa, Darwin, Security 2003-02-06
HICustomLeftRightSwitch (HTML) (DMG) (ZIP)
Illustrates how to create a custom left/right switch using the HIView functions introduced in Mac OS X 10.2.
Carbon 2003-02-06
HIFramework (HTML) (DMG) (ZIP)
Contains C++ classes which are used by other HIToolbox sample code releases.
Carbon 2003-02-06
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
CarbonCustomList (HTML) (DMG) (ZIP)
How to implement a custom list using Carbon using CreateCustomList.
Carbon 2003-01-30
CarbonMDEF (HTML) (DMG) (ZIP)
A Mac OS X-compatible, Appearance-savvy sample menu definition function (MDEF).
Carbon 2003-01-30
ClockView (HTML) (DMG) (ZIP)
An HIView sample that uses the HIFramework to implement a scalable analog clock.
Carbon 2003-01-30
ColoredCheckBox (HTML) (DMG) (ZIP)
Demonstrates how to create a colored check box on a gray window backgrounds.
Carbon 2003-01-30
ColorSwatchView (HTML) (DMG) (ZIP)
Implements a color well control as an HIView using HIFramework C++ Carbon Event wrapper classes.
Carbon 2003-01-30
ControlBackground (HTML) (DMG) (ZIP)
Shows how to affect the background color of a control when drawing it.
Carbon 2003-01-30
CustomWindow (HTML) (DMG) (ZIP)
Demonstrates how to create a custom window in Mac OS X.
Carbon 2003-01-30
CustomWindowWidget (HTML) (DMG) (ZIP)
Demonstrates two ways of adding a custom window widget to the window frame of a standard document window.
Carbon 2003-01-30
Fragment Tool (HTML) (DMG) (ZIP)
Demonstrates manipulation of code fragments; combining and separating; viewing and editing information associated with each.
Carbon 2003-01-30
GetDragHiliteColor (HTML) (DMG) (ZIP)
Shows how to obtain the color that Drag Manager uses to hilite regions when calling ShowDragHilite.
Carbon 2003-01-30
HandyScrollingSample (HTML) (DMG) (ZIP)
Shows some ways of implementing scrolling.
Carbon 2003-01-30
HexEditorView (HTML) (DMG) (ZIP)
HIView subclass which implements a hex editor similar to those found in resource editors.
Carbon 2003-01-30
HideMenuBar (HTML) (DMG) (ZIP)
Shows how to hide the menu bar.
Carbon 2003-01-30
HIViewTest (HTML) (DMG) (ZIP)
An HIView with rudimentary drawing and hit testing.
Carbon 2003-01-30
HTMLSample (HTML) (DMG) (ZIP)
Deprecated - Illustrates one way to use the HTMLRenderingLib Library.
Carbon 2003-01-30
HTMLUserPane (HTML) (DMG) (ZIP)
Deprecated - Shows how to display a HTMLRenderingLib object inside of a user pane control.
Carbon 2003-01-30
icon cache demo (HTML) (DMG) (ZIP)
Demonstrates the use of an icon cache to limit the search for icon resource to one resource file.
Carbon, Graphics & Imaging, Performance 2003-01-30
Icon Play (HTML) (DMG) (ZIP)
Demonstrates the use of icon utilities and popup control cdef in a program using modal dialogs.
Carbon 2003-01-30
IconUtilCheck (HTML) (DMG) (ZIP)
Shows how to determine whether the Icon Utilities are available.
Carbon 2003-01-30
ictbSample (HTML) (DMG) (ZIP)
Deprecated - Shows an example of ictb resource.
Carbon 2003-01-30
Image Difference (HTML) (DMG) (ZIP)
Demonstrates a way to use Quartz's compositing capability to find the difference between two images.
Cocoa, Graphics & Imaging 2003-01-30
kcapApp (HTML) (DMG) (ZIP)
Demonstrates drawing the key caps, given a set of modifiers and KCHR and KCAP resource IDs.
Carbon 2003-01-30
KeyMapTest (HTML) (DMG) (ZIP)
Uses Pascal to display a KeyMap representation whenever keys are pressed.
Carbon 2003-01-30
Live Scroll (HTML) (DMG) (ZIP)
Deprecated - Demonstrates how to implementing live scrolling during the tracking of scroll bar thumbs.
Carbon 2003-01-30
LocalServer (HTML) (DMG) (ZIP)
Deprecated - Sample demonstrates how a Classic process can communicate with a Mac OS X process using IP networking protocols.
Carbon, Core Foundation, Internet & Web, Networking, Porting 2003-01-30
NoSound (HTML) (DMG) (ZIP)
Illustrates how to install a procedure to be executed when the user restarts or shuts down.
Carbon 2003-01-30