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
GlyphaIVOld (HTML) (DMG) (ZIP)
Deprecated - A basic game implementation in the spirit of Joust meant as demonstation of Sprocket usage.
Carbon, Games 2003-10-14
CollectPictColors (HTML) (DMG) (ZIP)
Deprecated - Uses Picture Utilities package and KnowsPict application to demonstrate collecting colors used by Pict resources.
Graphics & Imaging, User Experience 2003-10-10
Palette and GWorld (HTML) (DMG) (ZIP)
Deprecated - Demonstrates the use of palette and color tables with GWorlds.
Carbon, Graphics & Imaging 2003-10-10
HID Utilities Source (HTML) (DMG) (ZIP)
Shows a high level abstract library for the HID manager.
Games, Hardware & Drivers, User Experience 2003-10-06
EmbededAppleScripts (HTML) (DMG) (ZIP)
Extending the functionality of your application by adding precompiled AppleScripts.
Carbon, Scripting & Automation 2003-09-04
QTEffectsDialog - Cocoa (HTML) (DMG) (ZIP)
Shows how to display the standard QuickTime effects parameters dialog in a Cocoa application.
Cocoa, QuickTime 2003-09-04
IOKitWithLibrary (HTML) (DMG) (ZIP)
Shows how an I/O Kit driver can link with a C library from a separate kernel extension.
Darwin 2003-08-27
OTEndpointInfo (HTML) (DMG) (ZIP)
Deprecated - Demonstrates how to query an endpoint for its 'vital statistic' using OTGetEndpointInfo.
Carbon, Networking 2003-08-20
GrabBag (HTML) (DMG) (ZIP)
Demonstrates variety of techniques and features of Carbon. DataBrowser , PBCatalogSearchAsync, Overlay windows, Tab controls, more...
Carbon 2003-07-29
TextLinks (HTML) (DMG) (ZIP)
Programmatically creates links to URLs and other objects and handles clicks in non-URL links.
Cocoa 2003-07-29
BasicPlugIn (HTML) (DMG) (ZIP)
Uses the CFPlugin to locate, load, execute plugin. Derived from the SillyBalls sample.
Carbon, Porting 2003-07-28
X11CallCarbonAndCocoa (HTML) (DMG) (ZIP)
Demonstrates a double clickable X11 application which performs various "native" Mac OS X operations.
Mac OS X Server, Open Source, Porting, User Experience 2003-07-28
CopyBits vs. CopyMask (HTML) (DMG) (ZIP)
Deprecated - CopyBits (using a mask region) vs. CopyMask (using a mask BitMap). Which do you think is faster?
Carbon, Performance 2003-07-22
OTMP (HTML) (DMG) (ZIP)
Deprecated - A library for calling Open Transport synchronously from preemptively scheduled tasks (MP tasks).
Carbon, Networking 2003-07-22
OTPingSample (HTML) (DMG) (ZIP)
Deprecated - Demonstrates how to implement ping on top of the Open Transport API.
Carbon, Networking 2003-07-22
Simple DrawSprocket (HTML) (DMG) (ZIP)
Deprecated - Simple use of DrawSprocket to set screen resolution and size.
Carbon, Games 2003-07-22
TE Over Background (HTML) (DMG) (ZIP)
Deprecated - A textEdit that shows old text editing over a colored background
Carbon, Graphics & Imaging, User Experience 2003-07-22
CallMachOFramework (HTML) (DMG) (ZIP)
Shows two ways of calling a Mach-O framework from a CFM application on Mac OS X.
Carbon, Cocoa 2003-07-17
CFM_MachO_CFM (HTML) (DMG) (ZIP)
CFM application calls Mach-O routine, passing in a fixed up CFM function pointer as a callback parameter.
Carbon, Cocoa 2003-07-17
Cocoa CG aliasing demo (HTML) (DMG) (ZIP)
Shows how to draw both aliased and anti-aliased text and graphics using Quartz and Cocoa.
Cocoa, Graphics & Imaging 2003-07-17
Cocoa CG arc demo (HTML) (DMG) (ZIP)
Shows how to draw both aliased and anti-aliased arcs using Quartz and Cocoa.
Cocoa, Graphics & Imaging 2003-07-17
DeviceListener (HTML) (DMG) (ZIP)
Uses the DiscRecording framework to listen for device plug/unplug events and media insertion events.
Cocoa 2003-07-17
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