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
HIDoubleSlider (HTML) (DMG) (ZIP)
Illustrates how to create a double slider using the Appearance and HIView functions introduced in Mac OS X 10.2.
Carbon 2003-10-27
HITextShowcase (HTML) (DMG) (ZIP)
Illustrates some of the different text-related controls, non-controls, and HIViews that are available in Mac OS X 10.3.
Carbon, Text & Fonts 2003-10-27
InkSample (HTML) (DMG) (ZIP)
Demonstrates some usage scenarios for the Ink.Framework APIs.
Carbon, Cocoa, Core Foundation, Text & Fonts, User Experience 2003-10-27
JAWTExample (HTML) (DMG) (ZIP)
Using the new JAWT structs included with Java 1.4.1 Update 1 for Jaguar.
Java 2003-10-27
MoreIsBetter (HTML) (DMG) (ZIP)
Library providing indispensable wrapers and workarounds for many areas of Mac OS programming.
AppleScript, Audio, Carbon, Core Foundation, Darwin, Enterprise IT, Graphics & Imaging, Hardware & Drivers, Internationalization, Internet & Web, Mac OS 9 & Earlier, Networking, Porting, Security, Text & Fonts, User Experience 2003-10-27
MPDelayUntilTest (HTML) (DMG) (ZIP)
Tests and demonstrates the MT/MP MPDelayUntil API.
Performance 2003-10-27
MPPeriodicalTest (HTML) (DMG) (ZIP)
Tests and demonstrates the MT/MP timers.
Performance 2003-10-27
OldDelegateOnlyComponent (HTML) (DMG) (ZIP)
Deprecated - Please see DelegateOnlyComponent for the current version of this sample.
QuickTime 2003-10-27
QTMLPrintingSample (HTML) (DMG) (ZIP)
Uses the QuickTime APIs to draw into a standard Win32 printing device context.
QuickTime 2003-10-27
qtshell (HTML) (DMG) (ZIP)
Simple QuickTime and QuickTime VR viewer framework.
Carbon, Graphics & Imaging, QuickTime 2003-10-27
qtshell.win (HTML) (DMG) (ZIP)
Simple QuickTime and QuickTime VR viewer framework.
QuickTime 2003-10-27
SimplePing (HTML) (DMG) (ZIP)
Sample provides simple API to programatically ping a remote host without admin privileges
Darwin, Games, Internet & Web, Networking, Tools 2003-10-27
soundsnippets (HTML) (DMG) (ZIP)
SoundSnippets.c defines functions that perform some common sound-related operations.
QuickTime 2003-10-27
soundsnippets.win (HTML) (DMG) (ZIP)
SoundSnippets.c defines functions that perform some common sound-related operations.
QuickTime 2003-10-27
TextNameTool (HTML) (DMG) (ZIP)
A command line tool sample illustrating how to use various graphical facilities and services without a login.
Carbon, Graphics & Imaging, Text & Fonts 2003-10-27
YASTControl (HTML) (DMG) (ZIP)
An application illustrating how to use a user pane control to define MLTE based text fields.
Carbon 2003-10-27
Converter_nib (HTML) (DMG) (ZIP)
Demonstrates using nib files -- containing UI elements created in Interface Builder -- in a Carbon application.
Carbon, Tools 2003-10-24
FloatingWindow (HTML) (DMG) (ZIP)
Demonstrates that floating windows are very easy to implement on Mac OS X using Nib files.
Carbon 2003-10-24
MenuViews (HTML) (DMG) (ZIP)
Demonstrates a variety of interesting uses of HIView-based menus in Mac OS X 10.3.
Carbon 2003-10-24
Sheets (HTML) (DMG) (ZIP)
Demonstrates how to create a sheet both in code and through the use of a Nib file.
Carbon 2003-10-24
Tiler (HTML) (DMG) (ZIP)
Modify your applications tile icon within the Mac OS X dock by using both QuickDraw and Quartz
Carbon 2003-10-24
DrawSprocketTestOld (HTML) (DMG) (ZIP)
Deprecated - Demonstrates basic implementations of DrawSprocket Functions.
Carbon, Games 2003-10-14
FinderLaunch (HTML) (DMG) (ZIP)
Shows how to open documents by sending Apple Events to the Finder.
Carbon 2003-10-14
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
SuspendAppleEvent (HTML) (DMG) (ZIP)
Illustrates how to suspend and resume AppleEvents.
AppleScript, Carbon, User Experience 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
VideoProcessing (HTML) (DMG) (ZIP)
Demonstrates processing video (both live and stored) using various methods within QuickTime.
QuickTime 2003-10-06
Movie Overlay (HTML) (DMG) (ZIP)
Demonstrates how to overlay text & graphics and perform animation on an NSMovieView through a floating overlay window.
Cocoa, QuickTime 2003-09-18
EmbededAppleScripts (HTML) (DMG) (ZIP)
Extending the functionality of your application by adding precompiled AppleScripts.
AppleScript, Carbon 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
UIElementInspector (HTML) (DMG) (ZIP)
Demonstrates using the Accessibility API introduced in Mac OS X 10.2, which allows manipulation of an applications' UI,
Cocoa, User Experience 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
Cocoa CG shading demo (HTML) (DMG) (ZIP)
Shows how to use the Quartz 2D shading APIs found in CGShading.h.
Cocoa, Graphics & Imaging 2003-07-22
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
CocoaSpeechSynthesisExample (HTML) (DMG) (ZIP)
Shows how to use the Carbon Speech Synthesis API from within a Mac OS X Cocoa application.
Accessibility, Games, User Experience 2003-06-18
SCSIOldAndNew (HTML) (DMG) (ZIP)
Demonstrates a backward-compatible technique for communicating with SCSI parallel devices on Mac OS X.
Hardware & Drivers 2003-06-17
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
PictureShow (HTML) (DMG) (ZIP)
Shows how to create a Keynote document via code, demonstrated with a Java command-line tool.
Apple Applications 2003-03-05
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