Jump To:
The Reference Library is a comprehensive collection of Apple technical resources, including Articles, Guides, Reference, Release Notes, Sample Code, Technical Notes, and Technical Q&As. Each of the links below leads to the resources for a specific topic.

Document Descriptions
On Off
Display

Sort by
Title
Sort by
Topic
Sorted by
Resource Type
Sort by
Date
AddNibToNav (HTML) (DMG) (ZIP)
Shows how to create a custom area, instantiated from a nib file, in a Navigation Services dialog.
Carbon Sample Code 2004-01-22
ColorMatching (HTML) (DMG) (ZIP)
Performs simple color matching of images using ColorSync or the QuickTime 6.4 Graphics Importers.
Cocoa, Graphics & Imaging, QuickTime Sample Code 2003-12-18
MovieGWorlds (HTML) (DMG) (ZIP)
Demonstrates movie drawing-complete functions, movie compositing and using SetTrackGWorld to draw into a specific graphics world.
QuickTime Sample Code 2003-12-18
TipWrapper (HTML) (DMG) (ZIP)
Shows how to wrap long tool tips into multiple lines in Cocoa.
Cocoa Sample Code 2003-12-18
CocoaPeoplePicker (HTML) (DMG) (ZIP)
Demonstrates how to use the AddressBook framework's ABPeoplePickerView.
Apple Applications, Cocoa Sample Code 2003-12-11
OpenGL Screensaver (HTML) (DMG) (ZIP)
Demonstrates how to integrate OpenGL drawing into a standard Cocoa screen saver on Mac OS X.
Cocoa, Graphics & Imaging Sample Code 2003-12-10
MapLargeFile (HTML) (DMG) (ZIP)
Shows a technique for mapping files greater than 4GB into memory for faster access.
Carbon, Cocoa, Core Foundation, Darwin, Performance Sample Code 2003-11-19
MungSaver (HTML) (DMG) (ZIP)
Demonstrates a simple Screen Saver module for Panther, using the Sequence Grabber DataProc mung technique.
Carbon, Cocoa, QuickTime, User Experience Sample Code 2003-11-18
RGB ValueTransformers (HTML) (DMG) (ZIP)
Supersedes the "RGB Image sample". Sample now uses bindings. Color separation now done in an NSValueTransformer subclass.
Cocoa, Graphics & Imaging Sample Code 2003-11-18
HIEmbedder (HTML) (DMG) (ZIP)
Shows how to write a custom embedding HIView which can scroll if set in an HIScrollView.
Carbon Sample Code 2003-11-13
HIScrollingTextBox (HTML) (DMG) (ZIP)
Offers replacement custom HIViews for the Scrolling TextBox control which does not work in compositing windows.
Carbon Sample Code 2003-11-06
HITextViewShowcase (HTML) (DMG) (ZIP)
Shows how to create a HITextView using Interface Builder and using programming functions only.
Carbon, Text & Fonts Sample Code 2003-10-30
Process (HTML) (DMG) (ZIP)
A simple demonstration of the Process Manager API.
Carbon Sample Code 2003-10-30
AsyncPB (HTML) (DMG) (ZIP)
Deprecated - Describes how to chain File System calls from an interrupt handler like a Time Manager task.
Carbon Sample Code 2003-10-27
ContentBurn (HTML) (DMG) (ZIP)
Creates an audio CD using standard audio files like mp3, aac, aiff, and wav.
Cocoa Sample Code 2003-10-27
CPUGestalt (HTML) (DMG) (ZIP)
Deprecated - Shows how to determine the processor type of the Macintosh you're running on.
Carbon, Hardware & Drivers Sample Code 2003-10-27
FancyAbout (HTML) (DMG) (ZIP)
Demonstrates several visual effects for "About..." panels such as scrolling text, window without a title bar, and ways to dismiss the window.
Cocoa Sample Code 2003-10-27
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 Sample Code 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 Sample Code 2003-10-27
InkSample (HTML) (DMG) (ZIP)
Demonstrates some usage scenarios for the Ink.Framework APIs.
Carbon, Cocoa, Core Foundation, Text & Fonts, User Experience Sample Code 2003-10-27
JAWTExample (HTML) (DMG) (ZIP)
Using the new JAWT structs included with Java 1.4.1 Update 1 for Jaguar.
Java Sample Code 2003-10-27
MoreIsBetter (HTML) (DMG) (ZIP)
Library providing indispensable wrapers and workarounds for many areas of Mac OS programming.
Audio, Carbon, Core Foundation, Darwin, Enterprise IT, Graphics & Imaging, Internationalization, Internet & Web, Networking, Porting, Scripting & Automation, Security, Text & Fonts, User Experience Sample Code 2003-10-27
MPDelayUntilTest (HTML) (DMG) (ZIP)
Tests and demonstrates the MT/MP MPDelayUntil API.
Performance Sample Code 2003-10-27
MPPeriodicalTest (HTML) (DMG) (ZIP)
Tests and demonstrates the MT/MP timers.
Performance Sample Code 2003-10-27
OldDelegateOnlyComponent (HTML) (DMG) (ZIP)
Deprecated - Please see DelegateOnlyComponent for the current version of this sample.
QuickTime Sample Code 2003-10-27
QTMLPrintingSample (HTML) (DMG) (ZIP)
Uses the QuickTime APIs to draw into a standard Win32 printing device context.
QuickTime Sample Code 2003-10-27
qtshell (HTML) (DMG) (ZIP)
Simple QuickTime and QuickTime VR viewer framework.
Carbon, Graphics & Imaging, QuickTime Sample Code 2003-10-27
qtshell.win (HTML) (DMG) (ZIP)
Simple QuickTime and QuickTime VR viewer framework.
QuickTime Sample Code 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 Sample Code 2003-10-27
soundsnippets (HTML) (DMG) (ZIP)
SoundSnippets.c defines functions that perform some common sound-related operations.
QuickTime Sample Code 2003-10-27
soundsnippets.win (HTML) (DMG) (ZIP)
SoundSnippets.c defines functions that perform some common sound-related operations.
QuickTime Sample Code 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 Sample Code 2003-10-27
YASTControl (HTML) (DMG) (ZIP)
An application illustrating how to use a user pane control to define MLTE based text fields.
Carbon Sample Code 2003-10-27
FloatingWindow (HTML) (DMG) (ZIP)
Demonstrates that floating windows are very easy to implement on Mac OS X using Nib files.
Carbon Sample Code 2003-10-24
MenuViews (HTML) (DMG) (ZIP)
Demonstrates a variety of interesting uses of HIView-based menus in Mac OS X 10.3.
Carbon Sample Code 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 Sample Code 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 Sample Code 2003-10-24
DrawSprocketTestOld (HTML) (DMG) (ZIP)
Deprecated - Demonstrates basic implementations of DrawSprocket Functions.
Carbon, Games Sample Code 2003-10-14
FinderLaunch (HTML) (DMG) (ZIP)
Shows how to open documents by sending Apple Events to the Finder.
Carbon Sample Code 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 Sample Code 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 Sample Code 2003-10-10
Palette and GWorld (HTML) (DMG) (ZIP)
Deprecated - Demonstrates the use of palette and color tables with GWorlds.
Carbon, Graphics & Imaging Sample Code 2003-10-10
HID Utilities Source (HTML) (DMG) (ZIP)
Shows a high level abstract library for the HID manager.
Games, Hardware & Drivers, User Experience Sample Code 2003-10-06
EmbededAppleScripts (HTML) (DMG) (ZIP)
Extending the functionality of your application by adding precompiled AppleScripts.
Carbon, Scripting & Automation Sample Code 2003-09-04
QTEffectsDialog - Cocoa (HTML) (DMG) (ZIP)
Shows how to display the standard QuickTime effects parameters dialog in a Cocoa application.
Cocoa, QuickTime Sample Code 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 Sample Code 2003-08-27
OTEndpointInfo (HTML) (DMG) (ZIP)
Deprecated - Demonstrates how to query an endpoint for its 'vital statistic' using OTGetEndpointInfo.
Carbon, Networking Sample Code 2003-08-20
GrabBag (HTML) (DMG) (ZIP)
Demonstrates variety of techniques and features of Carbon. DataBrowser , PBCatalogSearchAsync, Overlay windows, Tab controls, more...
Carbon Sample Code 2003-07-29
TextLinks (HTML) (DMG) (ZIP)
Programmatically creates links to URLs and other objects and handles clicks in non-URL links.
Cocoa Sample Code 2003-07-29
BasicPlugIn (HTML) (DMG) (ZIP)
Uses the CFPlugin to locate, load, execute plugin. Derived from the SillyBalls sample.
Carbon, Porting Sample Code 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 Sample Code 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 Sample Code 2003-07-22
OTMP (HTML) (DMG) (ZIP)
Deprecated - A library for calling Open Transport synchronously from preemptively scheduled tasks (MP tasks).
Carbon, Networking Sample Code 2003-07-22
OTPingSample (HTML) (DMG) (ZIP)
Deprecated - Demonstrates how to implement ping on top of the Open Transport API.
Carbon, Networking Sample Code 2003-07-22
Simple DrawSprocket (HTML) (DMG) (ZIP)
Deprecated - Simple use of DrawSprocket to set screen resolution and size.
Carbon, Games Sample Code 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 Sample Code 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 Sample Code 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 Sample Code 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 Sample Code 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 Sample Code 2003-07-17
DeviceListener (HTML) (DMG) (ZIP)
Uses the DiscRecording framework to listen for device plug/unplug events and media insertion events.
Cocoa Sample Code 2003-07-17
Draw Pixels (HTML) (DMG) (ZIP)
An example of the correct use of DrawPixels.
Graphics & Imaging Sample Code 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 Sample Code 2003-07-16
TextureRange (HTML) (DMG) (ZIP)
Shows the fundamental techniques required to fast texture upload performance.
Graphics & Imaging Sample Code 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 Sample Code 2003-07-10
SampleButtonPlugin (HTML) (DMG) (ZIP)
Demonstrates how to write a TWAIN button listener plug-in code module.
Apple Applications Sample Code 2003-07-10
SampleDS (HTML) (DMG) (ZIP)
Demonstrates how to implement a TWAIN Data Source (DS) for Mac OS X.
Apple Applications Sample Code 2003-07-10
AGLSurfaceTexture (HTML) (DMG) (ZIP)
Example of render to texture/texture from surface using aglSurfaceTexture.
Carbon, Games, Graphics & Imaging Sample Code 2003-07-07
Carbon GLSnapshot (HTML) (DMG) (ZIP)
Demonstrates the use of OpenGL with Quicktime to capture OpenGL content.
Carbon, Games, Graphics & Imaging, QuickTime Sample Code 2003-07-07
NURBSSurfaceVertexProg (HTML) (DMG) (ZIP)
Uses a vertex program to compute the vertex position for a NURB surface.
Graphics & Imaging Sample Code 2003-07-07
SurfaceVertexProgram (HTML) (DMG) (ZIP)
Vertex program that demonstrates the use of a UV mesh to draw an implicit surface.
Graphics & Imaging Sample Code 2003-07-07
VBL (HTML) (DMG) (ZIP)
A simple example of how to create an OpenGLView in AppKit.
Cocoa, Graphics & Imaging Sample Code 2003-07-07
Vertex Optimization (HTML) (DMG) (ZIP)
Shows examples of optimized vertex throughput.
Graphics & Imaging Sample Code 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 Sample Code 2003-06-12
Sproing (HTML) (DMG) (ZIP)
Shows how "springs" work to control view resizing behavior.
Cocoa, Tools Sample Code 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 Sample Code 2003-05-15
BasicDataBrowser (HTML) (DMG) (ZIP)
Shows how to create a basic, functional data browser.
Carbon Sample Code 2003-05-08
FunkyOverlayWindow (HTML) (DMG) (ZIP)
Demonstrates several window layering, transparency and widget interaction techniques in Cocoa.
Cocoa Sample Code 2003-05-08
FunWithFileDialogs (HTML) (DMG) (ZIP)
Demo of the AWT FileChooser and Swing Aqua JFileChooser, and available Mac-specific runtime options.
Java Sample Code 2003-04-30
CubePuzzle (HTML) (DMG) (ZIP)
Models a Rubik's Cube using Cocoa and OpenGL
Cocoa, Games, Graphics & Imaging Sample Code 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 Sample Code 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 Sample Code 2003-04-21
CarbonInCocoa (HTML) (DMG) (ZIP)
How to use Carbon GUI code in a Cocoa application.
Carbon, Cocoa Sample Code 2003-03-26
SimpleSpeechRecExample (HTML) (DMG) (ZIP)
Demonstrates how to use the Speech Recognition Manager in a simple application.
Audio, Carbon, Games, User Experience Sample Code 2003-03-26
QTMusicToo (HTML) (DMG) (ZIP)
Deprecated - Shows all of the QuickTime Music features introduced with QuickTime 2.0.
QuickTime Sample Code 2003-03-19
MeterTest (HTML) (DMG) (ZIP)
Sampling of sound input using SPBGetDeviceInfo(). Metering is then turned on and sampling is repeated.
QuickTime Sample Code 2003-03-14
Sound PreMixer effect (HTML) (DMG) (ZIP)
Deprecated - A sound manager pre-mixer effect component.
QuickTime Sample Code 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 Sample Code 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 Sample Code 2003-03-12
addflashactions (HTML) (DMG) (ZIP)
Adds a few wired actions to a movie that has a flash track.
QuickTime Sample Code 2003-02-25
addflashactions.win (HTML) (DMG) (ZIP)
Adds a few wired actions to a movie that has a flash track.
QuickTime Sample Code 2003-02-25
addhtactions (HTML) (DMG) (ZIP)
Adds two go-to-URL actions to parts of the text track.
QuickTime Sample Code 2003-02-25
addhtactions.win (HTML) (DMG) (ZIP)
Adds two go-to-URL actions to parts of the text track.
QuickTime Sample Code 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 Sample Code 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 Sample Code 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 Sample Code 2003-02-25
Dimmer2Effect (HTML) (DMG) (ZIP)
Shows how to build a custom 2 source effect component for QuickTime.
QuickTime Sample Code 2003-02-25
Dimmer2Effect.win (HTML) (DMG) (ZIP)
Shows how to build a custom 2 source effect component for QuickTime.
QuickTime Sample Code 2003-02-25
FastDitherUsingQT (HTML) (DMG) (ZIP)
Demonstrates how you can use QuickTime to get faster dithering.
QuickTime Sample Code 2003-02-25
GreyscaleEffectSample (HTML) (DMG) (ZIP)
Shows how to build a custom single source effect component for QuickTime.
QuickTime Sample Code 2003-02-25