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

Sorted by
Title
Sort by
Topic
Sort by
Date
HIScrollingTextBox (HTML) (DMG) (ZIP)
Offers replacement custom HIViews for the Scrolling TextBox control which does not work in compositing windows.
Carbon 2003-11-06
HISimpleList (HTML) (DMG) (ZIP)
Illustrates how to create a simple list using the HIView APIs introduced in Mac OS X 10.2.
Carbon 2006-03-03
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
HITextViewDemo (HTML) (DMG) (ZIP)
Overview of basic HITextView functionality, including Tiger's new font & spelling panel support.
Carbon, Text & Fonts, User Experience 2005-06-01
HITextViewShowcase (HTML) (DMG) (ZIP)
Shows how to create a HITextView using Interface Builder and using programming functions only.
Carbon, Text & Fonts 2003-10-30
HIToolboxSOU-Delegates (HTML) (DMG) (ZIP)
Shows how to use the HIObject Delegate API.
Carbon 2006-08-04
HIToolboxSOU-MenuItemViews (HTML) (DMG) (ZIP)
Shows how to use the Menu Item View API.
Carbon 2006-08-04
HIView-NSView (HTML) (DMG) (ZIP)
Demonstrates how to embed an NSView within an HIView in a Carbon window.
Carbon, Porting, User Experience 2007-05-29
HIViewTest (HTML) (DMG) (ZIP)
An HIView with rudimentary drawing and hit testing.
Carbon 2003-01-30
HTML Editing Toolbar (HTML) (DMG) (ZIP)
Implements an HTML editing toolbar for Safari using JavaScript and CSS
Internet & Web 2007-06-11
HTML Video With CSS Effects and Custom Video Controls (HTML) (DMG) (ZIP)
HTML5 video element example that uses CSS effects and custom video controls.
Apple Applications, Internet & Web, QuickTime 2008-08-06
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
IBFragmentView (HTML) (DMG) (ZIP)
Illustrates building an Interface Builder plugin including a custom inspector and library integration for a custom view.
Tools 2006-08-01
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
iChatAppleScriptSamples (HTML) (DMG) (ZIP)
Sample AppleScripts demonstrating new iChat AppleScript features in Leopard, including Event Handlers.
Apple Applications 2006-08-04
iChatStatusFromApplication (HTML) (DMG) (ZIP)
Demonstrates how to communicate with iChat using Scripting Bridge.
Apple Applications 2008-03-31
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
IconCollection (HTML) (DMG) (ZIP)
Demonstrates how to use NSCollectionView along with NSWorkspace and named images to determine its content.
Cocoa, User Experience 2008-01-18
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
IdentitySample (HTML) (DMG) (ZIP)
IdentitySample builds a utility which demonstrates how to use the CoreServices Identity API to manage system-wide identities
Core Foundation, Networking, Security 2006-07-27
IKSlideshowDemo (HTML) (DMG) (ZIP)
This small sample project shows how to use the ImageKit Slideshow to display images or PDFs.
Graphics & Imaging 2006-08-01
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
Image Kit with Core Data (HTML) (DMG) (ZIP)
Using Image Kit's browser view with Core Data content.
Cocoa, Graphics & Imaging, User Experience 2008-07-25
ImageApp (HTML) (DMG) (ZIP)
Demonstrates basic image handling using the ImageIO APIs in Mac OS X 10.4 Tiger
Graphics & Imaging 2008-01-24
ImageBackground (HTML) (DMG) (ZIP)
Shows how to draw an image in the background of an NSOutlineView and NSTableView.
Cocoa, Graphics & Imaging, User Experience 2006-10-02
ImageBrowser (HTML) (DMG) (ZIP)
Demonstrates the ImageKit's IKImageBrowserView to browse images in a basic Cocoa application.
Cocoa, Graphics & Imaging 2007-03-13
ImageBrowserView (HTML) (DMG) (ZIP)
Implementing a simple HIView subclass
Carbon 2005-06-01
ImageClient (HTML) (DMG) (ZIP)
Demonstrates how to use CFNetwork for synchronous and asynchronous operations, network diagnostics, proxy navigation, and authentication.
Carbon, Cocoa, Core Foundation, Games, Networking 2005-06-01
ImageCompositing (HTML) (DMG) (ZIP)
Deprecated - Applies compositing effects such as blend and transparency. Also records a Movie using the Compositor.
QuickTime 2003-01-14
ImageFile (HTML) (DMG) (ZIP)
Shows how to use GraphicsImporter to import and display a wide range of image file formats.
Java, QuickTime 2006-06-28
ImageMapExample (HTML) (DMG) (ZIP)
Implements a custom NSView, an image map, and accessorizes it (i.e. makes it work with accessibility).
Cocoa, User Experience 2005-06-01
ImageMapView (HTML) (DMG) (ZIP)
Demonstrates how to add Accessibility to a complex custom HIView and the related parts of an application.
Carbon 2005-10-17
ImageProducing (HTML) (DMG) (ZIP)
Demonstrates how to display any QuickTime drawing object using Java's ImageProducing model.
Java, QuickTime 2006-05-05
ImagesToQTMovie (HTML) (DMG) (ZIP)
Creates a QuickTime movie from the images of any connected camera.
Apple Applications, Cocoa 2003-01-14
ImportExport (HTML) (DMG) (ZIP)
Demonstrates both importing and referencing a media file and performing a movie export with customisable settings.
Java, QuickTime 2006-05-11
ImportExportMovie (HTML) (DMG) (ZIP)
Shows how to import files into QuickTime movies and export movie data.
QuickTime 2003-01-14
ImproveYourImage (HTML) (DMG) (ZIP)
Demonstrates the use of QuickTime Graphics Importers and Exporters.
QuickTime 2005-08-24
InkSample (HTML) (DMG) (ZIP)
Demonstrates some usage scenarios for the Ink.Framework APIs.
Carbon, Cocoa, Core Foundation, Text & Fonts, User Experience 2003-10-27
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
Installer Tiger Examples (HTML) (DMG) (ZIP)
A walkthrough of using distribution scripts and other Tiger Installer features.
Tools, User Experience 2005-06-01
InstallerPluginSample (HTML) (DMG) (ZIP)
Provides instructions for extending software installation using custom plugins
Games, Tools, User Experience 2006-08-30
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
IOPrintSuperClasses (HTML) (DMG) (ZIP)
Given the name of a class, this tool will print all of the super-classes of that class.
Darwin 2005-08-17
iSpend (HTML) (DMG) (ZIP)
Demonstrates how to incorporate a number of Cocoa Tiger features into a simple application.
Cocoa 2005-06-01
iSync Sample Document (HTML) (DMG) (ZIP)
iSync Plug-in Maker sample document, illustrating how to build an iSync plug-in for a SyncML phone.
Apple Applications, Tools 2006-08-01
iTunesController (HTML) (DMG) (ZIP)
iTunesController allows you to control iTunes without having to bring it to the foreground.
Apple Applications, Carbon, Scripting & Automation, User Experience 2006-02-23
JavaEOGenerator (HTML) (DMG) (ZIP)
Java-based template generation engine similar to EOGenerator
Java 2007-11-14
JavaFrameEmbedding example (HTML) (DMG) (ZIP)
Small Cocoa application that demonstrates how to use JavaFrameEmbedding.framework
Cocoa, Internet & Web, Java, User Experience 2007-06-12
JavaSplashScreen (HTML) (DMG) (ZIP)
Deprecated - Quickly display a splash screen while instantiating the 1.4.x/1.5 JVM from a Cocoa application.
Java, Performance 2006-04-12
JAWTExample (HTML) (DMG) (ZIP)
Using the new JAWT structs included with Java 1.4.1 Update 1 for Jaguar.
Java 2003-10-27
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
JSheets (HTML) (DMG) (ZIP)
Uses AWT Native Interface (JAWT) to Display Cocoa sheet dialogs in Java
Java 2006-07-11
JSInterpreter (HTML) (DMG) (ZIP)
Simple JavaScript interpreter
Cocoa, Internet & Web 2007-06-06
JSPong (HTML) (DMG) (ZIP)
Pong with JavaScript AI
Cocoa, Internet & Web 2007-06-06
JustDraw (HTML) (DMG) (ZIP)
Sample code being used in the WWDC 2005 Hands-On session 215 "Moving from QD to Quartz"
Graphics & Imaging 2005-06-01
KauthORama (HTML) (DMG) (ZIP)
Prints each Kauth request, illustrating how Kauth interacts with high-level operations, like copying files.
Darwin, Security 2007-04-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
Kerberos GSS (HTML) (DMG) (ZIP)
Kerberos GSS-API Sample
Networking, Security 2008-06-04
KeyboardController (HTML) (DMG) (ZIP)
Shows how to customise user controlled playback of a movie using the keyboard.
Java, QuickTime 2006-05-11
KeyMapTest (HTML) (DMG) (ZIP)
Uses Pascal to display a KeyMap representation whenever keys are pressed.
Carbon 2003-01-30
KillEveryOneButMe (HTML) (DMG) (ZIP)
Demonstrates how to terminate all other processes.
Carbon 2005-08-24
LayerBackedOpenGLView (HTML) (DMG) (ZIP)
"LayerBackedOpenGLView" provides a simple example of hosting Cocoa controls as subviews of an NSOpenGLView.
Cocoa, Graphics & Imaging, User Experience 2007-06-12
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
Link Snoop (HTML) (DMG) (ZIP)
Shows how to use PDFKit to scan for and highlight link annotations in PDFs.
Cocoa, Graphics & Imaging 2005-06-01
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
LittleArrowsShowcase (HTML) (DMG) (ZIP)
How to increment and decrement the LittleArrows value when the user clicks on the up and down buttons.
Carbon 2006-11-09
Live Scroll (HTML) (DMG) (ZIP)
Deprecated - Demonstrates how to implementing live scrolling during the tracking of scroll bar thumbs.
Carbon 2003-01-30
LiveVideoMixer (HTML) (DMG) (ZIP)
LiveVideoMixer demonstrates customized video rendering with QuickTime 7 and CoreVideo and OpenGL.
Graphics & Imaging, QuickTime 2008-04-24
LiveVideoMixer2 (HTML) (DMG) (ZIP)
An updated LiveVideoMixer with DV out over FireWire
Graphics & Imaging, QuickTime 2006-05-05
LiveVideoMixer3 (HTML) (DMG) (ZIP)
LiveVideoMixer3 is extended to support Video In via QTKit
Cocoa, Graphics & Imaging, QuickTime 2006-08-01
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
LoginItemsAE (HTML) (DMG) (ZIP)
Uses Apple events to manipulate the list of login items (items launched when you log in).
Carbon, Cocoa 2005-10-17
LSMSmartCategorizer (HTML) (DMG) (ZIP)
Demonstrates the Latent Semantic Mapping (LSM) framework by automatically categorize RSS feeds.
Cocoa, Internet & Web, Networking 2007-05-09
MachPortDump (HTML) (DMG) (ZIP)
Dumps out the Mach port name space of a process; useful when debugging port right leaks.
Darwin, Tools 2005-08-10
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
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
MakeiPhoneRefMovie (HTML) (DMG) (ZIP)
Demonstrates how to generate QuickTime Reference Movies for iPhone.
Apple Applications, Internet & Web, QuickTime 2007-08-03
ManagedObjectDataFormatter (HTML) (DMG) (ZIP)
A Data Formatter for Xcode 2.0 and 2.1 that displays NSManagedObject * variables.
Cocoa, Core Foundation, Tools 2005-06-01
MapLargeFile (HTML) (DMG) (ZIP)
Shows a technique for mapping files greater than 4GB into memory for faster access.
Carbon, Cocoa, Core Foundation, Darwin, Performance 2003-11-19
MassiveImage (HTML) (DMG) (ZIP)
Shows how to use a CGDataProvider to save a very large image with Image IO
Carbon, Cocoa, Games, Graphics & Imaging, Performance 2007-09-27
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
MemoryBasedBundle (HTML) (DMG) (ZIP)
Shows how to execute Mach-O code from memory, much like GetMemFragment in CFM.
Carbon, Darwin 2005-08-10
MenuItemView (HTML) (DMG) (ZIP)
Demonstrates embedding an NSView inside a menu item or NSMenuItem.
Cocoa, User Experience 2007-06-11
MenuViews (HTML) (DMG) (ZIP)
Demonstrates a variety of interesting uses of HIView-based menus in Mac OS X 10.3.
Carbon 2003-10-24
MeterTest (HTML) (DMG) (ZIP)
Sampling of sound input using SPBGetDeviceInfo(). Metering is then turned on and sampling is repeated.
QuickTime 2003-03-14
MethodReplacement (HTML) (DMG) (ZIP)
Demonstrates an Objective C 2 compatible way to replace a method in an existing Objective C class.
Cocoa 2006-08-01
mfc.win (HTML) (DMG) (ZIP)
Contains a number of QuickTime samples using MFC: MFCMDIPlayer, MFCQTClasses, QTClasses, SimpleEdit, SimplePlayer.
QuickTime 2003-01-14
MFSLives (HTML) (DMG) (ZIP)
Sample VFS plug-in for the Macintosh File System (MFS) volume format, as used on 400KB floppies.
Darwin 2006-11-09
MLTE_CustomScrolling (HTML) (DMG) (ZIP)
Shows how to implement MLTE's custom scrolling functionality
Carbon, Text & Fonts, User Experience 2004-10-15
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
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