Sample Code
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
Sort by
Date
Sorted by
Title
Sort by
Revision Type
Sort by
Topic
2008-05-15 AlbumToSlideshow (HTML) (DMG) (ZIP)
Adds the resizing of images to fit in the generated XML sequence and allows for multiple albums with the same name.
Content Update Core Foundation
2008-03-10 CarbonCocoaTempConverter (HTML) (DMG) (ZIP)
Updated to produce a universal binary. Added code and comments for clarification.
Content Update Events & Other Input
2008-04-24 CIColorTracking (HTML) (DMG) (ZIP)
More comments. Fixed some errors in the project.
Content Update Graphics & Imaging
2008-02-25 FSMegaInfo (HTML) (DMG) (ZIP)
Prints information about various file system objects; helpful when debugging VFS plug-ins.
First Version File Management
2008-05-07 HID Config Save (HTML) (DMG) (ZIP)
Updated for new Leopard HID Manager APIs.
Content Update Games
2008-05-07 SampleScannerApp (HTML) (DMG) (ZIP)
This project implements a simple client accessing an ICA scanning device.
First Version Graphics & Imaging
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.
First Version File Management
2008-05-09 WhackedTV (HTML) (DMG) (ZIP)
Fixed two bugs: (1) "Select Output Format" in the audio dialog failed with error -206 if the source audio were set to 20 or 24 bits on an Intel Mac. The source format is 24-bits aligned low in 32-bits. WhackedTV was setting this as the default output format. But QuickTime movies can only contain packed samples. Added a utility function to conform the output format for movie-safety. (2) Began preferring the kQTSGAudioPropertyID_CodecSpecificSettingsArray property to the kQTSGAudioPropertyID_MagicCookie property. See QuickTimeComponents.h for an explanation of the differences between these properties, and why CodecSpecificSettingsArray should always be preferred over MagicCookie.
Content Update QuickTime