This page lists new and recently changed sample code. Most sample code has a revision history, which details additions and changes since the previous version. Look for "Revision History" at the bottom of the sample code page.

Items are listed in reverse chronological order by publication date. To see the list sorted by the type of revision, click Sort by Revision Type. Items published for the first time (First Version) will be at the top of the list, followed by items with new or changed content (Content Update), followed by items with small fixes, such as typos and format errors, but no significant content changes (Minor Change).

New and updated sample code is announced in the bi-weekly Apple Developer Connection News, available as an option to ADC members. See the Membership Overview page for details on joining.
Document Revision Descriptions
On Off
Sorted by
Date
Sort by
Title
Sort by
Revision Type
Sort by
Topic
2006-10-09 CFPrefTopScores (HTML) (DMG) (ZIP)
How to access globally shared (writable) user preferences without requiring authentication.
First Version Carbon, Core Foundation, Games, Porting
2006-10-09 MyCustomColorPicker (HTML) (DMG) (ZIP)
Shows how to write a custom color picker using Cocoa.
First Version Cocoa, Graphics & Imaging, User Experience
2006-10-09 RecentItems (HTML) (DMG) (ZIP)
Cleaned up comments and removed dead code; No code changes.
Minor Change Carbon, Core Foundation
2006-10-09 SampleCMPlugIn (HTML) (DMG) (ZIP)
Added support for menu item attributes, modifiers and icons.
Content Update AppleScript, Carbon, User Experience
2006-10-03 CarbonBonjour (HTML) (DMG) (ZIP)
Demonstrates using CFNetServices (Bonjour) in a Carbon application.
First Version Carbon, Core Foundation, Networking
2006-10-03 CxxNewDelete (HTML) (DMG) (ZIP)
First Version Tools
2006-10-02 BoingX (HTML) (DMG) (ZIP)
Made a universal binary, and fixed a bug where the ball would no longer bounce once the window disappeared
Content Update Cocoa, Games, Graphics & Imaging
2006-10-02 CarbonQuartzComposer_TV (HTML) (DMG) (ZIP)
First revision
Minor Change Carbon, Cocoa, Graphics & Imaging, Porting
2006-10-02 ImageBackground (HTML) (DMG) (ZIP)
Shows how to draw an image in the background of an NSOutlineView and NSTableView.
First Version Cocoa, Graphics & Imaging, User Experience
2006-10-02 PBORenderToVertexArray (HTML) (DMG) (ZIP)
Minor revision to the OpenGL extension checking code.
Content Update Graphics & Imaging
2006-10-02 VendorSpecificType00 (HTML) (DMG) (ZIP)
Updated to produce a universal binary.
Content Update Darwin, Hardware & Drivers
2006-09-18 CITransitionSelectorSample2 (HTML) (DMG) (ZIP)
We fixed in this version the backside image for the page curl transition which wasn't set before.
Content Update Graphics & Imaging
2006-09-18 FBOBunnies (HTML) (DMG) (ZIP)
Demonstrates how to use framebuffer objects (FBO)
First Version Graphics & Imaging, Performance
2006-09-18 StickiesExample (HTML) (DMG) (ZIP)
Updated to produce a universal binary. No code changes were required.
Minor Change Apple Applications, Carbon, Cocoa, Internet & Web, User Experience
2006-09-11 Quartz2DBasics (HTML) (DMG) (ZIP)
Now avoids use of floats where unnecessary. Where floating point constants are necessary avoids explicit use (now uses 10.0 instead of 10.0f). These changes make the code more readable while preserving efficiency and make the code ready for conversion to 64 bit.
Minor Change Carbon, Cocoa, Graphics & Imaging
2006-08-30 InstallerPluginSample (HTML) (DMG) (ZIP)
Minor Change Games, Tools, User Experience
2006-08-22 SCAudioCompress (HTML) (DMG) (ZIP)
Xcode 2.4
Minor Change QuickTime
2006-08-04 SayIt (HTML) (DMG) (ZIP)
Web Kit plug-in which speaks text passed via JavaScript
First Version Accessibility, Apple Applications, Cocoa, Internet & Web, User Experience
2006-08-01 BlockAnimation (HTML) (DMG) (ZIP)
A bit of java code which INCORRECTLY handles animation
First Version Java, Tools
2006-08-01 Dicey (HTML) (DMG) (ZIP)
Dicey is a dice game project that demonstrates various techniques for making a Cocoa application accessible.
First Version Accessibility, Cocoa
2006-08-01 Resizer (HTML) (DMG) (ZIP)
A widget that demonstrates how to use the Apple Animation and Animator classes.
First Version Apple Applications
2006-07-28 Birthdays (HTML) (DMG) (ZIP)
Dashboard widget with a plug-in that queries AddressBook.framework for contacts with upcoming birthdays
First Version Apple Applications, Tools
2006-07-28 HelloStudio (HTML) (DMG) (ZIP)
This is a Hello, world application built using AppleScript Studio.
First Version AppleScript
2006-07-28 Processes (HTML) (DMG) (ZIP)
This process management application uses most of AppleScript Studio's significant features.
First Version AppleScript
2006-07-28 TextEditPlus (HTML) (DMG) (ZIP)
This application is a version of TextEdit enhanced with additional document properties using AppleScript Studio.
First Version AppleScript
2006-07-25 Carbon Porting Tutorial (HTML) (DMG) (ZIP)
Porting a simple application from Mac OS 9 to Mac OS X
First Version Carbon, Porting, User Experience
2006-07-25 CarbonCocoaCoreImageTab (HTML) (DMG) (ZIP)
Carbon-based application creates a Cocoa-based web window which used CoreImage filters to transition between tabbed WebViews
First Version Carbon, Cocoa, Graphics & Imaging, Porting
2006-07-25 RecordAudioToFile (HTML) (DMG) (ZIP)
changed system requirements from 10.3 to 10.4 in description and readme
Minor Change Audio, Carbon, Games, Performance
2006-07-24 AttachAScript (HTML) (DMG) (ZIP)
Illustrates how you can extend any Cocoa application by adding some AppleScripts to it.
First Version AppleScript, Cocoa
2006-07-20 ComplexPlayThru (HTML) (DMG) (ZIP)
fixed incorrect display of unicode characters, updated links
Minor Change Audio, Performance
2006-07-20 qtdataexchange.win (HTML) (DMG) (ZIP)
Update to Microsoft Visual Studio 2005, QuickTime 7 SDK
Content Update QuickTime
2006-07-18 PMPrinterPrintWithFile (HTML) (DMG) (ZIP)
How to send files, for example PostScript and PDF, directly to the printer. Replaces the pict-ps path.
First Version Carbon, Graphics & Imaging, Printing
2006-07-17 GLSLShowpiece (HTML) (DMG) (ZIP)
GLSLShowpiece demonstrates several Vertex and Fragment shaders
First Version Cocoa, Games, Graphics & Imaging
2006-07-11 JSheets (HTML) (DMG) (ZIP)
Updated compiler options to generate 1.4 compatible bytecode.
Minor Change Java
2006-07-11 MovieVideoChart (HTML) (DMG) (ZIP)
Corrected edit label enumeration
Minor Change QuickTime
2006-07-07 OSXAdapter (HTML) (DMG) (ZIP)
Removed some extraneous import statements.
Minor Change Java
2006-07-07 QTPixelBufferVCToCGImage (HTML) (DMG) (ZIP)
Always make sure and call EnterMovies.
Minor Change Graphics & Imaging, QuickTime
2006-06-28 AddTextMovie (HTML) (DMG) (ZIP)
Support for XCode 2. Modified project layout for platform independent distribution and compilation.
Minor Change Java, QuickTime
2006-06-28 ImageFile (HTML) (DMG) (ZIP)
Support for XCode 2. Modified project layout for platform independent distribution and compilation.
Content Update Java, QuickTime
2006-06-28 QTSimpleApplet (HTML) (DMG) (ZIP)
Support for XCode 2. Modified project layout for platform independent distribution and compilation.
Content Update Java, QuickTime
2006-06-28 QTStreamingApplet (HTML) (DMG) (ZIP)
Support for XCode 2. Modified project layout for platform independent distribution and compilation.
Content Update Java, QuickTime
2006-06-28 TimeCode (HTML) (DMG) (ZIP)
XCode 2.2, or Java 2 SDK for Windows, and QuickTime 7
Content Update Java, QuickTime