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
File Wrappers with Core Data Documents (HTML) (DMG) (ZIP)
This sample demonstrates how directory file wrappers can be used with NSPersistentDocument.
Cocoa 2009-04-29
ASCIIMoviePlayerSample (HTML) (DMG) (ZIP)
Demonstrates using a MovieDrawingCompleteProc to render a QuickTime movie in the Mac OS X Terminal.
QuickTime 2009-04-21
QTCoreVideo202 (HTML) (DMG) (ZIP)
Demonstrates how to render a QuickTime Movie using OpenGL PBO and the Core Video pixel buffer pipeline.
Cocoa, Graphics & Imaging, QuickTime 2009-04-07
QTCoreVideo301 (HTML) (DMG) (ZIP)
Demonstrates adding of effects & filters to QuickTime Movies in realtime using GLSL shaders and the Core Video texture pipeline.
Cocoa, Graphics & Imaging, QuickTime 2009-04-07
QTCarbonShell (HTML) (DMG) (ZIP)
A skeleton of a modern Carbon QuickTime application demonstrating how to incorporate QuickTime support into a Carbon application.
Carbon, QuickTime 2009-03-19
QTMetaData (HTML) (DMG) (ZIP)
Demonstrates the QuickTime 7 MetaData APIs in a Carbon application.
Carbon, QuickTime 2009-03-16
PMPrinterTest (HTML) (DMG) (ZIP)
Demonstrates using the PMPrinter APIs to obtain information about the connected printers.
Carbon, Cocoa, Printing 2009-02-13
SBSystemPrefs (HTML) (DMG) (ZIP)
Shows how to use Scripting Bridge to display a preference pane in System Preferences.
Cocoa, Scripting & Automation 2008-10-13
CALayerEssentials (HTML) (DMG) (ZIP)
Demonstrates the basics of setting up various Core Animation layers
Cocoa, Games, Graphics & Imaging 2008-09-30
Birthdays (HTML) (DMG) (ZIP)
Dashboard widget with a plug-in that queries AddressBook.framework for contacts with upcoming birthdays.
Apple Applications, Tools 2008-09-10
Squiggles (HTML) (DMG) (ZIP)
Demonstrates many Cocoa fundamentals in a Document-based Application featuring custom drawing and event-handling.
Cocoa, Graphics & Imaging 2008-08-29
SimpleUserClient (HTML) (DMG) (ZIP)
Shows how to create a user client for an I/O Kit kernel driver.
Audio, Darwin, Hardware & Drivers, Mac OS X Server 2008-08-27
PhotoToss: CSS Transforms, Transitions, and Web Fonts (HTML) (DMG) (ZIP)
Demonstrates how to use CSS Transforms, Transitions, and Web Fonts.
Apple Applications, Internet & Web 2008-08-21
OpenGLScreenSnapshot (HTML) (DMG) (ZIP)
Demonstrates how to get the screen pixels using OpenGL and save them to an image file.
Graphics & Imaging 2008-08-14
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
CoreImageGLTextureFBO (HTML) (DMG) (ZIP)
Making OpenGL textures with Core Image
Graphics & Imaging 2008-07-30
GLSL Basics Cocoa (HTML) (DMG) (ZIP)
GLSL fundamentals using NSOpenGLView
Graphics & Imaging 2008-07-30
HID LED test tool (HTML) (DMG) (ZIP)
HID Manager sample project that shows how to set and clear keyboard LEDs.
Games, Porting, User Experience 2008-07-25
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
Movie Overlay (HTML) (DMG) (ZIP)
Shows how to overlay text & graphics and perform animation on an QTMovieView through a floating overlay window.
Cocoa, QuickTime 2008-07-25
PortMapper (HTML) (DMG) (ZIP)
Demonstrates Bonjour's NAT port-mapping API, and provides a higher-level Objective-C interface to it.
Cocoa, Internet & Web, Networking 2008-07-25
Reminders (HTML) (DMG) (ZIP)
Dashboard widget with a plug-in that displays upcoming iCal events, to do items, and calendars.
Apple Applications, Cocoa, Tools 2008-07-25
BootstrapDump (HTML) (DMG) (ZIP)
Print Mach bootstrap namespace information.
Darwin 2008-06-18
FinalCutServerIntegrationSample (HTML) (DMG) (ZIP)
Shows how to integrate an external application with Final Cut Server
Apple Applications 2008-06-07
QTCoreVideo102 (HTML) (DMG) (ZIP)
An application demonstrating the use of QTKit, CoreVdeo, and OpenGL.
Cocoa, Graphics & Imaging, QuickTime 2008-06-06
QTCoreVideo103 (HTML) (DMG) (ZIP)
Demonstrates how to render a QuickTime Movie using OpenGL texture range and the Core Video pixel buffer pipeline.
Cocoa, Graphics & Imaging, QuickTime 2008-06-06
QTCoreVideo201 (HTML) (DMG) (ZIP)
Demonstrates how to render a QuickTime Movie using OpenGL FBO and the Core Video texture pipeline.
Cocoa, Graphics & Imaging, QuickTime 2008-06-06
SIMD Primer (HTML) (DMG) (ZIP)
Introduction to using SIMD/SSE
Performance 2008-06-06
SpotlightFortunes (HTML) (DMG) (ZIP)
Demonstrates how to provision a Spotlight importer plug-in for a custom UTI, and how to use a NSMetadataQuery with bindings to display live query results in a table view.
Carbon, Cocoa, User Experience 2008-06-06
URL CacheInfo (HTML) (DMG) (ZIP)
Demonstrates resource caching behavior using the Cocoa URL loading system.
Cocoa, Internet & Web, Networking, Performance 2008-06-05
DerivedProperty (HTML) (DMG) (ZIP)
Illustrates use of Core Data derived properties to make searching against string data more efficient.
Cocoa 2008-06-04
Kerberos GSS (HTML) (DMG) (ZIP)
Kerberos GSS-API Sample
Networking, Security 2008-06-04
Aperture Edit Plugin - Borders & Titles (HTML) (DMG) (ZIP)
"Borders & Titles" is a sample plugin for Aperture that demonstrates how to use the image editing API introduced with Aperture 2.1
Apple Applications 2008-06-02
Gamma Filter for FxPlug and AE (HTML) (DMG) (ZIP)
Cross-application FxPlug and After Effects plug-in code.
Apple Applications 2008-06-02
Mountains (HTML) (DMG) (ZIP)
Demonstrates localization and internationalization techniques and APIs
Cocoa 2008-06-02
MyMovieFilter (HTML) (DMG) (ZIP)
How to play a movie into a layer-backed QTMovieView and apply a Core Image filter while the movie plays.
Cocoa, Graphics & Imaging, QuickTime 2008-06-02
SimpleScriptingObjects (HTML) (DMG) (ZIP)
How to add scriptable objects to an AppleScriptable application.
Scripting & Automation 2008-06-02
SimpleScriptingProperties (HTML) (DMG) (ZIP)
How to add some properties to the terminology provided by an AppleScriptable application.
Scripting & Automation 2008-06-02
SimpleScriptingVerbs (HTML) (DMG) (ZIP)
How to add verbs to the terminology provided by an AppleScriptable application.
Scripting & Automation 2008-06-02
WikiSampleThemeWithCSS (HTML) (DMG) (ZIP)
Demonstrates how to change the appearance of a wiki theme using CSS properties.
Enterprise IT, Internet & Web, Mac OS X Server 2008-06-02
WikiSampleThemeWithJavaScript (HTML) (DMG) (ZIP)
Demonstrates how to add a JavaScript functionality to a wiki theme.
Enterprise IT, Internet & Web, Mac OS X Server 2008-06-02
ScriptingDefinitions (HTML) (DMG) (ZIP)
Provides a starting sdef (scripting definition) and a completed one for the Sketch example code.
Scripting & Automation 2008-05-30
SimpleScripting (HTML) (DMG) (ZIP)
Illustrates the minimal steps required to make an application scriptable.
Scripting & Automation 2008-05-30
AlbumToSlideshow (HTML) (DMG) (ZIP)
Demonstrates using CF and NSXML to create Final Cut Pro XML.
Apple Applications, Carbon, Cocoa 2008-05-15
QTMetadataEditor (HTML) (DMG) (ZIP)
Demonstrates QuickTime 7 APIs in a Metadata Browsing and Editing application
Apple Applications, QuickTime 2008-05-09
WhackedTV (HTML) (DMG) (ZIP)
A Cocoa version of the venerable HackTV sample code, demonstrating usage of the Sequence Grabber API's
Audio, Carbon, Cocoa, Graphics & Imaging, QuickTime 2008-05-09
HID Calibrator (HTML) (DMG) (ZIP)
Human Interface Device Manager Calibrator sample
Games, Porting, User Experience 2008-05-07
HID Config Save (HTML) (DMG) (ZIP)
Human Interface Device Manager Configuration sample
Carbon, Games, Hardware & Drivers, Porting, User Experience 2008-05-07
HID Explorer (HTML) (DMG) (ZIP)
Human Interface Device Manager Explorer
Games, User Experience 2008-05-07
SampleScannerApp (HTML) (DMG) (ZIP)
This project implements a simple client accessing an ICA scanning device.
Apple Applications, Carbon, Graphics & Imaging 2008-05-07
CIColorTracking (HTML) (DMG) (ZIP)
An Objective-C applicaton that implements a GPU-based technique to find the location of a uniquely colored object in a scene
Carbon, Cocoa, Games, Graphics & Imaging 2008-04-24
LiveVideoMixer (HTML) (DMG) (ZIP)
LiveVideoMixer demonstrates customized video rendering with QuickTime 7 and CoreVideo and OpenGL.
Graphics & Imaging, QuickTime 2008-04-24
QTCoreVideo101 (HTML) (DMG) (ZIP)
Demonstrates (with very little code) how to render a QuickTime Movie using CoreVideo and OpenGL.
Cocoa, Graphics & Imaging, QuickTime 2008-04-24
iChatStatusFromApplication (HTML) (DMG) (ZIP)
Demonstrates how to communicate with iChat using Scripting Bridge.
Apple Applications 2008-03-31
UTXplorer (HTML) (DMG) (ZIP)
Uses the <utmpx.h> API to display current login sessions and login history.
Darwin 2008-03-19
AbstractTree (HTML) (DMG) (ZIP)
Using NSTreeController with NSOutlineView, Bindings, and Core Data.
Cocoa, User Experience 2008-03-17
CryptNoMore (HTML) (DMG) (ZIP)
Shows how to authenticate a user using Open Directory (Directory Services).
Darwin, Networking, Security 2008-03-17
NumberInput_IMKit_Sample (HTML) (DMG) (ZIP)
Illustrates an input method that uses the Mac OS X 10.5 InputMethodKit framework.
Cocoa, Internationalization 2008-03-17
CarbonCocoaTempConverter (HTML) (DMG) (ZIP)
Demonstrates how to integrate Carbon and Cocoa user interfaces in the same Cocoa application.
Carbon, Cocoa 2008-03-10
PhotoSearch (HTML) (DMG) (ZIP)
Demonstrates advanced controls and cells. Custom drawing, hit testing, tracking, editing, expansion tooltips, tracking areas.
Cocoa 2008-03-05
SBSendEmail (HTML) (DMG) (ZIP)
Using the Scripting Bridge to tell Mail.app to send an email message with an optional attachment.
Cocoa, Internet & Web, Scripting & Automation 2008-02-28
FSMegaInfo (HTML) (DMG) (ZIP)
Prints information about various file system objects; helpful when debugging VFS plug-ins.
Carbon, Cocoa, Core Foundation, Darwin 2008-02-25
QTCompressionOptionsWindow (HTML) (DMG) (ZIP)
Demonstrates how easy it is to manage QTCompressionOptions instances with a user interface.
Cocoa, QuickTime 2008-02-22
GLUT (HTML) (DMG) (ZIP)
The OpenGL Utility Toolkit (GLUT) for Mac OS X version 3.4.0 (supporting the GLUT 3.7 API)
Graphics & Imaging 2008-02-08
OutputBins2PDE (HTML) (DMG) (ZIP)
A Printer PDE demonstrating new features in 10.5
Printing 2008-02-08
OpenGL Filter Basics Cocoa (HTML) (DMG) (ZIP)
How to use Objective-C and MVC design patterns in installing and utilizing filters in an OpenGL rendering pipeline
Cocoa, Games, Graphics & Imaging, Performance 2008-02-06
MyRecorder (HTML) (DMG) (ZIP)
Demonstrates the use of the QTKit Capture APIs
QuickTime 2008-01-29
QTControlCommandLine (HTML) (DMG) (ZIP)
Using the QuickTime COM Control object from the command line to export a movie to a different file format
QuickTime 2008-01-29
ImageApp (HTML) (DMG) (ZIP)
Demonstrates basic image handling using the ImageIO APIs in Mac OS X 10.4 Tiger
Graphics & Imaging 2008-01-24
QTAudioContextInsert (HTML) (DMG) (ZIP)
Demonstrates use of Audio Context Insert APIs to perform custom processing on QuickTime's audio stream.
Audio, Cocoa, QuickTime 2008-01-21
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
With and Without Bindings (HTML) (DMG) (ZIP)
Illustrates the adoption of Cocoa Bindings and refactoring using a subclass of NSArrayController.
Cocoa 2008-01-04
DictionaryController (HTML) (DMG) (ZIP)
"DictionaryController" is a Cocoa application that demonstrates various ways in how to use the NSDictionaryController class.
Cocoa, User Experience 2007-12-20
GeekGameBoard (HTML) (DMG) (ZIP)
Shows how to use Core Animation for the user interface of a board or card game.
Cocoa, Games, Graphics & Imaging, Performance 2007-12-19
ScriptingBridgeFinder (HTML) (DMG) (ZIP)
Using the Finder with Scripting Bridge
Scripting & Automation 2007-12-13
ScriptingBridgeiCal (HTML) (DMG) (ZIP)
Adding/updating events in iCal using Scripting Bridge.
Cocoa, Scripting & Automation 2007-12-13
SBSetFinderComment (HTML) (DMG) (ZIP)
Set/Get Finder Comments using Scripting Bridge
Cocoa, Scripting & Automation 2007-12-04
BetterAuthorizationSample (HTML) (DMG) (ZIP)
Shows the recommended way to access privileged functionality from a non-privileged application on Mac OS X.
Security 2007-11-27
FinalCutPro_AppleEvents (HTML) (DMG) (ZIP)
Uses Apple Events to interact with Final Cut Pro 5.1.2 or later.
Apple Applications 2007-11-16
HackTV Carbon (HTML) (DMG) (ZIP)
HackTV Carbon shows how to use the sequence grabber to preview and record QuickTime movie files.
Carbon, QuickTime 2007-11-16
ClosedCaptionImporter (HTML) (DMG) (ZIP)
QuickTime Movie Import Component for Scenarist Closed Caption files.
QuickTime 2007-11-15
SourceView (HTML) (DMG) (ZIP)
Demonstrates how to use NSOutlineView driven by NSTreeController.
Cocoa, Internet & Web, User Experience 2007-11-15
JavaEOGenerator (HTML) (DMG) (ZIP)
Java-based template generation engine similar to EOGenerator
Java 2007-11-14
MovieAssembler (HTML) (DMG) (ZIP)
Demonstrates AppleEvent communication with FCP, project modification using XML, and media file identification using metadata.
Apple Applications 2007-11-14
StillMotion (HTML) (DMG) (ZIP)
Demonstrates how to use the QTKit Capture APIs to build a simple application that creates stop motion animations.
Cocoa, Graphics & Imaging, QuickTime 2007-11-14
BoingX (HTML) (DMG) (ZIP)
Shows off using Quartz Extreme to provide borderless OpenGL content on the desktop.
Cocoa, Games, Graphics & Imaging 2007-11-06
GLSL Showpiece Lite (HTML) (DMG) (ZIP)
Using GLSL from a Cocoa application
Graphics & Imaging 2007-11-05
CocoaSlides (HTML) (DMG) (ZIP)
An image browser written using AppKit's Core Animation-based compositing and animation functionality
Cocoa, Graphics & Imaging 2007-11-02
Son of Grab (HTML) (DMG) (ZIP)
Shows how to use the new CGWindow to get window images from the Window Server.
Carbon, Cocoa, Graphics & Imaging 2007-11-01
ButtonMadness (HTML) (DMG) (ZIP)
Demonstrates how to use the various types of buttons using a nib file or programatically.
Cocoa, Tools, User Experience 2007-10-30
CFProxySupportTool (HTML) (DMG) (ZIP)
Shows how to use the CFProxySupport APIs to decide whether a network connection should pass through a proxy.
Core Foundation, Darwin, Networking 2007-10-29
NullAuthPlugin (HTML) (DMG) (ZIP)
Use this as a template for writing an authorization plugin, or as a tool to debug the authorization process.
Security 2007-10-26
PreLoginAgents (HTML) (DMG) (ZIP)
Pre-login launchd agents to display UI using AppKit and HIToolbox.
Carbon, Cocoa 2007-10-26
Cocoa OpenGL (HTML) (DMG) (ZIP)
Demonstrates using Cocoa with OpenGL, including window setup and event handling.
Cocoa, Games, Graphics & Imaging, Hardware & Drivers, Performance 2007-10-22
CalendarItems (HTML) (DMG) (ZIP)
Creates new iCal Events and Tasks ("To Do's") using Objective-C 2 and the Calendar Store framework
Apple Applications 2007-10-15
QTKitThreadsExporter (HTML) (DMG) (ZIP)
Demonstrates QTKit threading APIs by performing concurrent exports on separate threads.
Cocoa, QuickTime 2007-10-08
CIVideoDemoGL (HTML) (DMG) (ZIP)
CIVideoDemoGL demonstrates using Core Image with QuickTime and Core Video
Graphics & Imaging, QuickTime 2007-10-03
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
Core Animation QuickTime Layer (HTML) (DMG) (ZIP)
Shows the use of controls in a Layer over a Core Animation QTMovieLayer
Cocoa, Graphics & Imaging, QuickTime 2007-09-26
NotifyTool (HTML) (DMG) (ZIP)
Shows how to use the BSD notify API.
Darwin 2007-09-25